Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Jun 27, 2024
1 parent 141bd79 commit e6981ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/present.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ async fn verify(proof_format_in: &str, proof_format_out: &str, input_vc: &str) {
);

let key_str = include_str!("../tests/ed25519-2020-10-18.json");
let key: ssi::jwk::JWK = serde_json::from_str(key_str).unwrap();
let mut key: ssi::jwk::JWK = serde_json::from_str(key_str).unwrap();
key.key_id = Some("did:example:foo#key2".to_string());
let resolver = ssi::dids::example::ExampleDIDResolver::default().with_default_options();
let signer = SingleSecretSigner::new(key.clone()).into_local();

Expand Down

0 comments on commit e6981ba

Please sign in to comment.