keyfork-derive-openpgp: fmt

This commit is contained in:
Ryan Heywood 2023-10-02 21:56:15 -05:00
parent 55ff62052b
commit 4e83be47c0
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 7 additions and 17 deletions

View File

@ -1,24 +1,11 @@
use std::{
env,
str::FromStr,
time::{Duration, SystemTime},
};
use std::{env, str::FromStr};
use ed25519_dalek::SigningKey;
use keyfork_derive_util::{
request::{DerivationAlgorithm, DerivationRequest},
DerivationIndex, DerivationPath, ExtendedPrivateKey, PrivateKey,
DerivationIndex, DerivationPath,
};
use keyforkd_client::Client;
use sequoia_openpgp::{
packet::{
key::{Key4, PrimaryRole, SubordinateRole},
signature::SignatureBuilder,
Key, UserID,
},
types::{KeyFlags, SignatureType},
Cert, Packet,
};
use sequoia_openpgp::{packet::UserID, types::KeyFlags};
#[derive(Debug, thiserror::Error)]
enum Error {
@ -121,7 +108,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let request = DerivationRequest::new(DerivationAlgorithm::Ed25519, &path);
let derived_data = Client::discover_socket()?.request(&request)?;
let subkeys = subkey_format.iter().map(|kt| kt.inner().clone()).collect::<Vec<_>>();
let subkeys = subkey_format
.iter()
.map(|kt| kt.inner().clone())
.collect::<Vec<_>>();
let cert = keyfork_derive_openpgp::derive(derived_data, subkeys.as_slice(), default_userid)?;