Expand description
Operation, session, and challenge-claim constructions (SPEC-v2 §2.4, §4;
Go operation_context_v2.go and challenge_claim_v2.go).
Structs§
- Operation
Context V2 - Action inputs bound to a Protocol v2 presentation.
- Session
Context V2Inputs - Verifier session and invocation inputs bound to a Protocol v2 presentation.
Functions§
- build_
session_ context_ v2 session_context = SHA-256(session_context_bytes).- challenge_
claim_ digest_ v2 ChallengeClaimDigest(c) = SHA-384("ratify-protocol-challenge-claim-v2" || 0x00 || c)for exactly 32 decoded challenge bytes.- decode_
payload_ digest_ v2 - Decode the Verify API
sha256:<64 lowercase hex>form.Nonemeans no payload digest was supplied. - operation_
context_ v2_ bytes - The operation-context v2 preimage in canonical field order. The required
scope must be one requestable scope (
invalid_required_scope). - operation_
context_ v2_ hash request_hash = SHA-256(operation_context_bytes).- protocol_
claim_ id_ from_ digest_ v2 - The same claim ID from a precomputed 48-byte challenge claim digest.
- protocol_
claim_ id_ v2 - The stable claim ID bound to the namespace and rollback-protected epoch.
- session_
context_ v2_ bytes - The session-context v2 preimage in canonical field order.