feat: register outputs json

This commit is contained in:
2021-07-03 11:29:23 +08:00
parent 9c2cc1d3f3
commit a528985ffd
3 changed files with 106 additions and 19 deletions

View File

@@ -48,7 +48,8 @@ impl Command for CommandImpl {
}));
let u2fv2_challenge = U2fV2Challenge::new_random(app_id);
let chall_bytes = digest::sha256(&u2fv2_challenge.to_json());
let u2fv2_challenge_str = u2fv2_challenge.to_json();
let chall_bytes = digest::sha256(&u2fv2_challenge_str);
let app_bytes = digest::sha256(app_id);
@@ -80,6 +81,8 @@ impl Command for CommandImpl {
success!("Key handle used: {}", base64::encode(&handle_used));
success!("Key handle used: {}", hex::encode(&handle_used));
// u2f::authorization::parse_sign_response(app_id.to_string(), u2fv2_challenge_str.as_bytes().to_vec(), )
Ok(())
}
}