Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.67 KB

README.md

File metadata and controls

59 lines (35 loc) · 1.67 KB

Blockcard

Introduction

A pure Python implementation of the blockcard protocol's proof-of-thought system for gift transactions. Read the full paper here.

Installation

Install the latest version from PyPI with pip install blockcard.

Usage

Displaying headers and message of a block:

python -m blockcard -d target.blk

Generating the first block in a chain

python -m blockcard -g

Generating subsequent blocks in the chain:

python -m blockcard -g parent.blk

(For longer messages you may want to pipe this into a pager like less)

Checking validity of blocks

Check current block

python -m blockcard -c target.blk

Check all blocks in chain recursively

python -m blockcard -C target.blk

(All .blk files should be stored in current working directory)

Animated demos

Mining genesis block

Displaying a message

Appending a block