Skip to main content

session_context_bytes

Function session_context_bytes 

Source
pub fn session_context_bytes(
    inputs: &SessionContextInputs,
) -> Result<Vec<u8>, String>
Expand description

The SPEC §6.4.9 session-context preimage: the domain tag followed by every field length-prefixed, in canonical order. Errors unless request_hash is exactly 32 bytes — use operation_context_hash to derive it, over an all-empty OperationContext when the deployment has no operation-specific inputs.