feat: add examples

This commit is contained in:
2025-03-23 23:08:15 +08:00
parent 799805a4fa
commit 70ad2df11a
3 changed files with 35 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
use base64::Engine;
use swift_secure_enclave_tool_rs::{recover_ecdsa_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();
println!("{:?}", key_material)
}