Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Newlyweds Alice and Bob have decided to set up a joint Bitcoin account for their family expenses. Alice or Bob should be able to spend

image text in transcribed

Newlyweds Alice and Bob have decided to set up a joint Bitcoin account for their family expenses. Alice or Bob should be able to spend money from this account as they please. (a) (2 points) Clearly designating the script Sig and scriptPubKey, write Bitcoin scripts that perform the following operations: 1. Send 2 BTC from an external account to Alice and Bob's individual accounts (Alice and Bob each receive 1 BTC) 2. Send the 1 BTC from Alice and Bob to their joint account 3. Either Alice or Bob sends a merchant Mary 0.5 BTC fro the joint account. Use the pay-to-public-key-hash (P2PKH) form for all transactions. Each op- eration may require more than one transaction/script. (b) (2 points) Use pay-to-script-hash (P2SH) to reimplement the second and third operations Clearly designate the scriptSig and scriptPubKey sections of each of your scripts. Each operation may require more than one script. Newlyweds Alice and Bob have decided to set up a joint Bitcoin account for their family expenses. Alice or Bob should be able to spend money from this account as they please. (a) (2 points) Clearly designating the script Sig and scriptPubKey, write Bitcoin scripts that perform the following operations: 1. Send 2 BTC from an external account to Alice and Bob's individual accounts (Alice and Bob each receive 1 BTC) 2. Send the 1 BTC from Alice and Bob to their joint account 3. Either Alice or Bob sends a merchant Mary 0.5 BTC fro the joint account. Use the pay-to-public-key-hash (P2PKH) form for all transactions. Each op- eration may require more than one transaction/script. (b) (2 points) Use pay-to-script-hash (P2SH) to reimplement the second and third operations Clearly designate the scriptSig and scriptPubKey sections of each of your scripts. Each operation may require more than one script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions