Skip to content

wizh/blocktastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

blocktastic

blocktastic is a reference blockchain implementation with no exotic features. It serves as a generic starting point for blockchain applications.

Usage

One can create a blockchain

from blockchain import Blockchain

blockchain = Blockchain()
blockchain.create_genesis_block()

A client could then append 10 blocks to said blockchain

from block import Block

for i in range(10):
    prev_block = blockchain.get_latest_block()
    new_block = Block(prev_block.index + 1, [],
                      prev_block.hash, "I found block number " + str(i+1))
    blockchain.add_block(new_block)

Todo

  • Add a peer-to-peer interface

About

barebones blockchain api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages