jaymine / Bitcoin-Hash-verifier

to calculate and verify a hash of a bitcoin block

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitcoin Hash verifier

Calculates and verifies the hash of a bitcoin block.

Run

python hashCalculator.py -i http://webbtc.com/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f.json

python hashCalculator.py -f block0.json

Commands

To read the block as a json file
-f <fileName>
To read the block from a url as a json body
-i <url>

More details

https://medium.com/hackergirl/how-to-calculate-the-hash-of-a-block-in-bitcoin-8f6aebb0dc6d

About

to calculate and verify a hash of a bitcoin block

License:Apache License 2.0


Languages

Language:Python 100.0%