Skip to main content

encode_recovery_state

Function encode_recovery_state 

Source
pub fn encode_recovery_state(
    sender: NodeId,
    session: LinkSessionId,
    state: RecoveryState,
    output: &mut [u8],
    limits: WireLimits,
) -> Result<ControlEncoding, WireError>
Expand description

Encode RECOVERY_STATE into reusable storage without mutation on error.

Obtain the response from an activated normal core and retain it unchanged per nonce/view. Encoding proves neither that role nor retention of source bytes.