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

Add support for Ed25519 signing with composite key #265

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KendallWeihe
Copy link
Contributor

Although Ed25519 private keys are 32 bytes, I've come to learn some implementations (namely the golang crypto/ed25519, but perhaps the JS implementation too?) build private keys as composite keys which contain the public key as well. This PR add supports for cases wherein the key material is a composite key.

@KendallWeihe
Copy link
Contributor Author

I'm not entirely sure I want to merge this. This would enable interop for keys generated in golang, but we don't strictly have a need for that right now, and there's an argument to be made that golang shouldn't be producing Ed25519 JWK's w/ 64 byte d values.

@KendallWeihe KendallWeihe marked this pull request as draft July 11, 2024 14:40
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

Successfully merging this pull request may close these issues.

1 participant