pub fn verify_primary_key_sum_tree_proof(
contract_id: [u8; 32],
document_type_name: &str,
proof: &Proof,
mtd: &ResponseMetadata,
platform_version: &PlatformVersion,
provider: &dyn ContextProvider,
) -> Result<i64, Error>Expand description
Verify a grovedb proof of the document type’s primary-key
SumTree element and return the unfiltered total sum.
Thin tenderdash-composition wrapper over
[DriveDocumentSumQuery::verify_primary_key_sum_tree_proof].
Used by the prove path’s documents_summable: "<prop>" fast
path — when the where clauses are empty and the document type
has a matching documents_summable, the server proves the
primary-key SumTree element directly and the SDK extracts the
sum from the verified element.