Censuses
Manage census: create, add, get, verify...
Export the whole census database to a JSON file. Requires Admin Bearer token.
Import the whole census database from a JSON file.
List all census references. Requires Admin Bearer token.
Delete unpublished census (not on the storage yet). See publish census
Export census to JSON format. Requires Bearer token
Import census from JSON previously exported using /censuses/{censusId}/export
. Requires Bearer token
Add list of public key/address with its weight to an unpublished census and returns the resulting
Prove the key and weight belong to the census root hash.
Register a census to the storage (IPFS in our case). After this, the census can't be edited.
Register a census to the storage (IPFS in our case). After this, the census can't be edited.
Get census Merkle Tree root hash, used to identify the census at specific snapshot.
- Bearer token not required
Total number of keys added to the census. Size as integer
Get the census type
Verify that a previously obtained Merkle proof for a key, acquired via /censuses/{censusId}/proof/{publicKey} is still correct.
It sums all weights added to the census. Weight is a stringified bigInt
Create a new census on the backend side. The census is still unpublished until publish is called.