[team] Team vaults: rustfmt on the files this change touches
This commit is contained in:
@@ -180,7 +180,12 @@ pub struct Verified {
|
||||
/// with it: both signatures, every approval (signature, roster, the request's own match code), the request and
|
||||
/// envelope hashes, and the policy evaluated again. The clock is not consulted: a proof stays checkable after its
|
||||
/// request expired.
|
||||
pub fn verify_proof(proof: &Proof, identity: &[u8; 32], request_text: &str, envelope: &[u8]) -> Result<Verified, TeamError> {
|
||||
pub fn verify_proof(
|
||||
proof: &Proof,
|
||||
identity: &[u8; 32],
|
||||
request_text: &str,
|
||||
envelope: &[u8],
|
||||
) -> Result<Verified, TeamError> {
|
||||
let sig: [u8; 64] = unb64(&proof.sig).and_then(|s| s.try_into().ok()).ok_or(TeamError::BadSignature)?;
|
||||
if !verify_proof_sig(identity, &proof.text, &sig) {
|
||||
return Err(TeamError::BadSignature);
|
||||
|
||||
Reference in New Issue
Block a user