-
Notifications
You must be signed in to change notification settings - Fork 35
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
Referencing VC #504
Referencing VC #504
Conversation
term: product | ||
'@id': https://schema.org/Product | ||
term: products | ||
'@id': https://w3c-ccg.github.io/hashlink/#hl-url-params |
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 does not look like a products definition?
@vivienfan, so the intention is because there are multiple events for the same product, you don't want to repeat the product data? That's a good intention. |
@nissimsan, the link here would be a |
@vivienfan I see. That's a new pattern, but I won't stand in the way. :) Thanks for elaborating. |
Related issue: #374
Replacing directly embed credential with a hashlink which points to the hosted VCs
Hashlink
is prefered overEvidence
andRelated Link
because:it makes sure the data being referenced is the same
Events
,Products
should stay the same (ie, size, amount, manufactuer, etc.)Hashlink
makes sure the content returned by the link is the same as when it's generated, otherwise the hash would changeEvidence
andRelated Link
can only meet this requirement ifreference
/target
isHashlink
it describes the relationship between
Products
andEvents
in a dry wayTransform Events
, there are 2 types ofProducts
- newly created & consumed/used productsHashlink
is replacing the directly embed credential in the structure, which already describes the type ofProducts
Evidence
does not describe the type of credential being referencedRelated Link
has a fieldLinkRelationship
to meet this requirement, but the solution is more complicated and harder to read