Closed kezike closed 3 years ago
@dmitrizagidulin In this PR, I am using vpqr
to encode the VC directly. Should I be placing the VC into a VP envelope before using this library or is it able to encode VCs as expected. I assume the library accepts and treats both formats the same way, but I just want to be sure.
Should I be placing the VC into a VP envelope before using this library or is it able to encode VCs as expected. I assume the library accepts and treats both formats the same way, but I just want to be sure.
You definitely want to place the VC into a VP envelope. In general, un-wrapped VCs should only exist inside the wallet / VC storage; they shouldn't really be encountered in the wild.
Should I be placing the VC into a VP envelope before using this library or is it able to encode VCs as expected. I assume the library accepts and treats both formats the same way, but I just want to be sure.
You definitely want to place the VC into a VP envelope. In general, un-wrapped VCs should only exist inside the wallet / VC storage; they shouldn't really be encountered in the wild.
Makes sense! I have updated the PR to package a VC into an unsigned VP before encoding it into a QR Code URL. I have also implemented the ProvePresentationRequest
method to interface with the /prove/presentations
endpoint of the sign-and-verify
API, but this will only become relevant after we host a sign-and-verify
instance.
Encoding credentials into QR Codes with
CBOR-LD
via Digital Bazaar'svpqr
libraryHere is a sample credential:
and its associated QR Code