feat: updates
This commit is contained in:
@@ -62,15 +62,15 @@ impl Command for CommandImpl {
|
||||
debugging!("Secure enclave key URI: {:?}", se_key_uri);
|
||||
|
||||
let signature = seutil::secure_enclave_p256_sign(&se_key_uri.private_key, &message_bytes)?;
|
||||
let signature_base64 = base64_encode(&signature);
|
||||
|
||||
if json_output {
|
||||
let mut json = BTreeMap::<&'_ str, String>::new();
|
||||
json.insert("signature", signature_base64);
|
||||
json.insert("signature_base64", base64_encode(&signature));
|
||||
json.insert("signature_hex", hex::encode(&signature));
|
||||
|
||||
println!("{}", serde_json::to_string_pretty(&json).unwrap());
|
||||
} else {
|
||||
success!("Signature: {}", signature_base64);
|
||||
success!("Signature: {}", base64_encode(&signature));
|
||||
}
|
||||
|
||||
Ok(None)
|
||||
|
||||
Reference in New Issue
Block a user