Decide whether to publish
Publication is optional. Before any simulation or signature, an authorized owner reviews:- independently verified canonical report and required artifacts;
- target/network/suite/standards/runner identity and completed cleanup;
- publication mode and exact target commitment construction;
- selected Stellar network, contract deployment, attestor, fees, and signer;
- public fields, timing/activity leakage, permanence, and revocation limits;
- prohibited-data scan and explicit consent record;
- support owner and supersede/revoke procedure.
Verify the report first
Follow Verify and share a report with an offline trusted manifest, key set, suite lock, standards snapshot, and artifact inventory. Record report ID, canonical SHA-256 digest, verification-key ID, signing time, verifier release/digest, and verification result. Only a finalizedverified report is eligible. A failed conformance gate may still be published as an accurately labeled result if policy allows; blocked, indeterminate, cancelled, tampered, unknown-key, incompatible, incomplete-cleanup, or prohibited-data results are ineligible.
Build compact commitments
The conceptualEvidenceRecord contains:
No report body, URL/token, home domain string, customer field, credential, evidence object, finding text, XDR, or nonce for a partner commitment is stored on-chain.
The stored planned publication fixture contains placeholders, a disabled submission flag, and no signer material. The future generated input schema is authoritative.
Evidence identifier
The design derives an ID deterministically from a domain separator, publisher address XDR, report hash, and network discriminant:Trust the deployment
Before a read or write:- obtain the contracts tag, full commit, generated spec/binding, optimized WASM, and deployment manifest from the compatible product release;
- verify every artifact digest and network passphrase;
- connect only to the reviewed RPC origin for that deployment;
- query live executable code and compare its hash with the manifest’s WASM SHA-256;
- verify contract ID, deployment transaction, interface/storage major, initialization schema, and test-only/public status;
- confirm pause state and attestor record at a recent finalized ledger;
- record RPC identity, ledger sequence/close time, code hash, and verification time.
Simulate publication
Construct the generated input from verified local values, then invoke the released binding’s simulation path without a secret key. Check authorization entries, footprint, read/write keys, resource fees, refundable fee, ledger bounds, sequence/time bounds, return shape, and emitted-event preview. Recompute hashes, ID, counts, score range, bitmap, attestor status, pause state, and absence/eligible supersession immediately before simulation. Reject unexpected authorization, storage, contract calls, Soroban data, excessive resources, or changed ledger state. Simulation is not submission and proves no ledger mutation. Persist a redacted simulation digest and ledger context, never signer seed or full sensitive preimage.Sign and submit
Use a policy-controlled attestor signer from an approved wallet, hardware device, or KMS integration. Show network passphrase, RPC host, contract ID/code hash, method, evidence ID, report/target/suite/spec/artifact hashes, counts, score, fees, ledger/time bounds, and any replacement ID before approval. The backend cannot use an admin signer as a substitute for an attestor. Enforce enabled-attestor authorization, signer scope, per-network/value/rate limits, separation from report signing keys, and dual approval where policy requires it. Seeds and raw signing payloads never enter reports, logs, browser storage, support bundles, or docs. Submit the exact simulated/approved envelope once with an idempotent operation record. On timeout or unknown response, query transaction hash and evidence ID before rebuilding. Never blindly resubmit a mutating invocation.Confirm publication
Success requires all of:- transaction status
SUCCESSon the intended network and finalized ledger policy; - returned evidence ID equals the local deterministic calculation;
evidence_publishedevent topics/data match report, target, suite, and publisher commitments;get_evidencereturns the expected active record from the verified deployment/code hash;- attestor was enabled and report commitment has no conflicting active record;
- report records publication network, contract ID, code hash, transaction hash, ledger, event index, evidence ID, manifest digest, and confirmation time.
Look up and compare
Read at a stated ledger and verify deployment first. Compare on-chainreport_hash, target commitment under the disclosed mode/preimage policy, suite/spec/artifact hashes, network, bitmap, counts, score, publisher/attestor, status, and supersession link with the independently verified report.
Return verified, absent, unverified, or infrastructure as described by Contract lookups. absent applies only to the exact verified network/deployment/ledger; it does not prove global absence.
Supersede
A corrected or newer finalized report creates a new commitment. Verify it independently, confirm old evidence is active and replacement is eligible, preview the relationship, then authorizesupersede_evidence through the publishing attestor or explicitly documented admin policy.
Confirm one evidence_superseded event, old status Superseded, new active record, no cycle, and report-to-report correction/version relationship. The old record remains readable and must not be presented as current.
Revoke
Revocation addresses compromised keys, prohibited publication, withdrawn evidence, or policy-invalid state; it does not delete history. Hash a controlled reason record rather than storing sensitive reason text. The publishing attestor or documented admin authorizesrevoke_evidence, including while publishing is paused.
Confirm transaction/event, status Revoked, reason hash, ledger, actor, incident/audit reference, and that the record cannot become active again. Disable public/partner off-chain access separately and communicate the irreversible ledger footprint.