0% found this document useful (0 votes)
0 views1 page

Blockchain Programming Assignment (1)

The document lists various programming tasks related to blockchain implementation in Python, including creating blocks, mining, and implementing algorithms like PoW and PoS. It also covers topics such as fetching block information from the Ethereum blockchain and demonstrating hash functions and Merkle trees. Each task is referenced with a section and page number for easy navigation.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views1 page

Blockchain Programming Assignment (1)

The document lists various programming tasks related to blockchain implementation in Python, including creating blocks, mining, and implementing algorithms like PoW and PoS. It also covers topics such as fetching block information from the Ethereum blockchain and demonstrating hash functions and Merkle trees. Each task is referenced with a section and page number for easy navigation.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SN Problems Section Page

1. Write a program in Python to implement blockchain. 1.15.1 26


2. Write a program in Python for mining a new block in a blockchain, and print the values of the 1.15.2 28
new block.
3. Write a program in Python to create four new blocks in a blockchain. Traverse the blocks and 1.15.3 30
print the values.
4. Write a program in Python to implement a blockchain and print the values of all fields as 1.15.4 32
described in [Link]
5. Write a program in Python to implement a blockchain and UTXo (unspent transaction output). 1.15.5 35
6. Write a program in Python to implement PoW algorithm. 1.15.7 37
7. Write a program in Python to implement PoS consensus algorithm. 1.15.8 40
8. Write a program in Python to Fetch the Latest Block Information from Ethereum Blockchain Using 1.15.9 42
Etherscan API
9. Write a Python Program that Takes a String and the Desired Number of Leading Zeros from the 2.7.2 64
User and Outputs the Input String, the Nonce Value for Which the Leading Zeros Puzzle Is Solved,
and the Corresponding Hash Generated
10. Write a program in Python that Demonstrates How to Use the SHA-256 Hash Function and Its 2.7.4 66
Application in a Simple Blockchain
11. Write a Program in Python to Verify Hash Properties 2.7.5 67
12. Write a Python program to Demonstrate a Simple Implementation of a Blockchain Using Hash 2.7.6 68
Codes as a Chain of Blocks
13. Write a Python program to Demonstrate the Mining Process in Blockchain 2.7.7 70
14. Write a program in Python to Create a Merkle Tree in Blockchain 2.7.8 72
15. Write a program in Python to Prove Membership and Non-membership in a Merkle Tree 2.7.9 73
Blockchain

You might also like