Simple blockchain implementation in python:
- can hash in simple sha256
- can hash with a merkle tree hashing using sha256
Lib used :
Diagrams
Implementation diagram:
Block : represents the data
Blockchain : link the blocks together thanks to cryptographic function
Interface : API interface whick interacts with the blockchain ( creating transaction etc )
Basic execution diagram on run:
API Execution Diagrams
[POST] : /transaction/new
take 3 arguments:
- add1 : Adresse of the sender
- add2 : Adresse of the receiver
- amt : the amount to transfer