diff --git a/cli/tests/.gitignore b/cli/tests/.gitignore index 66bef251..2a57d1d7 100644 --- a/cli/tests/.gitignore +++ b/cli/tests/.gitignore @@ -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 diff --git a/cli/tests/example.sh b/cli/tests/example.sh index 73cb5c1e..d88863cb 100755 --- a/cli/tests/example.sh +++ b/cli/tests/example.sh @@ -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