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,12 @@
use base64::engine::general_purpose::STANDARD;
use base64::Engine;
use swift_secure_enclave_tool_rs::private_key_ecdsa_sign;
use swift_secure_enclave_tool_rs::private_key_sign;
fn main() {
let args = std::env::args().collect::<Vec<_>>();
let private_key_representation = STANDARD.decode(&args[1]).unwrap();
let signature = private_key_ecdsa_sign(&private_key_representation, b"hello world").unwrap();
let signature = private_key_sign(&private_key_representation, b"hello world").unwrap();
println!("{}", hex::encode(&signature));
}