- 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 = ''
-
Notifications
You must be signed in to change notification settings - Fork 0
A core blockchain build with python and flask framework for frontend. Some of the components are private and public key, transaction, mine, memory pool, fee calculation, target difficulty, peer-2-peer network, broadcast blocks, resolve conflicts, UTXOS etc.
code-architect/custom-python-blockchain
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A core blockchain build with python and flask framework for frontend. Some of the components are private and public key, transaction, mine, memory pool, fee calculation, target difficulty, peer-2-peer network, broadcast blocks, resolve conflicts, UTXOS etc.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published