Skip to content

Commit e9dbb1d

Browse files
committed
ed25519-dalek: fixup pkcs8 API break
1 parent 44508ba commit e9dbb1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ resolver = "2"
1010
[profile.dev]
1111
opt-level = 2
1212

13+
[patch.crates-io]
14+
ed25519 = { git = "https://github.com/RustCrypto/signatures.git" }

ed25519-dalek/src/signing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,10 @@ impl From<&SigningKey> for pkcs8::KeypairBytes {
713713
}
714714

715715
#[cfg(feature = "pkcs8")]
716-
impl TryFrom<pkcs8::PrivateKeyInfo<'_>> for SigningKey {
716+
impl TryFrom<pkcs8::PrivateKeyInfoRef<'_>> for SigningKey {
717717
type Error = pkcs8::Error;
718718

719-
fn try_from(private_key: pkcs8::PrivateKeyInfo<'_>) -> pkcs8::Result<Self> {
719+
fn try_from(private_key: pkcs8::PrivateKeyInfoRef<'_>) -> pkcs8::Result<Self> {
720720
pkcs8::KeypairBytes::try_from(private_key)?.try_into()
721721
}
722722
}

0 commit comments

Comments
 (0)