Skip to main content

Proposal: This page presents the draft API and profile model. Send feedback on GitHub.

Prepare, prove and sign a request

Construct the exact intent​

The fixture's input is the empty byte string, whose SHA-256 is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. The fixture intent is:

{
"v": "http6-guide-01",
"kind": "intent",
"rootId": "root-1",
"tenant": "lab",
"purpose": "month-close",
"audience": "reports-db",
"action": "report-read",
"resource": "monthly-total",
"args": {"period": "2026-10", "project": "p7"},
"inputHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"releaseTo": "reader-1",
"units": 6
}

A real adapter must bind every effect-changing input. For a database query this includes the registered query, complete typed arguments and recipient; for a wallet it includes network, amount and beneficiary. A vocabulary that cannot represent one of these must reject the action or use a new profile. Model text or an LLM tool suggestion is not authority to enlarge the rule.

Challenge and prove​

The holder freezes an attempt containing the intent reference, leaf grant, policy, identity and generation, POST, the exact target URI, epoch, operation and fresh record IDs. The verifier issues a fresh signed request-proof challenge over H("attempt", attempt). The holder and circuit respond under a real, separately specified native proof contract. The registered designated verifier validates the native response and emits a signed proof-result containing the same challenge, actor, context, direction and policy.

async function proveRequest(frozenIntent, actualInput, leaf, target) {
require(rawHash(actualInput) === frozenIntent.inputHash);
const attempt = freeze(makeAttempt({
op: stableOperationId(), record: freshRecordId(),
intentRef: H("intent", frozenIntent), grantRef: ref(leaf.grant),
policyRef: H("policy", leaf.policy), holder: leaf.holder,
keyId: leaf.keyId, gen: leaf.gen, method: "POST", target,
epoch: leaf.epoch, iat: clock.now(), exp: boundedDeadline()
}));
const challenge = await trustedVerifier.issue({purpose: "request-proof",
contextRef: H("attempt", attempt), actorKeyId: leaf.keyId, recipient: "resource"});
verifyChallenge(challenge, attempt, configuredTrust);
const nativeResponse = await protectedCircuit.answer(challenge, attempt);
const result = await trustedVerifier.validateAndConsume(challenge, nativeResponse);
verifyProofResult(result, challenge, attempt, "request", configuredTrust);
const proof = freeze({challenge, result});
const request = await leaf.sign({v: "http6-guide-01", kind: "request",
attemptRef: H("attempt", attempt), proofRef: H("proof", proof)});
return freeze({intent: frozenIntent, input: hex(actualInput), attempt, proof, request,
grantChain: leaf.chain, policies: leaf.policies, appraisal: leaf.appraisal});
}

The placeholder nativeResponse is private provider-specific material. The example's witnessCommitment is a public synthetic digest and is not a native proof. Production proof documentation must identify the native statement and witness, who verifies what, privacy assumptions, soundness and replay guarantees, and public evidence that can safely be disclosed. The SDK must not call an attestation publicly verifiable proof of knowledge unless a suitable independent verifier and security definition exist.

HTTP carrier​

The guide profile proposes POST over authenticated TLS to the exact attempt.target. The body is the canonical UTF-8 requestPacket. The holder-signed request binds the attempt and proof, which bind the actual method, target, intent and input digest. The resource recomputes H("request-packet", requestPacket) for ledger callbacks. A reservation request carries this packet to the state authority through an authenticated control interface, and the resource receives the state-signed permit with the packet. The present draft does not define a finalized wire container or HTTP header for the permit; implementations must agree one before interoperation. HTTPS protects transport, while the profile signatures and resource checks authorize the operation.

The existing W1 HTTP binding and WASIX HTTP6-Proof, HTTP6-Policy, HTTP6-Certificate fields are different. Do not add these guide fields to a W1 packet or claim the guide packet is a W1 signed HTTP message.