You have been provided with a wallet and a blockchain with a genesis block similar to the following (this is an example for illustration): http://foley.gold.ac. uk/cw20/api/cw1/887766554.
The genesis block contains one special transaction that does not have any inputs, and which gives you 100 coins. The genesis block is a special block, being the first one, its reference to the hash of the previous block is “0”. Also, the Merkle root of the genesis block is the same as the hash of the only transaction in the block. The transaction in the genesis block is sent and signed by a special wallet, referred to as the coinbase, which has the following keys: http: //[login to view URL]
The exercise consists of adding two blocks to the blockchain: 1. The first block should comprise of two transactions:
• You sending 40 coins to Alice, • You sending 30 coins to Bob.
2. The second block should comprise of two transactions:
• Alice sending 20 coins to Bob, • Bob sending 10 coins to You.
Alice’s wallet is: [login to view URL]
Bob’s wallet is: [login to view URL]
The transactions have to be valid transactions, the Merkle roots of the blocks have to be calculated, the blocks have to be mined and properly chained up to the genesis block. The difficulty level of the mining is 3.