Skip to content
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

set vc.issuer appropriately #32

Merged
merged 3 commits into from
Nov 6, 2024
Merged

set vc.issuer appropriately #32

merged 3 commits into from
Nov 6, 2024

Conversation

jchartrand
Copy link
Contributor

If the incoming VC (to be signed) already has the top level issuer property set as a string value, then set that value to the did used to sign the VC. Set the value even if the existing value was different (i.e., overwrite the value).

If the incoming VC has a top level issuer property set to an object then set the 'id' property on that object with the did used to the sign the VC. Again, overwrite the id even if it is different from the signing did.

If the incoming VC has no issuer property or no value set for the issuer property then set the issuer property to be an object with an id property whose value is the signing DID.

@jchartrand
Copy link
Contributor Author

Note that we're doing this to satisfy the VC API test suite, which uses a test VC whose issuer is set to a string value rather than an object.

Copy link
Member

@dmitrizagidulin dmitrizagidulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks @jchartrand !

@jchartrand jchartrand merged commit 4b11d28 into main Nov 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants