Skip to main content

Historical proposal: This preserved draft predates the WASIX 01 response-proof pilot. See the SDK integration page for the current implementation. Send feedback on GitHub.

Proposed request and response proof extension

This section proposes a path to the full per-message model. It is not a W1 field definition and is not a released WASIX response format. A profile revision must specify the full schema, byte encodings, limits, transport mapping, trust and verification rules, test vectors, and privacy model.

Message context​

// Conceptual required semantics, not an approved wire schema.
type MessageContext = {
profile: ProfileId;
messageType: "request" | "response" | "ledger-control";
direction: "client-to-resource" | "resource-to-client" | "service-to-ledger";
sender: InstanceRef; recipient: InstanceRef;
authorityRef: GrantRef; policyRef: PolicyRef;
operationId: OperationId; recordId: RecordId;
requestRef?: RequestPresentationRef; // required for a response
status?: Integer; // required for an HTTP response
target: ExactTarget; contentType: MediaType;
payloadDigest: TypedDigest; outcomeRef?: OutcomeRef;
challenge: ChallengeRef; issuedAt: Time; expiresAt: Time;
};

Require explicit rules for which fields are mandatory in each direction, how sender and recipient are authenticated, and how a result's actual bytes are bound. Response proof challenge ownership, expiry, replay storage and who can verify must be specified. A malicious or repeated challenge must not cause unsafe reuse of a native witness or private mask.

Construction order without a circular hash​

  1. Freeze the application result bytes, HTTP status, recipient, original request reference, and durable outcome reference. Compute payloadDigest over the exact result bytes.
  2. Construct and canonicalize the response MessageContext without any response proof, final envelope signature, or digest of an envelope that contains itself. Bind the payload digest, request reference and resource observation.
  3. Verify a fresh challenge for this context. Produce and verify the response proof under the resource's registered circuit and verifier policy. The proof states precisely whether its native relation is publicly verifiable or is an attestation from a trusted designated verifier.
  4. Assemble a response envelope containing the frozen result, context and proof or stable proof reference. Calculate its body digest over the final envelope. Sign the response status, exact final body digest and associated request components under the profile's defined HTTP signature base.
  5. The receiver verifies the HTTP association, recipient and exact body; independently checks context and payload digest; validates and consumes the response proof under the right verifier and challenge; checks the signed outcome and resource evidence; then permits release. If proof resolution or the authoritative verifier is unavailable, return an authenticated hold or indeterminate result rather than asserting proof success.

This ordering avoids making the proof depend on a digest of the envelope that contains the proof. The specification still needs to choose whether to embed payload and proof or transmit detached bytes, define the signed content type and failure behavior, and handle privacy-preserving retention. Do not assume a response signature is a native response proof, or that a native proof alone proves an actual external effect.

A request-side design can use the same separation: hash the immutable application payload, place its digest in an attempt context, obtain a challenge and proof for that context, construct the envelope, and finally sign the exact transmitted HTTP representation. W1 and WASIX maintain their own existing construction orders unless revised through new profile versions.