MTB removal receipt v1 (mtb-receipt) Issued by seenonmyterms.com. Open verification. Closed production. FORMAT Compact JWS: base64url(header).base64url(payload).base64url(signature) Header: {"alg":"EdDSA","typ":"application/mtb-receipt+jws","kid":"","ver":1} Signature: Ed25519 over the ASCII bytes of "header.payload". The accepted algorithm is verifier policy. A receipt cannot choose its own. PAYLOAD ver "1"; iss; aud; rid; sample; iat; nbf; exp; tenant; sub (pairwise, no name); actor_type; capability "removal.request"; authorized (boolean); policy; epoch; evidence (opaque handle); basis "self_reported"; plan; person; items[]: {resource, action_ref, request_hash, result} request_hash = base64url(SHA-256(canonical JSON of {site, action, listing_ref})), canonical JSON = keys sorted, no whitespace. CHECK ORDER AND REASON CODES 1 bad_format not three parts, undecodable, wrong typ, ver not "1" 2 alg_not_allowed alg is not EdDSA 3 unknown_kid kid not in the verifier's key set 4 bad_signature signature is not 64 bytes, or does not verify 5 not_yet_valid now before nbf 6 expired now at or after exp 7 wrong_audience aud differs from the verifier's audience 8 not_authorized authorized is not true 9 binding_mismatch (if a request hash is supplied) no item carries it 10 merkle_mismatch (if a batch proof is supplied) the path does not reach the root Merkle: leaf = SHA-256(0x00 || "header.payload"); node = SHA-256(0x01 || left || right). WHAT IT PROVES The record is unaltered, who issued it, when, and what was asked. WHAT IT DOES NOT PROVE That a site acted (basis is self_reported). That the receipt was not revoked after issue. FILES /chosen/receipt-verifier.js /chosen/receipt-vectors.js /chosen/receipt-signed.json /chosen/receipt-verify.py /chosen/receipt-key.json