Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

keyToVerificationMethod failing #329

Description

@bibash28

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions