File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
crates/bitwarden-crypto/src/keys Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -83,20 +83,20 @@ impl From<SignedPublicKey> for CoseSign1Bytes {
83
83
}
84
84
}
85
85
86
- impl From < SignedPublicKey > for String {
87
- fn from ( val : SignedPublicKey ) -> Self {
88
- let bytes: CoseSign1Bytes = val. into ( ) ;
89
- STANDARD . encode ( bytes. as_ref ( ) )
90
- }
91
- }
92
-
93
86
impl TryFrom < CoseSign1Bytes > for SignedPublicKey {
94
87
type Error = EncodingError ;
95
88
fn try_from ( bytes : CoseSign1Bytes ) -> Result < Self , EncodingError > {
96
89
Ok ( SignedPublicKey ( SignedObject :: from_cose ( & bytes) ?) )
97
90
}
98
91
}
99
92
93
+ impl From < SignedPublicKey > for String {
94
+ fn from ( val : SignedPublicKey ) -> Self {
95
+ let bytes: CoseSign1Bytes = val. into ( ) ;
96
+ STANDARD . encode ( & bytes)
97
+ }
98
+ }
99
+
100
100
impl SignedPublicKey {
101
101
/// Verifies the signature of the public key against the provided `VerifyingKey`, and returns
102
102
/// the `AsymmetricPublicCryptoKey` if the verification is successful.
You can’t perform that action at this time.
0 commit comments