This repository is generated from Academy-PoW repository.
However, during implement Bitcoin-like blockchain, I've to update and fix a lot to make sure to code run smoothly.
Significantly, I've bumped Polkadot-SDK to stable-2407. That's quite complected but I've made it thanks to comprehensive document of OpenGuild's Polkadot SDK course.
This version builds upon the work of giants from Building a UTXO Chain from Scratch | Substrate Seminar, with even more inspiration (I believe! 😃).
- Discover Proof-of-Work (PoW)
- Understanding overview of PoW in Substrate by reading code breakdown.
- Discover What is UTXO account model?
- Understanding overview of UTXO in Substrate by reading code breakdown.
Before proceeding with this interactive tutorial, make sure you complete the initial tutorials on Substrate development from the official documentation. If you haven't gone through them yet, please review them first to build a solid foundation.
- Substrate develop environment: Select your environment and complete
Install required packages and Rust
) - Substrate Tutorial
- Polkadot SDK doc
- Substrate simulate a network
Overview of Bitcoin-like Blockchain in Substrate
graph TD;
subgraph UTXO_Runtime
Timestamp -->|Time trait| Difficulty
Block_Author -->|BlockAuthor| UTXO
Bitcoin_Halving --> |Issuance| UTXO
FRAME_System
subgraph Difficulty
Sha3_Difficulty
Keccak_Difficulty
Md5_Difficulty
end
end
subgraph UTXO_Node
subgraph Multi_PoW_Consensus
Sha3_Algorithm
Keccak_Algorithm
Md5_Algorithm
end
Tx_Pool
end
Difficulty --> Difficulty_API{{Difficulty API}}
Difficulty_API --> Multi_PoW_Consensus
UTXO --> Tx_Pool_API{{Tx Pool API}}
Tx_Pool_API --> Tx_Pool
- Refer to How to run the node to choose development environment and boost up your first local blockchain node.
- Please follow exactly these instructions to get best experience.
Follow this book to build your own Bitcoin-like blockchain with UTXO account model.
- Read the Frequently Asked Questions - FAQ