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

function crypto_box_seed_keypair is missing #47

Open
pfiadDi opened this issue Feb 9, 2021 · 2 comments
Open

function crypto_box_seed_keypair is missing #47

pfiadDi opened this issue Feb 9, 2021 · 2 comments

Comments

@pfiadDi
Copy link

pfiadDi commented Feb 9, 2021

Hi, I think the function:
crypto_box_seed_keypair
is missing.

When I do:

const { SodiumPlus } = require('sodium-plus');
await sodium.crypto_box_seed_keypair(seed);

I get this error back:
TypeError: sodium.crypto_box_seed_keypair is not a function

Can you add it?
Thank you!

@pfiadDi
Copy link
Author

pfiadDi commented Feb 9, 2021

I found a way to determenistic create key pairs from a password salted hash:
let privateKey = new X25519SecretKey(pwhash.getBuffer())
let publicKey = await sodium.crypto_box_publickey_from_secretkey(privateKey)
It works but I am new to all that, so is my "workaround" the same as the fucntion seed_keypair would produce?

@pfiadDi pfiadDi closed this as completed Feb 9, 2021
@pfiadDi pfiadDi reopened this Feb 9, 2021
@akhan619
Copy link

#45 Check my reply to the code above

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

2 participants