Provide entropy when generating a keypair? #1309
Unanswered
AndreasGassmann
asked this question in
Q&A
Replies: 1 comment
-
This is not something we support, and neither does WebCrypto. Related discussion: #1245 (comment) . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BIP85 describes a way how entropy can be derived deterministically from a BIP32 root key, for example a BIP39 mnemonic (24 words) commonly used in cryptocurrency wallets.
In our app, AirGap Vault, we would like to add the functionality to let users derive GPG keys from their seeds using BIP85. The python reference implementation includes an example how it is done: https://github.com/ethankosakovsky/bip85/blob/7892bbddc51f498d1a693cca3f6d642b75cb3373/bip85/tests/test_bip85rsa.py
The problem is that I can't see a way to provide my own entropy/randomness when generating a new keypair. I quickly went through the code and I don't see an option to do that, unless I missed it. I assume somewhere here the entropy would have to be provided instead of the actual random buffer:
openpgpjs/src/crypto/public_key/elliptic/curves.js
Line 193 in 93b7766
Is there a way how entropy can be provided to the generateKeypair method? If not, would there be a straight forward and safe way to somehow generate the keypair by using some internal methods?
Beta Was this translation helpful? Give feedback.
All reactions