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

n00b: Loading a ed25519 key pair from base64 string #771

Closed
FrankC01 opened this issue Sep 6, 2022 · 4 comments
Closed

n00b: Loading a ed25519 key pair from base64 string #771

FrankC01 opened this issue Sep 6, 2022 · 4 comments

Comments

@FrankC01
Copy link

FrankC01 commented Sep 6, 2022

Beginner:

Where can I create a ed25519 keypair (public key and private key) from a base64 string or it's decoded bytes?

@reaperhulk
Copy link
Member

In this project you'll want to look at https://pynacl.readthedocs.io/en/latest/signing/#nacl.signing.SigningKey

@FrankC01
Copy link
Author

FrankC01 commented Sep 6, 2022

That expects 32 bytes, however the keypair is stored, for example:
AKky78X+ERAnhbshgRVyrC0yfKwLYh6eh0mGS51A893KRWO62jCwbiXK8fTEmp6fJv0uz/1cKhRhJYIbYzRslTw=

@reaperhulk
Copy link
Member

That's likely the 64 byte form, which pynacl doesn't directly support loading at this time (see: #648)

@FrankC01
Copy link
Author

Thanks, I'm loading the Signing key just fine now.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants