- Let's create the directory structure first Root folder
Blockchain, under thatBackend,Frontendandclient. Under Backend,coreandutil. - Inside cre create a file name
block.pyand create a class nameBlock. Inside__init__method talkeHeight, Blocksize, BlockHeader, TxCount, Txsvariables - Create a new module
blockheader.py, create a class callBlockHeader. Inside the__init__method will takeversion, prevBlockHash, merkleRoot, timestamp, bitsand declareself.nonce = 0 , self.blockHash = ''
code-architect/custom-python-blockchain
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|