Skip to content

lizhongwang520/SnakeChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeChain

A tiny implement of blockchain prototype.

How to use?

python3 start.py

Block Structure

|-------|-----------|------|---------------------|------|
|       |           |      |                     |      |
| index | timestamp | data | previous_block_hash | hash |
|       |           |      |                     |      |
|-------|-----------|------|---------------------|------|

- index:               the index of current block in blockchain;
- timestamp:           the create time of current block;
- data:                the data of currrent of block;
- previous_block_hash: the hash of previous block in this block chain;
- hash:                the hash of current block (calculate according to other four fields);

Features TODO

  • Restful api supported, saving data with json encoding;

About

A tiny implement of blockchain prototype.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages