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

keyToVerificationMethod failing #329

Open
bibash28 opened this issue Dec 23, 2022 · 0 comments
Open

keyToVerificationMethod failing #329

bibash28 opened this issue Dec 23, 2022 · 0 comments

Comments

@bibash28
Copy link

Unknown DID method - for both did:pkh:tz and did:pkh:eth

But it works on python and node js...

Example for eth

final didMethod = 'pkh:eth';
final jwkKey = '{"kty":"EC","crv":"secp256k1","d":"CGWgc8CRZKRyC3vMccWRxYJW6pSuMnGkhrr_j8gr9zA","x":"jWVMruQ1C5gVp2TavMVYX6bDXqJf_jg1vUYmxSn7QME","y":"CtStNb9G3uvZhZaVvTQhoe5xnzZGr-FbRdZNh-Ojdxs","alg":"ES256K-R"}';

final issuer = didKitProvider.keyToDID(didMethod, jwkKey);

Error:
e: DIDKitException (-1): Unknown DID method, stackTrace: #0

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

No branches or pull requests

1 participant