18 votes
Accepted

Recover all the account under Mnemonic using ethers.js

The Wallet.fromMnemonic function has a second argument to specify the BIP-32 derivation path. By default it will use m/44'/60'/0'/0/0, but if you want to get the second account, you can use m/44'/60'/...
Morten's user avatar
  • 6,002
7 votes
Accepted

How to export mnemonics for a specific account in MetaMask

I'm curious why metaMask doesn't offer to generate seed words for a specific account Seed words are used as a seed to the master key of a BIP39-compliant deterministic wallet. BIP39 added the ...
Richard Horrocks's user avatar
6 votes
Accepted

Limit of address creation using single mnemonic

Technically, there is an infinite number of addresses that can be created from a single mnemonic following BIP39. Practically, there is a per-wallet limit. Some wallets that use BIP39, such as ...
Shane Fontaine's user avatar
5 votes
Accepted

What are the odds of getting same address or private-key or 12/24 set of mnemonic to 2 different people

What are the chances that 2 people get the same set of those 12 or 24-word mnemonic? Mnemonic phrases are generated from 128 bits (12 words) to 256 bits (24 words) of entropy. The probability to ...
Morten's user avatar
  • 6,002
4 votes
Accepted

How to generate thousands of wallets out of a mnemonic phrase?

To generate multiple wallets from a mnemonic, you can use the HDNode class from the ethers library. Here is an example of how you could generate multiple wallets from a mnemonic: const ethers = ...
VX3's user avatar
  • 646
4 votes

What is best to use - Private Key or Mnemonic?

Directly pasting a mnemonic or a private keys in your code is a practice you should only use for non critical stuff like development on test network. Once you go in production, you will have to secure ...
Nicolas Massart's user avatar
3 votes

How does the sending-private-key scam work?

The funds in the scam wallet are generally stable coins like USDT/ BUSD or the likes of it. To actually do anything on chain, you need the chain coin like ETH or BNB. The scammer scans the wallet all ...
AoS's user avatar
  • 104
3 votes

How to create private key from mnemonic and extra-word using web3

The "Extra Word" is a BIP-39 passphrase. It looks like you're using Ethers.js, so you can do something like this: const { utils, Wallet } = require('ethers'); const hdNode = HDNode.fromMnemonic(...
Morten's user avatar
  • 6,002
2 votes

Which mnemonic generators exist or existed?

I'll have a stab at this... It'll be a wallet that supports SLIP-0039 (Shamir's Secret-Sharing for Mnemonic Codes), the word list for which includes "rebound". I believe Trezors use such a scheme, ...
Richard Horrocks's user avatar
2 votes

What is best to use - Private Key or Mnemonic?

Personally, I think it depends on the application. For example, I was recently working on a flash bot and I found out that I needed to switch between using different wallets with different amounts of ...
Ahmed Ihsan Tawfeeq's user avatar
2 votes
Accepted

Why does the BIP44 derivation path generate the same address in MetaMask as the Ledger Live derivation path?

That extra zero indicates the key pair number derived from the master seed(commonly referred to as address_index). You can read more about it here https://github.com/bitcoin/bips/blob/master/bip-0044....
Saksham's user avatar
  • 36
2 votes

Found old seed phrase, but it uses non-standard words

I have had a near identical problem for years now. I actually have 3 different seed phrases. Two of them actually are valid Electrum phrases (old format). The third one has words that appear on both ...
AnarchyMyDear's user avatar
1 vote

How to deploy all my contracts from same address (without writing .connect() a bunch of times)?

There are a couple of ways to change the default deployer. Changing the starting index You can change the default by increasing the initialIndex in the accounts section of the configuration file. ...
Ismael's user avatar
  • 30.5k
1 vote
Accepted

How to export my private key from MyCrypto

Finally, I was able to figure it out. We just have to go to the 'Wallet Info' tab and it will show the private key:
Jeremy Then's user avatar
  • 4,579
1 vote

How does the sending-private-key scam work?

How is this scam supposed to work? The scammer hopes you add it to your wallet to try to drain it, and then forget to remove/change it back to your normal account. Then, once you inadvertently add ...
Pandapip1's user avatar
  • 168
1 vote
Accepted

What is the relationship between the seed phrase and the private key?

Given a wallet address, and a mnemonic key, is it possible to compute the private key? If you have the mnemonic, it's possible to compute a number of private keys, and their corresponding addresses. ...
Soham Zemse's user avatar
  • 2,016
1 vote

How to generate and remember, or to be able to deduce, the private keys of a few millions of addresses?

ganache-cli -m "my seed phrase seedy seedo phrase phrase" -a 1000000. should work. The -a gives you that many accounts and the quotes after -m are you're seed phrase. Don't know if 1M is ...
thefett's user avatar
  • 3,865
1 vote
Accepted

Maximum length of each word in BIP39

For a list of mnemonic phrases in English, the maximum word length is 8 characters. There are 2048 words in the dictionary. In other languages, the maximum word length may be different.
Alexey Smirnov's user avatar
1 vote

How to import Brave Wallet into Metamask?

Brave uses a different Mnemonic system from the rest of Ethereum wallets, so you need to get the private key instead. To get the Brave Wallet private key: Go to brave://wallet/crypto/accounts Click ...
Dr-Bracket's user avatar
1 vote

Best practice for storing a user's private key or mnemonic locally on their computer

You could use a proxy signer that uses a Vault or HSM to sign the transactions. See Ethsigner for instance. It makes the setup a bit more complex but what you want to do is not really possible without ...
Nicolas Massart's user avatar
1 vote

Create Mnemonic using react-native and BIP39 is not working

Basically the issue is that react's library is old, it wasn't updated for 5 years and encryption has evolved since plus weaknesses found in old libraries. There's a fork that updated this library to ...
Kof's user avatar
  • 2,954
1 vote
Accepted

Restore Brave Browser Crypto Wallets with seed from MEW

Probably the data format they use to restore an account is different, therefore you can only use a Mnemonic phrase to restore accounts on the application it was generated from. For it to be the same ...
blockbyblock's user avatar
1 vote
Accepted

how come i can generate keys using bip39 with only one words as seedphrase/mnemonic without any error?

You are basically just generating a low entropy keypair. There is hard no requirement of 12 or 24 words. More info here (word count is not part of the spec).
Jay Welsh's user avatar
  • 543
1 vote

Recover all the account under Mnemonic using ethers.js

If you're struggling to recover all accounts created by Metamask, here is the solution (ethers.js v6): const ethers = require("ethers"); const phrase = "YOUR_PHRASE"; const ...
Boy's user avatar
  • 111
1 vote

Recover all the account under Mnemonic using ethers.js

In the newer ethers version, this is slightly changed. const { ethers } = require('ethers'); const mnemonic = "one two three four ....."; const hdNode = ethers.HDNodeWallet.fromPhrase(...
Ashish Mishra's user avatar
1 vote
Accepted

Fundamental question! (HD Wallet private key hacked)

According to this Guessing private keys The the odds of guessing a randomly generated Ethereum private key is 1 in 115 quattuorvigintillion. (Or, as a fraction: 1/2^256.) That denominator is very ...
Masoud jt's user avatar
  • 751
1 vote
Accepted

Can I pass my mnemonic to ganache/ ganache-cli when it is starting up?

When you are booting up ganache-cli, you can pass your mnemonic using -m or -menmonic. In ganache desktop app with UI, instead of doing quickstart, use New Workspace and navigate to ACCOUNT&KEYS ...
Sanjay S B's user avatar
  • 1,329

Only top scored, non community-wiki answers of a minimum length are eligible