Skip to main content

unwrap_envelope

Function unwrap_envelope 

Source
pub fn unwrap_envelope(
    request: &[u8],
    opts: &UnwrapOptions<'_>,
) -> Result<(EnvelopeContext, Vec<u8>)>
Expand description

Unwrap, verify, and build an EnvelopeContext from wire bytes.

Context construction depends on verification mode:

  • FixedSigner → key_derived_subject = "system" (inproc/IPC callers)
  • AnySigner → key_derived_subject = anonymous (WebTransport, identity from JWT)