feat: openwebstandard.org/rfc1
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -508,7 +508,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "card-cli"
|
||||
version = "1.13.10"
|
||||
version = "1.13.11"
|
||||
dependencies = [
|
||||
"aes-gcm-stream",
|
||||
"authenticator 0.3.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "card-cli"
|
||||
version = "1.13.10"
|
||||
version = "1.13.11"
|
||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
||||
@@ -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