Skip to main content

Module operation_context

Module operation_context 

Source
Expand description

Operation, session, and challenge-claim constructions (SPEC-v2 §2.4, §4; Go operation_context_v2.go and challenge_claim_v2.go).

Structs§

OperationContextV2
Action inputs bound to a Protocol v2 presentation.
SessionContextV2Inputs
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. None means 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.