Expand description
Document-count verification methods on proofs (the
GetDocumentsCount endpoint’s prove-path verifiers).
Verifies grovedb proofs produced by the GetDocumentsCount endpoint.
Mirrors the layering used by packages/rs-drive/src/verify/document/:
pure grovedb-level verifiers as methods on
DriveDocumentCountQuery
that take raw proof: &[u8] and return (RootHash, T). The tenderdash
signature composition layer that wraps these calls lives in
packages/rs-drive-proof-verifier/src/proof/document_count.rs.
Modules§
- verify_
aggregate_ count_ proof - Aggregate-count proof verification (
AggregateCountOnRangeprimitive) — returns a singleu64. - verify_
carrier_ aggregate_ count_ proof - Carrier-aggregate-count proof verification (carrier
AggregateCountOnRangecomposition with outerKeysper grovedb PR #663) — returns one(in_key, u64)per resolved In branch. Used bygroup_by = [in_field]count queries that carry both anInclause and a range clause. - verify_
distinct_ count_ proof - Distinct-count proof verification (regular range proof against a
ProvableCountTree) — returns the per-(in_key, key)entries the proof commits to. - verify_
point_ lookup_ count_ proof - Point-lookup count proof verification (CountTree element proof for
Equal/
Incounts on acountable: trueindex) — returns one entry per covered branch, with eachcountextracted from the verified CountTree element’scount_value. - verify_
primary_ key_ count_ tree_ proof - Primary-key CountTree proof verification — used by the
documents_countable: truefast path for unfiltered total counts at the doctype level. Returns a singleu64count.