Bitcoin Forum
May 04, 2024, 07:04:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Are private keys and mnemonic code one to one?  (Read 185 times)
hushan (OP)
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
April 21, 2018, 01:26:49 AM
 #1

Do each private key corresponds to one and only one mnemonic phrase? and do each mnemonic phrase decode to the exact same private key always?

According to https://en.bitcoin.it/wiki/Private_key#Range_of_valid_ECDSA_private_keys, not all 2256 bits numbers are valid private keys, what about mnemonic phrases? Does all permutations of the words calculates to a valid private key? If not, does wallet software try multiple times to generate a valid phrase?


BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
1714806243
Hero Member
*
Offline Offline

Posts: 1714806243

View Profile Personal Message (Offline)

Ignore
1714806243
Reply with quote  #2

1714806243
Report to moderator
1714806243
Hero Member
*
Offline Offline

Posts: 1714806243

View Profile Personal Message (Offline)

Ignore
1714806243
Reply with quote  #2

1714806243
Report to moderator
1714806243
Hero Member
*
Offline Offline

Posts: 1714806243

View Profile Personal Message (Offline)

Ignore
1714806243
Reply with quote  #2

1714806243
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714806243
Hero Member
*
Offline Offline

Posts: 1714806243

View Profile Personal Message (Offline)

Ignore
1714806243
Reply with quote  #2

1714806243
Report to moderator
1714806243
Hero Member
*
Offline Offline

Posts: 1714806243

View Profile Personal Message (Offline)

Ignore
1714806243
Reply with quote  #2

1714806243
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
April 21, 2018, 02:15:38 AM
Merited by ABCbits (1), TryNinja (1)
 #2

Do each private key corresponds to one and only one mnemonic phrase? and do each mnemonic phrase decode to the exact same private key always?
Mnemonic seeds are first converted to the master private key (seed) before being generated to a private key. Each private key can be generated from one and only one master private key since HMAC-SHA512 is applied to the master private before being generated and unless a collision is found, the hash will not be the same.

Mnemonic phrase will always decode to the same master private key and subsequently the same private key.
Does all permutations of the words calculates to a valid private key? If not, does wallet software try multiple times to generate a valid phrase?
Yes, according to BIP39 standards. You can select the words from the wordlist yourself and you can generate a seed from using any mnemorics. However, depending on your client, you might need to have the correct checksum.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1583
Merit: 1276


Heisenberg Design Services


View Profile WWW
April 21, 2018, 02:38:50 AM
 #3

According to https://en.bitcoin.it/wiki/Private_key#Range_of_valid_ECDSA_private_keys, not all 2256 bits numbers are valid private keys, what about mnemonic phrases?
According to BIP39 standards, we can use around 2048 words to generate a mnemonic key. For us to generate a 12 word key pair the combinations could range between 204812 which could be simplified to 2132 and the mnemonic would eventually have 132 bits of security. But due to some randomness, the security could be around 128 bits which is equal to a private key security.

But generating a word yourself from the 2048 lists is pretty dangerous when security is concerned. Allow your wallet to work for you. For a complete understanding of BIP39 conventions you may read this
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!