Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -608,6 +614,11 @@ fn add_subcommand_didcomm<'a>(app: App<'a, 'a>) -> Result<App<'a, 'a>> {
.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)
Expand Down