Skip to main content

verify_cosignatures

Function verify_cosignatures 

Source
pub fn verify_cosignatures(
    note: &Note,
    witnesses: &[Verifier],
) -> Result<Vec<Cosignature>>
Expand description

Checks the cosignature/v1 lines of note against witnesses: a line whose name and key id match a witness has to verify over cosignature/v1, time <t> and the note text. Returns each verified witness with its timestamp, in note order; lines from unknown keys are ignored. A trusted witness that signed nothing is not an error; a witness line that does not verify is.