Prove key to census
Prove the key and weight belong to the census root hash.
If the key exists on the census returns Merkle root information. Proof
property is referred to the siblings of Merkle tree, the value
points to the leaf of the Merkle Tree for this key (on this case, the weight), and weight is just the key weight for this census.
- Requires Bearer token
- Returns a merkle proof, proving the key and weight belongs to the census root hash
Path Parameters
- censusID string required
Census id
- key string required
Key to proof
Responses
- 200
where proof is Merkle tree siblings and value is Merkle tree leaf value
- application/json
- Schema
- Example (from schema)
Schema
- proof string
- value string
- weight number
{
"proof": "string",
"value": "string",
"weight": 0
}
Loading...
Was this helpful?