feat: v0.1.1

This commit is contained in:
2025-03-24 01:10:16 +08:00
parent f1c8500873
commit 60767a8d7b
6 changed files with 39 additions and 23 deletions

View File

@@ -1,12 +1,11 @@
use base64::Engine;
use swift_secure_enclave_tool_rs::{recover_ecdsa_keypair, KeyPurpose};
use swift_secure_enclave_tool_rs::{recover_keypair, KeyPurpose};
fn main() {
let args = std::env::args().collect::<Vec<_>>();
let private_key_representation = base64::engine::general_purpose::STANDARD
.decode(&args[1])
.unwrap();
let key_material =
recover_ecdsa_keypair(KeyPurpose::Signing, &private_key_representation).unwrap();
let key_material = recover_keypair(KeyPurpose::Signing, &private_key_representation).unwrap();
println!("{:?}", key_material)
}