Skip to content

Commit

Permalink
Default verification method (#189)
Browse files Browse the repository at this point in the history
* Pick default VM and proof purpose in cli example scripts

Co-authored-by: chunningham <[email protected]>
  • Loading branch information
clehner and chunningham authored Oct 18, 2022
1 parent eb1ecf2 commit 9e3393c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cli/tests/example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ EOF
# output, which we save to a file.
didkit vc-issue-credential \
-k key.jwk \
-v "$verification_method" \
-p assertionMethod \
-f "$vc_proof_format" \
< credential-unsigned.jsonld \
> credential-signed
Expand Down Expand Up @@ -140,8 +138,6 @@ EOF
# the resulting newly created verifiable presentation to a file.
didkit vc-issue-presentation \
-k key.jwk \
-v "$verification_method" \
-p authentication \
-f "$vp_proof_format" \
< presentation-unsigned.jsonld \
> presentation-signed
Expand Down Expand Up @@ -195,12 +191,13 @@ then
echo 'Unable to create challenge.'
exit 1
fi
# Create a DID Auth VP (Verifiable Presentation for DID Authentication).
# Use a default verification method and proof purpose instead of passing
# the -v and -p options.
if ! didkit did-auth \
-k key.jwk \
--holder "$did" \
-p authentication \
-H "$did" \
-C "$challenge" \
-v "$verification_method" \
-f "$vp_proof_format" \
> auth
then
Expand All @@ -218,7 +215,6 @@ echo

# Verify DID auth
if ! didkit vc-verify-presentation \
-p authentication \
-C "$challenge" \
-f "$vp_proof_format" \
< auth \
Expand Down

0 comments on commit 9e3393c

Please sign in to comment.