Expand description
Proof verification library for Dash Drive
Re-exports§
pub use error::Error;
Modules§
- error
- Errors that can occur during proof verification
- from_
request - From Request Conversions between Drive queries and dapi-grpc requests.
- types
- Object types that can be retrieved from proofs.
- unproved
- Implementation of unproved verification
Structs§
- Document
Count - The count of documents matching a query, verified from proof.
- Document
Split Counts - The split counts of documents matching a query, verified from proof.
- Mock
Context Provider - Mock ContextProvider that can read quorum keys from files.
- Split
Count Entry - An entry in a split count result, containing the serialized key(s) and the count of documents matching them.
Enums§
- Context
Provider Error - Errors returned by the context provider
Traits§
- Context
Provider - Interface between the Sdk and state of the application.
- Data
Contract Provider - A trait that provides a function that can be used to look up a DataContract by its Identifier.
- From
Proof - Parse and verify the received proof and retrieve the requested object, if any.
- Length
- Determine number of non-None elements
Functions§
- verify_
aggregate_ count_ proof - Verify a grovedb
AggregateCountOnRangeproof and the surrounding tenderdash commit, returning the verified document count. - verify_
distinct_ count_ proof - Verify a regular grovedb range proof against a
ProvableCountTreeand the surrounding tenderdash commit, returning the verified per-(in_key, key)counts the proof commits to. - verify_
point_ lookup_ count_ proof - Verify a grovedb point-lookup count proof against a
countable: trueindex and return the per-branch entries. - verify_
primary_ key_ count_ tree_ proof - Verify a grovedb proof of the document type’s primary-key
CountTreeelement and return the unfiltered total count.