[team] Team vaults: rustfmt on the files this change touches

This commit is contained in:
2026-11-17 12:15:18 +01:00
parent e3ede760bd
commit 3bb05bf6f1
8 changed files with 138 additions and 45 deletions
+6 -1
View File
@@ -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);