From 148a2d392f303ea1cf50e8b2c0982d263d0d02e9 Mon Sep 17 00:00:00 2001 From: vineet <10172895+vineetpant@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:57:25 +0100 Subject: [PATCH 1/2] update vade-didcomm dependency --- Cargo.lock | 2 +- Cargo.toml | 2 +- VERSIONS.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dc01391..8bd82da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4838,7 +4838,7 @@ dependencies = [ [[package]] name = "vade-didcomm" version = "0.3.0" -source = "git+https://github.com/evannetwork/vade-didcomm.git?branch=develop#067371beab96d5beda142bd5ba3f1e6319090485" +source = "git+https://github.com/evannetwork/vade-didcomm.git?branch=feature/add-helper-for-pairwise-did-doc#c312b47a721998bf8aafcef6cf8eb5ee947cfef4" dependencies = [ "async-trait", "bs58", diff --git a/Cargo.toml b/Cargo.toml index e0fda31..eaca1e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,7 +103,7 @@ optional = true # didcomm [dependencies.vade-didcomm] git = "https://github.com/evannetwork/vade-didcomm.git" -branch = "develop" +branch = "feature/add-helper-for-pairwise-did-doc" optional = true # jwt-vc diff --git a/VERSIONS.md b/VERSIONS.md index 3652ebd..2fcc16f 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -14,6 +14,7 @@ - add `helper_convert_credential_to_nquads` helper function - add optional param `credential_values` to `helper_create_credential_offer` helper function - update `helper_verify_presentation` for optional `signer_address` +- update `vade-didcomm` dependency for `create_pairwise_did` custom function ### Fixes From 3c4529579359a50f603cb49687e400a11770590f Mon Sep 17 00:00:00 2001 From: vineet <10172895+vineetpant@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:10:35 +0100 Subject: [PATCH 2/2] add create_pairwise_did custom fun to didcomm cli --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.rs b/src/main.rs index dea9cc0..5d70450 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,6 +102,12 @@ async fn main() -> Result<()> { .run_custom_function(EVAN_METHOD, "query_didcomm_messages", "{}", &payload) .await? } + ("create_pairwise_did", Some(sub_m)) => { + let payload = get_argument_value(&sub_m, "payload", None); + get_vade_evan(&sub_m)? + .run_custom_function(EVAN_METHOD, "create_pairwise_did", "{}", &payload) + .await? + } _ => { bail!("invalid subcommand"); } @@ -608,6 +614,11 @@ fn add_subcommand_didcomm<'a>(app: App<'a, 'a>) -> Result> { .about(r###"Query stored DIDComm messages by prefix (message_{thid}_*) or message id (message_{thid}_{msgid})."###) .arg(get_clap_argument("payload")?), ) + .subcommand( + SubCommand::with_name("create_pairwise_did") + .about(r###"Create communication did doc for pairwise did."###) + .arg(get_clap_argument("payload")?), + ) ); Ok(app)