-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error: DID document for did:web:localhost:xyz does not have public keys for ES256K #500
Comments
Hi, thanks for bringing this up! The recent did-resolver/did-jwt releases come with support for the latest did-core-spec implementation. This also means some breaking changes to DID documents which were unavoidable. The version of veramo that can correctly deal with these changes is 1.2.0. Please make sure to upgrade to this version if you want to take advantage of the latest specs. If you need to keep using an older version of veramo, you will have to make sure that any did-resolver/did-jwt libraries that you use are kept one major version behind. That being said, in the case of {
"id": "did:web:localhost:35d051b7-b805-442d-ad72-9111d16ed59a",
"publicKey": [
{
"id": "did:web:localhost:35d051b7-b805-442d-ad72-9111d16ed59a#0x8994970c7bff918770328f2dcbed535fc8c2605d",
"type": "EcdsaSecp256k1VerificationKey2019",
"controller": "did:web:localhost:35d051b7-b805-442d-ad72-9111d16ed59a",
"publicKeyHex": "0x8994970c7bff918770328f2dcbed535fc8c2605d"
}
],
"authentication": [ "did:web:localhost:35d051b7-b805-442d-ad72-9111d16ed59a#0x8994970c7bff918770328f2dcbed535fc8c2605d" ],
"service": []
} We are aware that the |
Thank you so much @mirceanis , you helped us too many times. We will keep using Veramo and we will keep posting feedback that could help Veramo Team to make this awesome framework better. |
@Muhammad-Altabba did you try the proposed solution? |
Dear @mirceanis , However, what do you suggest me to do regarding your statement?:
So, how exactly to fix the did.json? Many thanks, |
please see my example from the earlier comment. That is how the did.json file should appear in general. |
Actually I am using |
ok, so this is related to #520 and will probably be fixed automatically once that is solved |
Yes, thanks @mirceanis the issue described here has been resolved. |
Bug severity
5
Describe the bug
Not being able to parse a self attested JWT message.
To Reproduce
Having the following DID document (that can also be resolved from my localhost at: https://localhost/73650cd4-4750-49bc-ae90-fae346e53e58/did.json):
And trying to parse the following JWT as a message:
eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJ2YyI6eyJjcmVkZW50aWFsU3ViamVjdCI6eyJ1c2VybmFtZSI6ImxvY2FsaG9zdDo5MzAwMTU0ZS02NWM4LTRkMjEtOWQ2Mi0yNjNiZTgyMDY1ZmIifSwiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdfSwibmJmIjoxNjE5ODMxOTkwLCJpc3MiOiJkaWQ6d2ViOmxvY2FsaG9zdDozNWQwNTFiNy1iODA1LTQ0MmQtYWQ3Mi05MTExZDE2ZWQ1OWEifQ.mIWecXLhjJnmMbDfy9Cj5Sw9XRzuYNHcMWtCs0t82aoKIwbovh0yrhtpw8fjXH4fXiEFquNGTbrKYO31wdbuJQ
Observed behaviour
The following internal error is thrown:
However, because of the way Veramo is handling messages, the exception that is caught in my code is:
Exception has occurred: Error: Unsupported message type
(It was little bit tough to catch the internal exception. I hope Veramo will next be more elaborative for such exceptions)
Expected behaviour
Be able to read the self-attested claim that is inside the JWT with no issues.
Additional context
We are implementing a plugin to use Web DID method.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: