https://github.com/code-architect/custom-python-blockchain
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.
https://github.com/code-architect/custom-python-blockchain
blockchain flask memory-pool p2p private-key-encryption publick-key python utxos
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/code-architect/custom-python-blockchain
- Owner: code-architect
- Created: 2023-08-16T01:43:11.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T02:32:30.000Z (over 1 year ago)
- Last Synced: 2024-12-28T13:33:54.467Z (5 months ago)
- Topics: blockchain, flask, memory-pool, p2p, private-key-encryption, publick-key, python, utxos
- Language: Python
- Homepage: http://codearchitect.in/
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Python Blockchain
1. Let's create the directory structure first Root folder `Blockchain`, under that `Backend`, `Frontend` and `client`.
Under Backend, `core` and `util`.
2. Inside cre create a file name `block.py` and create a class name `Block`. Inside `__init__` method talke `
Height, Blocksize, BlockHeader, TxCount, Txs` variables
3. Create a new module `blockheader.py`, create a class call `BlockHeader`. Inside the `__init__` method will take
`version, prevBlockHash, merkleRoot, timestamp, bits` and declare `self.nonce = 0 , self.blockHash = ''`
4.