Skip to content

Commit

Permalink
Test to-rdf-urdna2015 in example.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Jul 21, 2021
1 parent c13fe27 commit 721671b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/tests/.gitignore
Expand Up @@ -6,6 +6,7 @@ presentation-signed.jsonld
presentation-unsigned.jsonld
presentation-verify-result.json
auth-verify-result.json
auth.jsonld
auth
auth.nq
did.json
vm.json
13 changes: 13 additions & 0 deletions cli/tests/example.sh
Expand Up @@ -230,5 +230,18 @@ then
fi
echo 'Verified DIDAuth verifiable presentation:'
print_json auth-verify-result.json
echo

# Convert VP to Canonicalized RDF
if [ "$vp_proof_format" = ldp ]; then
if ! didkit to-rdf-urdna2015 < auth > auth.nq
then
echo 'Unable to convert/canonicalize document:' >&2
exit 1
fi
echo 'Converted verifiable presentation to canonicalized N-Quads:'
cat auth.nq
fi
echo

echo Done

0 comments on commit 721671b

Please sign in to comment.