- Let's create the directory structure first Root folder
Blockchain
, under thatBackend
,Frontend
andclient
. Under Backend,core
andutil
. - Inside cre create a file name
block.py
and create a class nameBlock
. Inside__init__
method talkeHeight, Blocksize, BlockHeader, TxCount, Txs
variables - Create a new module
blockheader.py
, create a class callBlockHeader
. Inside the__init__
method will takeversion, prevBlockHash, merkleRoot, timestamp, bits
and 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