-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stamp verification without bitcoin full node #93
Comments
In principle yes, but actual software support for that isn't done yet. Note that you can verify manually: the client will tell you what block height the timestamp was for, and what the expected merkleroot of that block was supposed to be. |
You could get the block hash from several online block explorers that provide an API. This might be an OK compromise for your scenario depending on your trust/security requirements. |
The javascript and java lib are actually doing this, javascript in particular to support in-browser verification. By our experience is a real mess, block explorers have different interfaces so we decided to support insight because there was a bunch of different domains serving with insight. This bunch of different domains frequently go down/disappear causing problems. |
To precise @petertodd answer: ots --no-bitcoin verify test.txt.ots
As: bitcoin-cli getblockhash 785795
Get the block hash from elsewhere: curl https://bitcoinexplorer.org/api/block/785795 | jq .hash
Verify both the block height (as we relied on a third-party service to get the block hash) and the merkle root: bitcoin-cli getblockheader 000000000000000000015d965f5ac86619b2e279f28d116c984dcee714a444bb | jq '.merkleroot,.height'
|
Is it possible to verify a timestamp without running bitcoin node? Even pruned one is not too easy to install as it requires downloading of the entire blockchain IIRC. Is it possible to use an SPV node for verification?
The text was updated successfully, but these errors were encountered: