File tree 1 file changed +2
-4
lines changed
crates/bitwarden-crypto/src/signing
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,10 @@ impl SignedPublicKeyOwnershipClaim {
46
46
verifying_key : & VerifyingKey ,
47
47
) -> Result < bool , CryptoError > {
48
48
let signed_object = SignedObject :: from_cose ( & self . 0 ) ?;
49
- let claim = verifying_key. get_verified_payload ( & SigningNamespace :: PublicKeyOwnershipClaim , & signed_object) ?;
50
- println ! ( "Signed object: {:?}" , claim) ;
51
- let claim: PublicKeyOwnershipClaim = ciborium:: de:: from_reader ( & claim[ ..] ) . map_err ( |_| {
49
+ let serialized_claim = verifying_key. get_verified_payload ( & SigningNamespace :: PublicKeyOwnershipClaim , & signed_object) ?;
50
+ let claim: PublicKeyOwnershipClaim = ciborium:: de:: from_reader ( & serialized_claim[ ..] ) . map_err ( |_| {
52
51
CryptoError :: InvalidEncoding
53
52
} ) ?;
54
- println ! ( "Claim: {:?}" , claim) ;
55
53
Ok ( public_key. verify_fingerprint ( & claim. fingerprint ) )
56
54
}
57
55
You can’t perform that action at this time.
0 commit comments