We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21d89d commit 806c3dfCopy full SHA for 806c3df
httpsig/src/crypto/asymmetric.rs
@@ -365,7 +365,7 @@ MCowBQYDK2VwAyEA1ixMQcxO46PLlgQfYS46ivFd+n0CcDHSKUnuhm3i1O0=
365
let sk = SecretKey::from_bytes(AlgorithmName::EcdsaP256Sha256, es256_sk.to_bytes().as_ref()).unwrap();
366
assert!(matches!(sk, SecretKey::EcdsaP256Sha256(_)));
367
let pk_bytes = es256_pk.as_affine().to_bytes();
368
- let pk = PublicKey::from_bytes(AlgorithmName::EcdsaP256Sha256, pk_bytes.as_slice()).unwrap();
+ let pk = PublicKey::from_bytes(AlgorithmName::EcdsaP256Sha256, pk_bytes.as_ref()).unwrap();
369
assert!(matches!(pk, PublicKey::EcdsaP256Sha256(_)));
370
}
371
0 commit comments