Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 726 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 726 Bytes

Simple-Blockchain

Simple-Blockchain is a Python blockchain library example.

Installation

Source code

git clone https://github.com/sezginpak/simple-blockchain.git

Usage

from simpleBlockchain import BlockChain, Block

chain = BlockChain()
chain.addBlock(Block([1,2,3]))
chain.addBlock(Block([4,5,6]))
chain.addBlock(Block([7,8,9]))
chain.addBlock(Block([10,11,12]))

print(chain.chainValid())

for i in range(len(chain.chain)):
    print(i.data)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT