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.
Digest and signature registry
Typed digest APIs must name the exact profile, data type, algorithm, input bytes and encoding. Never hash a JSON object by an implementation's default stringification and assume it matches another implementation. Preserve the exact received bytes needed for signature and forensic verification.
| Name | Exact input and output | Purpose |
|---|---|---|
| W1 terms hash | SHA-256 of canonical W1 terms JSON, lowercase hex | Bind approval, join and grant request to the same terms. |
| W1 intent hash | SHA-256 of canonical W1 intent JSON, lowercase hex | Preserve business intent across attempts. |
| W1 signed-object hash | SHA-256 of the complete compact JWS ASCII bytes, including signature, lowercase hex | Reference that exact signed object. |
W1 request Content-Digest | SHA-256 over exact transmitted body octets, padded standard Base64 in the sha-256=:...: field syntax | Bind the received body, including its record ID. |
W1 requestRef | SHA-256 hex of the ASCII request Signature field value, from w1=: through its ending colon, with no field name or surrounding whitespace | Link the resource response to that exact signed request. This is not the body digest or JWS digest. |
WASIX H(label, object) | SHA-256 hex of ASCII http6-wasix-delegation-00/ + ASCII label + one 0x00 byte + canonical JSON bytes | Domain-separated policy, intent, attempt, proof and circuit-result digests. |
WASIX S(jws) | SHA-256 hex of the complete compact JWS ASCII bytes | Exact signed request, certificate or grant reference where specified. |
| WASIX input hash | SHA-256 hex of exact input octets, including the empty byte string | Bind bytes actually supplied to an action. |
| WASIX circuit result | resultHash = H("circuit-result", result); verifier signs the 32 decoded digest bytes, then proofRef = H("proof", publicProof) | Bind the signed verifier result and complete public proof. |
| Proposed response content and context | Exact response bytes, status, recipient, request and outcome references, sender, direction, nonce and lifetime under a separately versioned format | Support a separately verified native response proof without reusing a request proof. Exact wire rules remain to be frozen. |
W1 uses restricted RFC 8785 canonical JSON: printable ASCII strings and object names, booleans, null, arrays and unsigned integers; timestamps and other integers have the ranges in the draft. Reject duplicate or unknown members, noncanonical bytes, out-of-range numbers and unsupported values. W1 compact JWS protected headers contain exactly alg, kid, typ, with Ed25519 and http6-w1+jws; the protected header and payload are canonical. Compact JWS segments are unpadded base64url. HTTP Content-Digest and HTTP signature byte sequences use standard padded Base64 in their specified structured-field encoding. They are not interchangeable encodings.
W1 limits are 65,536 body octets, 16,384 header octets, 8,192 characters per compact object, and nine chain objects including the root. Permissions contain one to eight unique identifiers in ascending ASCII order. Validity is inclusive at the start and exclusive at the end. Configure an uncertainty budget for clocks and reject ambiguous expiry. The WASIX profile's implementation has its own closed schemas and resource limits; test its exact serializer against profile-specific vectors before interchange.
Dependency map
The arrows mean that the target references or authenticates the source under the relevant profile; each arrow is checked independently. The two branches are distinct, and the extension's response steps are future work.
W1:
terms -> approval + join -> root -> parent request + child join -> grant chain
intent -> intentHash -> permit -> resource outcome / closure
request body -> Content-Digest -> request HTTP signature -> requestRef
requestRef + outcome + response body -> response Content-Digest -> response HTTP signature
WASIX:
policy -> policyHash -> root and child grants -> attempt
input bytes -> inputHash -> intent -> intentHash -> attempt -> attemptHash
attemptHash + challenge -> circuit result -> resultHash -> signed public proof -> proofRef
attempt + proofRef -> signed request -> requestRef -> certificate
body + proof + policy address + certificate -> holder HTTP signature -> presentationRef
presentation + references -> check -> designated redemption -> resource observation -> receipt
Proposed response proof:
result bytes -> payloadDigest -> response context + challenge -> native response proof
result + context + proof -> final envelope digest -> response HTTP signature
This is a dependency map, not a serialization template. A resource receipt or proof verifier's signature states what that signer attests; the recorded observation and trust in the resource determine what can be concluded about a real effect.
Signing W1 HTTP messages
W1 signs the following components in exactly this order with a single w1 label and parameters created, expires, keyid, alg, tag, in that order. The HTTP tag is http6-w1-00, algorithm ed25519. A request or response signature interval is at most 30 seconds.
Request: "@method" "@target-uri" "content-type" "content-digest"
Response: "@status" "content-type" "content-digest" "@method";req
"@target-uri";req "content-digest";req
The response signer is the trusted resource key. The client verifies the response's own time interval, associated request context, recipient, operation, status and evidence. The WASIX dg component list is different and covers proof, policy and certificate fields as well. Select one profile explicitly and reconstruct its exact signature base; never mix w1 and dg rules. Reject duplicate fields, unauthorized redirects, changed target, transformations and conflicting framing. W1 excludes state-changing early data, content/transfer codings, trailers and unverified streaming effects.