Skip to content

Simple-Blockchain is a Python blockchain library example.

Notifications You must be signed in to change notification settings

sezginpak/simple-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

Simple-Blockchain is a Python blockchain library example.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages