Repository navigation
Description
Implement current-root queries and proof verification
Parent: #4626 · Complete tracking register
Proposed target: 5.0-dev. This is a workstream tracking issue, not a claim that the release branch exists or the implementation is done. Owner: QuantumExplorer. Dates and effort remain unset.
Scope
Implement native code/balance/state queries and proof compatibility for all enabled capabilities, lifecycle exclusions and receipt semantics; no past-height proof service.
Specification
The current parent acceptance and module/capability appendices remain authoritative; these DIP drafts add proposed engineering detail without silently approving open allocations.
Completion criteria
Complete every listed task acceptance item, its applicable capability matrix, and the linked specification vectors. Record actual PR/test evidence; drafting is not production completion.
Task acceptance
R06-06
- Add current-state proof and client result handling for code deployment and version references in Drive, the proof verifier and SDK converters.
Prerequisites: R06-05.
Modules: PROOFS, PROOF_CLIENT, CLIENT. Original task context.
R06-08
- Expose required current-state code/balance queries using existing GroveDB range and projection facilities; test paging, empty ranges, byte caps, effective limits, tampering and Element projection parity across native/WASM clients. Add new API versions only where needed.
Prerequisites: None recorded.
Dependents: R06-07, R09-03, R09-08.
Modules: QUERIES, QUERY_SERVER, PROOFS. Original task context.
R06-11
- Document the distinction between current-state proofs, stored receipts and unproven execution-result text; reflect default-enabled contract-controlled receipts in ABI capabilities and client result semantics.
Q32 (confirmed): Receipt storage defaults to enabled and retention is contract-defined. No declared expiry means retain until authorized removal, not an invented automatic expiry. Canonical code retention remains independent.
Prerequisites: None recorded.
Dependents: None recorded.
Modules: ABI, DPP, PROOF_CLIENT, CLIENT. Original task context.
R09-08
- Test current-state proofs for contract data/balances/code and enabled receipts, including tampered or wrong-root proofs. Keep historical execution replay tests distinct; do not require a past-height proof endpoint.
Prerequisites: R09-03, R09-05, R06-08.
Dependents: None recorded.
Modules: PROOFS, PROOF_CLIENT, DRIVE_TESTS. Original task context.
CAP-12
- Implement current-root proof/result compatibility matrix
Proof format, element projection, expected request/root, absence and effective limits checked for each accepted query family. Engineering architecture: Preserve query-library -> proof-verifier -> Drive verification dependency direction. Implement a real alloc-only guest value/codec feature path excluding full native PlatformVersion dispatch, DPP, Drive, clients and execution engine; verify separate guest-target builds.
Prerequisites: CAP-04, CAP-05, CAP-06, CAP-07, CAP-08.
Modules: PROOFS, PROOF_CLIENT, QUERY_TYPES. Original task context. Capabilities: Q18, Q19, O05.
Coordination and dependencies
Task-level prerequisites above govern order. Workstreams contain multiple stages, so a cross-link is not a claim that the entire other issue must close first. These are Markdown relationships, not native GitHub blocked-by edges. The parent dependency register preserves all 234 links, reasons and explicit/inferred labels.
- CAP-04 → CAP-12 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-05 → CAP-12 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-06 → CAP-12 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-07 → CAP-12 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-08 → CAP-12 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-12 → CAP-13 (inferred): Implementation dependency between the specified adapters and their integration checks.
- CAP-12 → CAP-15 (inferred): Implementation dependency between the specified adapters and their integration checks.
- R06-05 → R06-06 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R06-06 → R06-07 (inferred): Rebased source dependency; confirm the implementation ordering. The end-to-end code-blob proof uses section 6.3 range proofs.
- R06-08 → R06-07 (inferred): Rebased source dependency; confirm the implementation ordering. The end-to-end code-blob proof uses section 6.3 range proofs.
- R06-06 → R13-08 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R06-08 → R09-03 (inferred): Rebased source dependency; confirm the implementation ordering. Footprint resolution builds on the guest ABI and section 6.3 query/proof infrastructure.
- R09-03 → R09-08 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R09-05 → R09-08 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
PR and evidence tracking
Create focused PRs against the chosen development branch. Link this issue with Refs #<issue-number> for partial work. Do not use Fixes for the whole workstream until every listed full task and acceptance criterion is complete.
For a PR that completes an entire task, add a standalone line in its actual PR body: Dash-Tasks: <completed task IDs>. Replace the placeholder with only fully completed IDs. Preparation PRs use ordinary references and omit the completion marker for their broader parent tasks. The site reads this marker on PRs in dashpay/platform and dashpay/grovedb: draft = red, ready for review = yellow, merged with no linked open PR = green. Closed-unmerged is not completion. This does not automatically close issue checkboxes and does not prove acceptance tests passed; reviewers must record the evidence.
| Evidence | Link / result |
|---|---|
| Implementation PRs | Pending |
| Canonical vectors and targeted tests | Pending |
| Upgrade/replay/conservation evidence, where applicable | Pending |
| Remaining full-task acceptance | All unchecked above |
Activity
docs(platform): distinguish current-state proofs, stored receipts and…