Skip to content

Commit 9e3393c

Browse files
clehnerchunningham
andauthored
Default verification method (spruceid#189)
* Pick default VM and proof purpose in cli example scripts Co-authored-by: chunningham <c.a.cunningham6@gmail.com>
1 parent eb1ecf2 commit 9e3393c

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎cli/tests/example.sh‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ EOF
7878
# output, which we save to a file.
7979
didkit vc-issue-credential \
8080
-k key.jwk \
81-
-v "$verification_method" \
82-
-p assertionMethod \
8381
-f "$vc_proof_format" \
8482
< credential-unsigned.jsonld \
8583
> credential-signed
@@ -140,8 +138,6 @@ EOF
140138
# the resulting newly created verifiable presentation to a file.
141139
didkit vc-issue-presentation \
142140
-k key.jwk \
143-
-v "$verification_method" \
144-
-p authentication \
145141
-f "$vp_proof_format" \
146142
< presentation-unsigned.jsonld \
147143
> presentation-signed
@@ -195,12 +191,13 @@ then
195191
echo 'Unable to create challenge.'
196192
exit 1
197193
fi
194+
# Create a DID Auth VP (Verifiable Presentation for DID Authentication).
195+
# Use a default verification method and proof purpose instead of passing
196+
# the -v and -p options.
198197
if ! didkit did-auth \
199198
-k key.jwk \
200-
--holder "$did" \
201-
-p authentication \
199+
-H "$did" \
202200
-C "$challenge" \
203-
-v "$verification_method" \
204201
-f "$vp_proof_format" \
205202
> auth
206203
then
@@ -218,7 +215,6 @@ echo
218215

219216
# Verify DID auth
220217
if ! didkit vc-verify-presentation \
221-
-p authentication \
222218
-C "$challenge" \
223219
-f "$vp_proof_format" \
224220
< auth \

0 commit comments

Comments
 (0)