Skip to main content

build_external_aad

Function build_external_aad 

Source
pub fn build_external_aad(
    envelope_schema_id: u64,
    inner_type_id: u64,
) -> Vec<u8> ⓘ
Expand description

Build the COSE external_aad for envelope signing.

Encoded as CBOR [envelope_schema_id, inner_type_id] — both u64. Receivers MUST pass the same values they expect to verify; otherwise signature verification fails.