pub fn decode_runtime_frame(
key: &[u8; 32],
direction: RuntimeFrameDirection,
frame: &[u8],
) -> Result<Vec<u8>, RuntimeFrameError>Expand description
Authenticate and decrypt before JSON decoding or dispatch. A wrong peer or active relay sees ciphertext, not the projection. This does not admit a capability or prevent replay; those require trusted policy and session state.