getProof
Definition
Gets a blockchain proof for a database version. Wrapper for the getProof command.
Syntax
db.getProof(proofId|versionNo[,"binary"|"json",listCollections(true|false)])
Field | Type | Description |
---|---|---|
proofId | string | Yes |
versionNo | number | Yes |
format | string | Either binary or json |
listCollections | boolean | If true all the collections that are included in the proof are listed |
Note:
You must specify either the proof Id or the version Number, but not both
Example
ProvenDB v7754 (current)> db.getProof('c3d94410-810b-11e9-a57b-01d5081a0be8')
{
"ok" : 1,
"proofs" : [
{
"proofId" : "c3d94410-810b-11e9-a57b-01d5081a0be8",
"version" : NumberLong(5036),
"submitted" : ISODate("2019-05-28T05:45:14Z"),
"type" : "Full",
"hash" : "854765ab7627e0b8a25620bf4c7b405b7d5fed5a15c146c13e89dfb487afb9d6",
"status" : "Valid",
"details" : {
"protocol" : {
"name" : "chainpoint",
"uri" : "http://35.235.91.33",
"hashIdNode" : "c3d94410-810b-11e9-a57b-01d5081a0be8",
"chainpointLocation" : "https://b.chainpoint.org/calendar/3276601/data"
},
"btcTxn" : "1861e7aff7ebf311790d7d099e2c62d8212fff2b7c9808c4bdd5d82ff74b9e30",
"btcTxnReceived" : "2019-05-28T06:04:26.104Z",
"btcTxnConfirmed" : "2019-05-28T06:06:39Z",
"btcBlock" : "578146"
},
"proof" : BinData(0,"eJytV81upUcRhVfgGVjGcXd1V3W3 ... CzAc")
}
]
}
See also
Updated almost 5 years ago