Use the profile clock 1700000000 seconds since the Unix epoch as time zero. All origin and key names are fixtures. The service is https://compute.example, the account is lab, the project is p7, the purpose is simulation, and the shared pool is pool-p7 with ten credits. The original planner key is root1. Workers use a1 and b1, and the replacement for worker A uses a2. The keys named human, admission, delegator, appraiser, state, resource, keeper, and recovery exercise the roles in the companion. A holder signs its join. Its current parent signs a child grant request.
- For each
objects[name]usesignerandclaimsto construct the compact signed object. Thexin the key entry is the raw 32-byte public key encoded as unpadded base64url.testSeedencodes a 32-byte Ed25519 signing seed in the same alphabet. The protected JWS algorithm isEd25519.compactis the expected output. - For each
messages[name]start frominputand the entry's absolutecreatedtime. In a request body replace eachchainlabel and theappraisallabel with the corresponding newly produced compact strings. In a response replace any non-nullevidencelabel likewise, and insertrequestRefcomputed from the named request's HTTP Signature field value. The response inputs deliberately include properly signed statements for the wrong recipient or outcome. A valid signature alone is insufficient to accept them. - Serialize the body using the restricted canonical JSON in the companion. Build the signature base with LF between component lines and no LF at the end. The HTTP signature algorithm identifier is lowercase
ed25519. In the request, cover"@method" "@target-uri" "content-type" "content-digest"in order. In the response, cover"@status" "content-type" "content-digest" "@method";req "@target-uri";req "content-digest";req. Include the final"@signature-params"line in each base. The signing interval in each golden message is 30 seconds. - For the producer byte challenge, use
POST <path> HTTP/1.1orHTTP/1.1 <status> <reason>, then fields in the order below. The status phrases areOK,Accepted,Forbidden,ConflictandService Unavailablefor 200, 202, 403, 409 and 503 respectively. Use one space after the field-name colon, CRLF between lines, a CRLF blank line, and the exact body with no trailing newline. - Three entries instead specify
source,oldAscii, andnewAscii. Replace the single occurrence in the source packet byte string after signing. They havebaseB64: nulland must fail verification. For every entry, compare the raw wire SHA-256, padded standard Base64wireB64, and any suppliedbaseB64. The diagnostic base is the one the producer signed. The receiver derives its own base from the packet and the request association.
| Request field order | Response field order |
|---|---|
Host: compute.example |
Cache-Control: private, no-store |
Content-Type: application/json |
Content-Type: application/json |
Content-Digest |
Content-Digest |
Signature-Input |
Signature-Input |
Signature |
Signature |
Content-Length |
Content-Length |
To inspect a complete byte example, run the following from this directory. Changing baseB64 to wireB64 prints the transmitted packet.
node -e "const f=require('./fixtures.json'); process.stdout.write(Buffer.from(f.messages['charge-a'].baseB64,'base64'))"