feat: openwebstandard.org/rfc1
This commit is contained in:
@@ -6,6 +6,7 @@ use std::collections::BTreeMap;
|
||||
|
||||
pub struct CommandImpl;
|
||||
|
||||
// https://openwebstandard.org/rfc1
|
||||
impl Command for CommandImpl {
|
||||
fn name(&self) -> &str {
|
||||
"external_spec"
|
||||
@@ -23,6 +24,7 @@ impl Command for CommandImpl {
|
||||
format!("card-external-provider/{}", env!("CARGO_PKG_VERSION")).into(),
|
||||
);
|
||||
json.insert("specification", "External/1.0.0-alpha".into());
|
||||
json.insert("commands", vec!["external_public_key", "external_sign", "external_ecdh"].into());
|
||||
|
||||
util::print_pretty_json(&json);
|
||||
Ok(None)
|
||||
|
||||
Reference in New Issue
Block a user