Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Are there mnemonic words to generate? #70

Open
CryptoQiantang opened this issue Jun 7, 2022 · 2 comments
Open

Are there mnemonic words to generate? #70

CryptoQiantang opened this issue Jun 7, 2022 · 2 comments

Comments

@CryptoQiantang
Copy link

I would like to know if there are mnemonics generated and if so, how should I get them?

@ef1m0ff
Copy link

ef1m0ff commented Jun 15, 2022

no way

@bobanm
Copy link

bobanm commented Jun 25, 2022

Short answer

No, that would be a security risk.

Detailed answer

Fortunately, that's not how BIP-39 hierarchical deterministic [HD] wallets work. This is the process in a nutshell:

  1. generate entropy
  2. generate a mnemonic from the entropy and its checksum, using a wordlist
  3. generate a seed from the mnemonic and an optional passphrase
  4. generate a master key from the seed
  5. generate one or more private keys from the master key
  6. generate a public key from each private key
  7. generate an address from each public key

As everything else in public-key cryptography, all derivations go in one direction only:

entropy > mnemonic > seed > master key > private key > public key > address

The same reason why you can't generate a private key from an address, is the reason why you can't generate a mnemonic from a private key.

Think of it from security standpoint, if you could generate a seed and a mnemonic from your private key, and that seed is used to derive the master key and all your private keys... Then someone who steals your private key could generate your seed, and then generate all the private keys for all the addresses which correspond to that private key.

Having said all that, it should be absolutely possible to create a program which brute forces different MNEMONICS instead of PRIVATE KEYS as input, searching for an address which fits the given pattern 🤔

To study the topic in more depth, this article nicely explains the ins and outs:

https://medium.com/mycrypto/the-journey-from-mnemonic-phrase-to-address-6c5e86e11e14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants