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

Use URI type for verificationMethod option #234

Merged
merged 2 commits into from
Jul 22, 2021
Merged

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Jul 22, 2021

Use URI type in proof options for verificationMethod. This means that the verificationMethod option, such as for credential issuance and verification, will be fallibly converted to the URI type, to preventing non-URI use of the option. Currently the URI validation is incomplete as it just checks that the string contains ":", but this is enough for the test case in vc-http-api, and can be further improved. This also doesn't validate dereferencing the verification method URI during issuance; that is not required currently but we might want to consider doing so.

This is a breaking change and requires a corresponding change in didkit: spruceid/didkit#184

Close #144

@clehner clehner marked this pull request as ready for review July 22, 2021 16:05
@clehner clehner requested a review from sbihel July 22, 2021 16:16
src/vc.rs Show resolved Hide resolved
@clehner clehner merged commit a6fecbd into main Jul 22, 2021
@clehner clehner deleted the fix/verification-method-uri branch July 22, 2021 17:34
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.

Default verificationMethod
2 participants