Skip to main content

verify_wan_against_record

Function verify_wan_against_record 

Source
pub fn verify_wan_against_record(
    carried: &WanCarried<'_>,
    record: &WanKeyRecord,
    message: &str,
) -> Result<(), WanCheckFailure>
Expand description

The checks against a directory record, in the §2.3 order: the chain, the record matching what was carried, then the message signature. Run after check_wan_envelope passes and a record was found. Replay is the caller’s (it needs state).