This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
# TThis library takes a variable length of bytes and converts it into a fixed length sequence. | |
import time | |
blocks = [] # A block is where all the information about the transaction is stored | |
# A function to create the genesis block of the blockchain | |
def init_block(): |