diff --git a/crates/derive/keyfork-derive-openpgp/src/main.rs b/crates/derive/keyfork-derive-openpgp/src/main.rs index 15b21f8..6b3d544 100644 --- a/crates/derive/keyfork-derive-openpgp/src/main.rs +++ b/crates/derive/keyfork-derive-openpgp/src/main.rs @@ -121,7 +121,7 @@ fn run() -> Result<(), Box> { let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?; - for packet in cert.into_packets2() { + for packet in cert.as_tsk().into_packets() { packet.serialize(&mut w)?; } diff --git a/crates/keyfork/src/cli/derive.rs b/crates/keyfork/src/cli/derive.rs index 3f28856..2811856 100644 --- a/crates/keyfork/src/cli/derive.rs +++ b/crates/keyfork/src/cli/derive.rs @@ -124,7 +124,7 @@ impl OpenPGP { let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?; - for packet in cert.into_packets2() { + for packet in cert.as_tsk().into_packets() { packet.serialize(&mut w)?; }