Skip to main content

verify_status

Function verify_status 

Source
pub fn verify_status(
    statement: &SignedTbs,
    binding: &SignedTbs,
    identity_key: &[u8],
    profile: Profile,
    now_ms: i64,
) -> Result<i64, BindingError>
Expand description

Checks a status statement for the binding it came with, against the identity key as carried, under profile, at now_ms with 5 minutes of tolerance, and returns when the statement expires. It checks that the statement names that binding, not the binding itself: a caller verifies the binding too.