Function verify_request_with_signature

Source
pub fn verify_request_with_signature(
    random_bytes: &[u8],
    verifying_key: &VerifyingKey,
    signature: &Signature,
    verified_parties: &[VerifyingKey],
) -> Result<(), Error>
Expand description

Given random bytes, a verifying key for the sending party, a signature of the random bytes and a list of verifying keys for the other parties, returns an ok result for a valid request or an appropriate error result for an invalid request.

NOTE: random bytes are prefixed with a predefined phrase before signing.