Skip to content

Commit

Permalink
Implement additional verification relationships. (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 authored Oct 24, 2024
1 parent fc8564f commit 2dd3b77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/web5/src/dids/methods/did_web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl DidWeb {
id: did_uri.clone(),
context: Some(vec!["https://www.w3.org/ns/did/v1".to_string()]),
verification_method: {
let mut methods = vec![verification_method];
let mut methods = vec![verification_method.clone()];
if let Some(mut additional_methods) = options.verification_method {
methods.append(&mut additional_methods);
}
Expand All @@ -156,6 +156,10 @@ impl DidWeb {
service: options.service,
also_known_as: options.also_known_as,
controller: options.controller,
capability_delegation: Some(vec![verification_method.id.clone()]),
capability_invocation: Some(vec![verification_method.id.clone()]),
authentication: Some(vec![verification_method.id.clone()]),
assertion_method: Some(vec![verification_method.id.clone()]),
..Default::default()
};

Expand Down

0 comments on commit 2dd3b77

Please sign in to comment.