Expand description
The request-only half of a proved sum or average: which proof answers the request, what that proof reads, and the limit and walk direction its path query carries.
A sum and an average read the same trees through the same path queries;
an average’s range and carrier proofs read each element’s count beside
its sum. They share SumProofPlan, and each surface keeps its own
planner, since the server routes a sum by its resolved
DocumentSumMode and an average by its mode and whether a range
constrains it, each with its own refusals: this module plans a sum, and
crate::query::drive_document_average_query::proof_plan an average.
The server’s dispatchers
prove what the plan names, and the SDK’s verifiers rebuild the path query
from the same plan, so the two cannot read one request differently; a
client refuses before sending what the plan refuses, in the server’s
words. The planners read no version table, so every protocol version
that serves a proved sum or average plans the same proof for the same
request.
Enums§
- SumProof
Plan - What a proved sum or average reads, decided from its request alone.