-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Examples / Implementations for key request #177
Comments
Yeah we could give them examples or implementations. We already provide implementation for crypto. An example is the ES256 algorithm available in nodejs and broswer. And also we plan to support React Native env. I think it's better to provide simple implemenation in our package. |
I think we can make them by platform(nodejs, web etc.) or we can make pass the signer or verifier as a param. |
maybe it's enough to mention it in a readme, since the demanded implementation can be different: some are fine with the universal resolver, others want to resolve it locally. So we tell them how to implement it to give some hints. |
Okay I'll write a brief explanation on docs. Then Let's talk about more with the PR |
Section 3.5 lists 3 options to receive the key of an issuer:
Right now the library defines "bring your own crypto". Meaning the the user has to implement the
getVerifier(publicKeyJWK: object): Promise<(data: string, signatureBase64url: string) => Promise<boolean>>;
by himself. The data field includes the encoded header and payload field, therefore all three options can be implemented.@lukasjhan do you think it makes sense? We can not implement to resolve all did elements, but we could give some examples for this.
The text was updated successfully, but these errors were encountered: