Skip to main content

operation_context_bytes

Function operation_context_bytes 

Source
pub fn operation_context_bytes(
    ctx: &OperationContext,
) -> Result<Vec<u8>, String>
Expand description

The SPEC §6.4.9 operation-context preimage: the domain tag followed by every field length-prefixed, in canonical order. Errors if payload_digest is neither empty nor exactly 32 bytes.