Author

Topic: How do I go about this? (Read 173 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
November 28, 2023, 07:52:21 AM
#8
Thanks a lot seek3r although I was able to use Charles-Tim help which was very very easy to use I would definitely use this phyton script also .

I do not recommend directly using private keys which are derived from the seed phrase for holding bitcoins because there is a change that you might mess up the generation process which leads to the coins becoming inaccessible. This should be done only for learning purposes. (As you hopefully already know).
sr. member
Activity: 448
Merit: 560
Crypto Casino and Sportsbook
November 27, 2023, 11:31:20 AM
#7
For the generation of the master keys and child keys:

Use https://iancoleman.io/bip39/ offline, not online. You can use it to generate the keys and addresses from seed phrase.

For offline usage:
Use the html on a word editor: https://github.com/iancoleman/bip39/releases/latest/

For security reasons, use it offline on a word editor.
Thanks alot Charles Tim and Zaguru12
Is there a similar script I can run on phyton?


It is possible to run this on python aswell. You have to use mnemonic library for the BIP39 functionalities and the bip32utils library for the BIP32 key derivation.

Create a new mnemonic phrase with the mnemonic library. The individual passphrase is optional.
Code:
from mnemonic import Mnemonic

mnemo = Mnemonic("english")
words = mnemo.generate(strength=128)  # 128, 160, 192, 224, 256 bits
seed = mnemo.to_seed(words, passphrase="INSERT_PASSPHRASE_HERE")
print("Mnemonic:", words)
print("Seed:", seed.hex())

Now use the bip32utils library to derrive the masterkey and the child keys:
Code:
from bip32utils import BIP32Key

master_key = BIP32Key.fromEntropy(seed)
child_key = master_key.ChildKey(44 + BIP32Key.HARDENED) \
                        .ChildKey(0 + BIP32Key.HARDENED) \
                        .ChildKey(0 + BIP32Key.HARDENED) \
                        .ChildKey(0).ChildKey(0)

print("Master Key:", master_key.ExtendedKey())
print("Child Key:", child_key.Address())

I have used "m/44'/0'/0'/0/0" as derivation path since this path is widely used by many wallets and allows a structured way to generate multiple addresses.

Thanks a lot seek3r although I was able to use Charles-Tim help which was very very easy to use I would definitely use this phyton script also .
legendary
Activity: 1316
Merit: 2018
November 27, 2023, 11:01:13 AM
#6
For the generation of the master keys and child keys:

Use https://iancoleman.io/bip39/ offline, not online. You can use it to generate the keys and addresses from seed phrase.

For offline usage:
Use the html on a word editor: https://github.com/iancoleman/bip39/releases/latest/

For security reasons, use it offline on a word editor.
Thanks alot Charles Tim and Zaguru12
Is there a similar script I can run on phyton?


It is possible to run this on python aswell. You have to use mnemonic library for the BIP39 functionalities and the bip32utils library for the BIP32 key derivation.

Create a new mnemonic phrase with the mnemonic library. The individual passphrase is optional.
Code:
from mnemonic import Mnemonic

mnemo = Mnemonic("english")
words = mnemo.generate(strength=128)  # 128, 160, 192, 224, 256 bits
seed = mnemo.to_seed(words, passphrase="INSERT_PASSPHRASE_HERE")
print("Mnemonic:", words)
print("Seed:", seed.hex())

Now use the bip32utils library to derrive the masterkey and the child keys:
Code:
from bip32utils import BIP32Key

master_key = BIP32Key.fromEntropy(seed)
child_key = master_key.ChildKey(44 + BIP32Key.HARDENED) \
                        .ChildKey(0 + BIP32Key.HARDENED) \
                        .ChildKey(0 + BIP32Key.HARDENED) \
                        .ChildKey(0).ChildKey(0)

print("Master Key:", master_key.ExtendedKey())
print("Child Key:", child_key.Address())

I have used "m/44'/0'/0'/0/0" as derivation path since this path is widely used by many wallets and allows a structured way to generate multiple addresses.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
November 24, 2023, 07:33:17 AM
#5
Is there a similar script I can run on phyton?
I do not know much about this. You can wait for other reputed members and see what they will reply. Let me quote nc50lc so that he can see this thread. I believe he will have something good to reply.
sr. member
Activity: 448
Merit: 560
Crypto Casino and Sportsbook
November 24, 2023, 07:09:08 AM
#4
For the generation of the master keys and child keys:

Use https://iancoleman.io/bip39/ offline, not online. You can use it to generate the keys and addresses from seed phrase.

For offline usage:
Use the html on a word editor: https://github.com/iancoleman/bip39/releases/latest/

For security reasons, use it offline on a word editor.
Thanks alot Charles Tim and Zaguru12
Is there a similar script I can run on phyton?
hero member
Activity: 868
Merit: 952
November 24, 2023, 07:04:01 AM
#3
Here is a little guide by blue Snow on how to generate your master  private key from seed phrase. Make sure you are doing it offline.

Although I don’t know why you wish to generate the master private key from the seed phrase but in case of back up there is no point of backing up the master private key even though it will recover the same address as the seed phrase will do but seed phrase back is more convenient than the key.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
November 24, 2023, 06:55:33 AM
#2
For the generation of the master keys and child keys:

Use https://iancoleman.io/bip39/ offline, not online. You can use it to generate the keys and addresses from seed phrase.

For offline usage:
Use the html on a word editor: https://github.com/iancoleman/bip39/releases/latest/

For security reasons, use it offline on a word editor.
sr. member
Activity: 448
Merit: 560
Crypto Casino and Sportsbook
November 24, 2023, 06:47:11 AM
#1
Using mnemonic phrases also known as seed phrase to generate private keys for a wallet is normal during wallet creation.however I been wanting to try generating a private key by myself from the seed phrase outside the wallet software. I tried using the seed from  an HD wallet of BIP-32 standard But am having a hard time getting the right algorithm for generation of the master key and chain code .
How do I go about this pls?
Jump to: