-
Notifications
You must be signed in to change notification settings - Fork 6
Add queries and update credential examples for retail VCs. #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add queries and update credential examples for retail VCs. #100
Conversation
@BigBlueHat, ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial feedback. More to review, but some things here you can address sooner than later, I think.
"anchoredResource": { | ||
"id": "urn:uuid:abc12345-6789-def0-1234-56789abcdef0", | ||
"digestMultibase": "zQmYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYjYj" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be more real? Are we building anything around it?
Also, while I see that term in the https://w3id.org/age/v1 context, I don't see it in the vocabulary document that URL dereferences to:
https://www.w3.org/2025/credentials/vcdi/vocab/v2/vocabulary.html#anchoredResource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BigBlueHat, I'm not sure about it. Good catch, I thought that was accurate. I might need to rely on @msporny @mandyvenables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the selfie of the person in the credential, if it is real the digestMultibase is very large.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The digestMultibase
shouldn't be large, but if we were to include the full image in the id
(as a data:
URL), then that would be large. Is that what you meant @mandyvenables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some more comments at this point.
We may want to break these into separate commits to make reviewing more targeted.
My main questions--probably for @msporny and @mandyvenables--center around how "real" all this plumbing needs to be (refresh service, etc.). The VC Playground currently won't care, but if the intent is for the Playground to be its usual jumping off point to other issuer, verifiers, and wallets then we'll want the data to be more real/usable by those downstream consumers. /me thinks.
b76c320
to
1cd7bcc
Compare
@BigBlueHat addressed the final newline in all files in this commit - 0f3c38e |
Addressed all requested changes. I intentionally pushed single commits to maintain a clean record and ensure no requested updates were missed. Additionally, you may notice some formatting updates due to enabling |
@BigBlueHat cc: @msporny @tminard All requested changes are addressed. @tminard Once this PR is merged, I need your help to publish new context URLs to make it available to the VC playground. |
We should get rid of this requirement. If not in this dev cycle, in a close-by future one. What we should probably be doing at this point is either using the VCDM v2.0 Examples context or real ones that are out there. We shouldn't be packaging up and releasing contexts for the VC Playground anymore. |
- Adds queries.json and credential.json files for CouponBundle, LoyaltyCard, PaymentToken, and AgeVerification credentials.
- Updates anchoredResource id and digestMultibase values. - Updates refreshService id and refreshToken.
- Updates credential type and query to use Coupon instead of CouponBundle. - Recreates SVG images for coupon card and issuer logo. - Removes unnecessary icon elements from SVG assets. - Updates credential and query files to use Coupon instead of CouponBundle. - Adds digestMultibase property. - Removes "Ed25519Signature2020" from acceptedCryptosuites in queries.
- Updates credential type and query to use RetailCredential and LoyaltyCard. - Recreates SVG images for loyalty card and issuer logo. - Removes unnecessary icon elements from SVG assets. - Adds digestMultibase property to renderMethod. - Removes "Ed25519Signature2020" from acceptedCryptosuites in queries. - Removes id and image property from the credentialSubject.
- Updates credential type and query to use RetailCredential and PaymentToken. - Recreates SVG images for payment card and issuer logo. - Removes unnecessary icon elements from SVG assets. - Adds digestMultibase property to renderMethod. - Removes "Ed25519Signature2020" from acceptedCryptosuites in queries. - Removes id property from the credentialSubject.
- Replaces static SVG with dynamic template using credential fields. - Improves visual rendering and adaptability for coupon credentials.
0e4ba7e
to
ec2866e
Compare
There might have been some wires crossed here. There are no new contexts added to the examples in this PR. However, there are context URLs which were not yet used in other examples--and therefore Veres (and any other implementer) will need to update their systems to support those contexts and those context identifiers/URIs. That last bit is just par for the course. I added an |
Uh oh!
There was an error while loading. Please reload this page.