Skip to main content

verify

Function verify 

Source
pub fn verify(
    wire: &[u8],
    profile: Profile,
    now_ms: i64,
) -> Result<Verified, RecordError>
Expand description

Reads a record’s wire form under the verifier’s profile and clock now_ms, as macula_record’s verify/3 does, in this order: a wire form over 256 KiB, before anything is decoded; a signed object that carries its key; its signature and alg; a tbs of exactly its fields; created_at no more than 5 minutes ahead and expires_at no more than 5 minutes behind; a lifetime within its type’s maximum; its type’s payload rules; and a payload that names its signer by the key’s id.