You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're planning to store large amounts of data (>1M records) in NOMT for efficiency. We need to verify this data on-chain without storing all records in the smart contract.
Technical Requirements
Store Merkle root on-chain
Our API will return below after querying NOMT:
Value for a given key
Merkle proof for verification
From what we saw in the examples and docs, we get old Merkle root, new Merkle root, and witness. Is there any way that we can get a Merkle proof of a single key-value pair to prove its a part of Merkle root?
Need access to get_proof function to generate valid Merkle proofs compatible with OpenZeppelin's verification for a given key.
Request
Looking for guidance on implementing/accessing the get_proof function in NOMT to generate Merkle proofs for on-chain verification,
Summary
Essentially when user calls our API with a key, we need to return value stored for that key, Merkle proof to verify that key & value are part of the Merkle root stored onchain.
The text was updated successfully, but these errors were encountered:
We're planning to store large amounts of data (>1M records) in NOMT for efficiency. We need to verify this data on-chain without storing all records in the smart contract.
Technical Requirements
From what we saw in the examples and docs, we get old Merkle root, new Merkle root, and witness. Is there any way that we can get a Merkle proof of a single key-value pair to prove its a part of Merkle root?
Example Implementation
Current Blocker
Need access to
get_proof
function to generate valid Merkle proofs compatible with OpenZeppelin's verification for a given key.Request
Looking for guidance on implementing/accessing the
get_proof
function in NOMT to generate Merkle proofs for on-chain verification,Summary
Essentially when user calls our API with a key, we need to return value stored for that key, Merkle proof to verify that key & value are part of the Merkle root stored onchain.
The text was updated successfully, but these errors were encountered: