feat: openwebstandard.org/rfc1

This commit is contained in:
2025-05-23 07:04:21 +08:00
parent d104d4405e
commit bb8d804505
3 changed files with 4 additions and 2 deletions

View File

@@ -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)