Skip to main content

encode_signed_request

Function encode_signed_request 

Source
pub fn encode_signed_request(
    txid: &TransactionId,
    nonce_attr_value: &[u8],
    signer: &dyn StunSigner,
) -> Vec<u8> 
Expand description

Encode a fully signed Binding request — DIG-IDENTITY + NONCE + DIG-SIGNATURE, in that order, at most 228 bytes (SPEC.md §14.9 step 4). nonce_attr_value is echoed back EXACTLY as received in a challenge; signer supplies both the SPKI and the signature over crate::credential::signing_message.