A library for ATProtocol identities.

Need Way To Create KeyData From DID Document Verification Methods #1

closed
opened by zicklag.dev

Hey there! I'm just trying out your library to validate ATProto JWT verification tokens and really appreciating the work on this. ๐Ÿ’–

So far I can resolve the DID of a handle, and I can resolve the user's DID document, but I don't know how to convert the DID document's verification method to the KeyData that is needed by the JWT verify() function.

Any pointers would be appreciated, and it seems like it'd be handy to have a helper function on VerificationMethod to attempt to get a KeyData from it, if possible.

Nevermind, I found it: identify_key(). I found out from perplexity that the format was the same as the did:key: format, which gave me enough of a hint to look at the code example you had for did:key.

Thanks again for the library!

sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:ulg2bzgrgs7ddjjlmhtegk3v/sh.tangled.repo.issue/3lxgjjbmxix22