verifyProof
Definition
Verifies a blockchain proof. Wrapper for verifyProof.
Syntax
db.verifyProof([proofId|versionId,format])
Example
ProvenDB v7754 (current)> db.verifyProof(7749)
{
"ok" : 1,
"version" : NumberLong(7749),
"dateTime" : ISODate("2019-06-12T01:07:36.847Z"),
"hash" : "9a54c46aac1312823ce0c90ecb5cecd471a1ff9c4bb5fc979d8cff3e4cecc66e",
"proofId" : "50a72e60-8365-11e9-a57b-01f1bfb78573",
"proofStatus" : "Valid",
"btcTransaction" : "9781560e658fc31a9b61038bd111b202954c62dcb7364251f2969e0451622aa2",
"btcBlockNumber" : "578634",
"proof" : BinData(0,"eJytl7Fu5EkRxuENeAhCvO ... fvB/Ay1eLlM=")
}
ProvenDB v7754 (current)> db.verifyProof('d9db5100-8c1d-11e9-a57b-01873f55fb47')
{
"ok" : 1,
"version" : NumberLong(7754),
"dateTime" : ISODate("2019-06-12T01:08:18.119Z"),
"hash" : "9a54c46aac1312823ce0c90ecb5cecd471a1ff9c4bb5fc979d8cff3e4cecc66e",
"proofId" : "d9db5100-8c1d-11e9-a57b-01873f55fb47",
"proofStatus" : "Valid",
"btcTransaction" : "70dcf5a5b261ce0405e153517adf13e56ee20c9563c64a4a2c03d0a58f573170",
"btcBlockNumber" : "580219",
"proof" : BinData(0,"eJyVVj1vZlcRhv9CGa9nzuccVyvRI ... 91f8ClFnjrA==")
}
See also
Updated about 5 years ago