Yes, this is page which I am talking about.
Hmm, if so, it has nothing to do with brainwallets.
It's about encoding the ECDSA Private key into Wallet Import Format, it's all about private keys.
Those two "
SHA256 hash" steps aren't about hashing a passphrase, I believe it's clearly written there.
These are the only steps in your reply that's covered by the WIF documentation:
WIF generation:
-snip-
-snip-
-snip-
4. add 80 in front
-snip-
6. base58encode_check
7. print to WIF file
Its equivalent steps of the instruction in the Wiki "
Private key to WIF" are:
4 = 2
6 & 7 = 3, 4, 5, 6, 7
Does "_check" first go with sha256 on the data?
"
Base58" just encodes the data into Base58
"
Base58Check" encodes it with a checksum where those two SHA256 is used.
Brainwallet isn't actually part of Bitcoin, it's just a simple "
hack" to make ECDSA private key.
Since SHA256's result is 256-bit and ECDSA private key is also 256-bit, the makers of Brainwallet have thought of using that hashing algorithm to make ECDSA private keys from phrases.
Only steps 1 and 2 in your reply above are related to Brainwallet, the rest of the steps are just to convert the 256-bit result into WIF.