Source from blockchain-py
Install pipenv
pipenv install
pipenv shell
$ cd blockchain-py
$ python cli.py createwallet
Your new address: 17Y288D5DnFwU6cj5M8YHnxYNnDhN6f5FK
$ python cli.py createblockchain --address 17Y288D5DnFwU6cj5M8YHnxYNnDhN6f5FK
$ python cli.py createwallet
Your new address: 15zBUPbr2B4JMcQHg6oJ8DYQi4t7RN1gWb
$ python cli.py send --from 17Y288D5DnFwU6cj5M8YHnxYNnDhN6f5FK --to 15zBUPbr2B4JMcQHg6oJ8DYQi4t7RN1gWb --amount 6
Mining a new block
0005ec56906edfcc97a8b422cd6948e7a2b59cba89e9a253f75eeefb6755d6e9
Success!
$ python cli.py getbalance --address 17Y288D5DnFwU6cj5M8YHnxYNnDhN6f5FK
Balance of 17Y288D5DnFwU6cj5M8YHnxYNnDhN6f5FK:
$ python cli.py printchain
Prev. hash: 003971542065a0200022725bed2bd612b35495d4121f2359a0ef20fa07364953
Hash: 00116a06cb01eea5b90e7b686244c5a369956adb6daf2d55e68c5d510864bcf9
Height: 2
PoW: True
Prev. hash:
Hash: 003971542065a0200022725bed2bd612b35495d4121f2359a0ef20fa07364953
Height: 1
PoW: True
$ python cli.py printblock --height 2
Prev. hash: 003971542065a0200022725bed2bd612b35495d4121f2359a0ef20fa07364953
Hash: 00116a06cb01eea5b90e7b686244c5a369956adb6daf2d55e68c5d510864bcf9
Height: 2
PoW: True
Todos
- [Prototype] Block(10%), Blockchain(10%), Proof-of-Work(20%) 40%
- [Persistence] Database(20%), Client(20%) 40%
- [Transactionbasic] UTXO(5%) or Account model(2%) 5%
- [Address] Sign & Verify(5%) 5%
- [Transaction] Mining reward(2%), Merkle tree(8%) 10%
- [Network] P2P(10%) or Server-Client(7%) 10%