Skip to content

danielbui12/substrate-bitcoin-like-blockchain

Repository files navigation

Substrate Bitcoin-like Blockchain with UTXO account model

Academy-PoW

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.

Substrate UTXO Workshop

This version builds upon the work of giants from Building a UTXO Chain from Scratch | Substrate Seminar, with even more inspiration (I believe! 😃).

Proof of Work

UTXO

Prerequisites

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.

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
Loading

How to run the node

  • Refer to How to run the node to choose development environment and boost up your first local blockchain node.

Demo usage

  • Please follow exactly these instructions to get best experience.

Build your own UTXO account model

Follow this book to build your own Bitcoin-like blockchain with UTXO account model.

FAQ

About

Substrate Bitcoin-like Blockchain with UTXO account model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published