Repository navigation
Open Q4 — compact network-consumable verification attestation: implementer requirements from an on-chain evidence consumer #55
faulknerwayne73-droid
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
COMMENT-ROUND.md · Open Question #4 · v1.0.3-rc.2
The COMMENT-ROUND.md editor list flags "a compact, network-consumable verification attestation (signed summary a rail can verify without ingesting the chain)" as an open question for v1.0.4 scoping. We are commenting as an implementer that already runs the exact class of consumer this attestation is designed to serve — an on-chain, atomic-execution smart contract — and would like to contribute concrete field-level requirements before the scoping closes.
Consumer profile. The Kojiru protocol (Base L2 mainnet, BaseScan-verified) executes a slash-and-route function within the same transaction as a disputed agentic purchase. Consuming a full AEP DisputeBundle on-chain is not viable — RFC 8785 canonicalization plus Ed25519 verification plus a variable-length hash walk exceeds a reasonable block gas budget by two orders of magnitude, and re-executing the walk per verifier defeats the compactness intent of Open Q4. What we can consume is a fixed-size, deterministically-verifiable attestation. That is exactly what Open Q4 proposes.
Requirements from an on-chain consumer (each item cites its dependency in the current draft, none of them proposes AEP gate settlement):
Deterministic verifiability from a single 32-byte input. The attestation payload should be reducible to a single keccak256 (or SHA-256, if EVM precompile support for SHA-256 is preferred for L1 portability) preimage such that on-chain verification is O(1) in the size of the underlying chain. A candidate structure: H( chain_id ‖ sealed_bundle_hash ‖ verification_class ‖ signal_class_summary ‖ attester_pubkey ‖ expires_at ).
Bind to authorization, not fulfillment. Per §4.3 sealing at the authorization artifact, the attestation must reference the seal point — not any post-seal fulfillment or refund artifact — so a downstream consumer can act at the moment consequence is decided rather than waiting for the delivery loop. Post-seal deltas can be handled by a subsequent attestation with the same chain_id and a monotonic attestation_seq field.
Preserve §3.9.12's no-consequence posture explicitly. The attestation itself should carry a normative marker (e.g., outcome_binding: false) declaring that the presence of a valid attestation implies nothing about liability, chargeback outcome, or any network rule — matching the spec's existing §3.9.12 disclaimer. This lets downstream consumers (like ours) build outcome-binding logic independently without ever being able to claim AEP endorses it. This is architecturally consistent with your Row 2 disposition.
Attester relationship disclosure required, not optional. The issuer_relationship field already accepted for the pre-execution attestation (Row 1, §3.9.N) should be required here too — first_party, psp_operated, network_operated, custodian_operated, third_party_witness. A consumer smart contract must be able to differentiate a merchant self-attesting from a PSP attesting from an independent custodian attesting, without ingesting the chain.
Anchoring hint, not requirement. An optional anchor_hint field pointing to an external timestamp / transparency log reference (per §4.3 anchoring direction) lets an on-chain consumer accept a later-verified attestation without needing to synchronously verify the anchor in the same block. Anchor verification becomes an off-chain challenge window rather than a pre-transaction gate.
Compact enough to fit in an EVM calldata frame — practical target ~256 bytes for the attestation payload plus a 64-byte Ed25519 signature. This is achievable if all variable-length AEP fields collapse to bytes32 digests in the attestation.
Non-ask. We are not asking AEP to define, endorse, or reference any specific downstream enforcement mechanism, and we understand from the Row 2 disposition why that would be architecturally wrong. We are asking that Open Q4's attestation, if scoped for v1.0.4, be designed to be legible to an on-chain consumer without special-casing any of them.
Offer. We can contribute a reference verifier as an EVM library (MIT-licensed, no Kojiru-specific logic) plus conformance vectors demonstrating that a v1.0.3-anchored chain reduces losslessly to the proposed attestation structure and back. This aligns with the §6.3 test-vector gating already required for v1.0.3-final.
Thank you for the draft and the process. Happy to answer any implementer questions in-thread.
— Wayne Faulkner, Kojiru DCO Sign-off: Signed-off-by: Wayne Faulkner wayne@kojiru.com
wayne@kojiru.com
All reactions