Bitcoin Forum
April 26, 2024, 07:44:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: same passphrase, different results  (Read 264 times)
citb0in (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
August 31, 2022, 02:22:37 PM
 #1

Hi all,

when I create the Bitcoin address from the passphrase foo I am getting the result
compressed address 1LEH8BEZgC4onZ4GLm8UpZ3vXGAr6LYKST

however when I try getting the address with pycoin 's ku utility
Quote
ku P:foo

I am getting the result
compressed address = 19Vqc8uLTfUonmxUEZac7fz1M5c5ZZbAii

Can anyone explain why the output differs, please, where is the culprit ? any explanation and help appreciated. Thank you

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

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

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

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

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

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











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











▄▄▄▄█
1714160682
Hero Member
*
Offline Offline

Posts: 1714160682

View Profile Personal Message (Offline)

Ignore
1714160682
Reply with quote  #2

1714160682
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714160682
Hero Member
*
Offline Offline

Posts: 1714160682

View Profile Personal Message (Offline)

Ignore
1714160682
Reply with quote  #2

1714160682
Report to moderator
1714160682
Hero Member
*
Offline Offline

Posts: 1714160682

View Profile Personal Message (Offline)

Ignore
1714160682
Reply with quote  #2

1714160682
Report to moderator
1714160682
Hero Member
*
Offline Offline

Posts: 1714160682

View Profile Personal Message (Offline)

Ignore
1714160682
Reply with quote  #2

1714160682
Report to moderator
seoincorporation
Legendary
*
Offline Offline

Activity: 3136
Merit: 2908


Top Crypto Casino


View Profile
August 31, 2022, 06:04:26 PM
 #2

Hi all,

when I create the Bitcoin address from the passphrase foo I am getting the result
compressed address 1LEH8BEZgC4onZ4GLm8UpZ3vXGAr6LYKST

however when I try getting the address with pycoin 's ku utility
Quote
ku P:foo

I am getting the result
compressed address = 19Vqc8uLTfUonmxUEZac7fz1M5c5ZZbAii

Can anyone explain why the output differs, please, where is the culprit ? any explanation and help appreciated. Thank you


Looks like the passphrase option from pycoin uses a different way to encrypt the passphrase than other brain wallets.

From pycoin we get this hex Private key:

Code:
91880b0e3017ba586b735fe7d04f1790f3c46b818a2151fb2def5f14dd2fd9c3

While we get this one from online wallet services:

Code:
2C26B46B68FFC68FF99B453C1D30413413422D706483BFA0F98A5E886266E7AE
Source:
https://secretscan.org/PrivateKeyBrainwallet
https://brainwalletx.github.io/

You will have to find another way to generate that brain wallet.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
citb0in (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
August 31, 2022, 06:28:35 PM
Merited by vapourminer (2)
 #3

I am not trying to generate a brainwallter for myself as this is susceptible to attacks (see HERE). I am trying to learn and understand. I even do not yet understand that Ryan, the author of Brainflayer, showed in his video and his slides some examples of phrases which led to funded addresses.

Here some of the passphrases he mentioned in his article:

Quote
The Quick Brown Fox Jumped Over The Lazy Dot
Down the Rabbit-Hole
one two three four five six seven
who is john galt

I have tried all of them separately. I hash them with sha256sum and then I get the 256bit private key as hex. This key is then piped into pycoins' ku utility and outputs the bitcoin address. But the resulting address has no balance and had no TX in the past, absolutely zeros. Obviously this cannot be the address he mentioned in his demonstration because even it was funded and now has a zero balance it should show some recent transactions. But it don't, no TX at all, all zero. I tested all examples, all show the same result, null values (I mean also TXin and TXout) for the addresses.

Then I also tried
Code:
ku P:'The Quick Brown Fox Jumped Over The Lazy Dot' -a
and the result is a different address than the previous example. I checked this address, too but again null values. This address also had not any TX in the past.

What kind of passphrases did Ryan generate in his demonstration and PoC-paper ? Can anyone shed some light into?

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

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

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

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

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

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











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











▄▄▄▄█
franky1
Legendary
*
Offline Offline

Activity: 4200
Merit: 4447



View Profile
August 31, 2022, 09:09:50 PM
Merited by vapourminer (1), nc50lc (1)
 #4

many wallets just simply SHA the word (foo becomes the sha beginning 2C26B4)

where as other wallets treat the word as a seed phase that has other steps inplace to allow multiple addresses to be generated from the same word

this is where you have to know which wallet supports what type of key entry. as some do straight import privkey. some do simple brainwallet and some do passphrase

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
Welsh
Staff
Legendary
*
Offline Offline

Activity: 3248
Merit: 4110


View Profile
August 31, 2022, 09:23:39 PM
Merited by DaveF (3), ABCbits (1)
 #5

Yeah, basically there's no universal standard that everyone is following, although most do seem to be quite consistent, there will always be outliers which do things a little different, and while that does add to the confusion, especially when using one of the outliers, and you come to realize years later it only works on said application, which could become obsolete or no longer usable.

If you're generating a brain wallet, it's probably best to opt for the more universally accepted generation. Any particular reason why you're using pycoin?
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
September 01, 2022, 12:47:13 PM
Merited by o_e_l_e_o (4), vapourminer (2)
 #6

Can anyone explain why the output differs, please, where is the culprit ? any explanation and help appreciated. Thank you
pycoin's ku P: command's passphrase isn't used to generate a single private key but a BIP32 root key.
It's indicated in their "command-line tools article": COMMAND-LINE-TOOLS.md
But the detailed method isn't disclosed.

While (as another user has said), 1LEH8BEZgC4onZ4GLm8UpZ3vXGAr6LYKST is just a "brainwallet" which is the address generated from SHA256(foo) when used as prvKey.

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

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

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

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

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

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











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











▄▄▄▄█
citb0in (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
September 01, 2022, 01:13:06 PM
 #7

pycoin's ku P: command's passphrase isn't used to generate a single private key but a BIP32 root key.
That explains everything, thanks for pointing out! Would be nice to know what and how exactly this is done by ku.

Any particular reason why you're using pycoin?
Nope. Why do you ask? Can you suggest something else and for what reason?

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

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

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

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

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

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











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











▄▄▄▄█
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6235


Crypto Swap Exchange


View Profile WWW
September 01, 2022, 01:18:02 PM
Merited by vapourminer (2)
 #8

Yeah, basically there's no universal standard that everyone is following, although most do seem to be quite consistent, there will always be outliers which do things a little different, and while that does add to the confusion, especially when using one of the outliers, and you come to realize years later it only works on said application, which could become obsolete or no longer usable.

If you're generating a brain wallet, it's probably best to opt for the more universally accepted generation. Any particular reason why you're using pycoin?

This statement cannot be stressed enough. Playing around with stuff like this to leard and experiment is fine.
But never ever store funds in addresses generated by things like this.

Over the years, and a lot in the early days there were a lot more one off and oddball ways of generating private keys.

Take these words -> <some math that was not disclosed> -> private key.

It was nothing malicious but just people experimenting. But when their github / sourceforge / webpage went away so did the app unless someone saved a copy.
So now you have your super secret passphrase and are now digging through archive.org to find how to get your private key again.

It's become less common over the years, but you still have people trying to recover wallets that they don't even redeemer how they were generated. Yes some people are scamming, but I'm sure there are many others that just don't remember how they made them in 2011.....

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Welsh
Staff
Legendary
*
Offline Offline

Activity: 3248
Merit: 4110


View Profile
September 01, 2022, 06:15:15 PM
 #9

Yeah, and it always happens. At least, if you use something that's more universally accepted, you have more redundancies, but even then you aren't guaranteed that the standard will be the same in a couple of years. You should be checking somewhat frequently that this standard is still accepted, factor in redundancies, and generally be on top of things when you're operating as your own bank, otherwise you could come to regret it.

As an example, but still being a little different a website recently which was very well known, and been operating for something close to 10 years I imagine, recently went offline, and therefore a lot of people missed a service which they might've been checking on the daily for the past decade. So, even what seems reliable today, isn't guaranteed in the future. At least, Bitcoin Core generated, you know there'll be some sort of plan put in place if it ever needs to change for whatever reason. Any brain wallet generator isn't likely going to offer the same sort of contingency plans.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
September 03, 2022, 03:56:03 PM
Merited by seoincorporation (1)
 #10

pycoin's ku P: command's passphrase isn't used to generate a single private key but a BIP32 root key.
This is the correct answer. The P argument uses your input to create a BIP32 root key, and then generates an address from that root key, which is not what a brainwallet does. If you want to use pycoin to generate the address 1LEH8BEZgC4onZ4GLm8UpZ3vXGAr6LYKST, which is the same address generated by a brainwallet tool SHA256 hashing the string "foo", then first hash the string "foo" to get the following output
Code:
2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae

And then take that output and simply use it with the ku command in pycoin, without the P argument, as follows:
Code:
ku 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
citb0in (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
September 03, 2022, 07:42:57 PM
 #11

correct. That's what I figured out meanwhile and wrote a small a bash script to perform this automagically. Thank you all

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

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

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

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

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

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











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











▄▄▄▄█
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!