Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged


Such a great question. Background Derivation paths are related to HD Wallets or HD Keys, a type of wallet where you have a single, human readable, seed phrase that unlocks a number of accounts / addresses / private keys across any supported network. These phrases typically look like brain surround have swap horror body response double fire dumb bring ...


Do it with ethers: const ethers = require('ethers'); const mnemonic = await ethers.HDNode.entropyToMnemonic(ethers.utils.randomBytes(16)); const wallet = ethers.Wallet.fromMnemonic(mnemonic); P.S. Here is a community you can find ask more questions about it:


If I'm understanding your question correctly, you are asking whether you can go from any key pair in the hierarchy back to the original seed. This is not possible since each step down the hierarchy is a HMAC-SHA512, which is a just a SHA512 hash with a little extra. SHA512 is a one-way function, so you can't reverse it aka go up in the hierarchy. Even the ...


In BIP-0044 they gave some recommendations you my want to follow in Account Discovery section. When the master seed is imported from an external source the software should start to discover the accounts in the following manner: derive the first account's node (index = 0) derive the external chain node of this account scan addresses of the ...


Entropy implies randomness. Using deterministic algorithms on a password is not entropy and SHOULD NOT be used! I would recommend researching how to gather entropic data from whatever programming language you're using.


I figured out an Answer,, this library uses private/public key generated from Sep256k1 curve for encryption and decryption. from ecies.utils import generate_eth_key from ecies import encrypt, decrypt k = generate_eth_key() ##Instead of generating a new key, you can use sep256k1 keys generated with bip39 specifications. ...

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