Skip to main content

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.

Further reading

  • 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

where proof is Merkle tree siblings and value is Merkle tree leaf value


Schema
  • proof string
  • value string
  • weight number
Loading...

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.