utkarshkvs1 / simpleblockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpleblockchain

Simplified version of blockchain

Basic Workflow

Submitting a transaction

          Client        Blockchain Node        Blockchain Peer Node
               +            +                        +
               | Submit     |                        |
               | Transaction|                        |
               |+---------> |                        |
               |            |                        |
               |            |                        |
               |            |Validate Txn            |
               |            |                        |
               v            |                        |
                            |                        |
                            |                        |
                            |Send Valid Txn          |
                            |to peers                |Validate Txn <----+
                            | +------------------>   |                  |
                            |                        |                  |
                            |                        |                  |
                            |                        |                  |
                            |Add Txn to Txn          |Send Txn to Peers +
                            |Pool                    |
                            |                        |
                            |                        |
                            |                        |
                            |                        |Add Txn to Txn Pool
                            |                        |
                            |                        |
                            |                        |
                            |                        |
                            v                        v

Block creation - Consensus

About

License:Apache License 2.0


Languages

Language:Rust 100.0%