06 September 2019 21:30
Calculate Double-SHA256 Hash with Python
Before writing Python code to verify the Merkle Root in Bitcoin block, we need to get familiar with two Python modules needed for calculating SHA256 hash.
"hashlib" module - Provides us the SHA56 hash functions.
"binascii" module - Provides us functions to convert data between binary and hex formats.
1
(1 marks)