Nostraterrestrial on Nostr: I wouldn’t say I’m sure, as it is indeed confusing, but here’s what I think is ...
I wouldn’t say I’m sure, as it is indeed confusing, but here’s what I think is more accurate:
1. You can use 128, 160, 192, 224 or 256 bits of entropy to start with. We then add 1 bit of checksum for every 32 bits, so 4, 5, 6, 7 and 8 bits, respectively.
2. The salt input for PBKDF2 will always contain “mnemonic”, but you could additionally append a password to it (which we usually call a passphrase). So if your passphrase is “SATOSHI”, the salt will be “mnemonicSATOSHI”.
3. PBKDF2 will run the HMAC-SHA512 algorithm 2048 times and then return the 512 bit seed.
4. The seed is then fed into the HMAC-SHA512, along with the “Bitcoin seed” salt. This gives us the 512 bit master extended private key.
5.The LEFT/FIRST half of the master extended private key is the master private key and the right/second half is the chain code which we will use to derive more keys.
Published at
2024-02-12 15:46:50Event JSON
{
"id": "961f8d985ded5e0c34980abb7ef11bd73479f6fd102829347a1eab6703d2ca4e",
"pubkey": "546a3f8d791a84a4879dc30d4ae9d4ed0aef3d0e1492be649aeda2337be80648",
"created_at": 1707752810,
"kind": 1,
"tags": [
[
"e",
"a8de4cca676b9c74ca28cbba2a53e81ad0a330cba9bd90b734c0e59b2cbd96a4"
],
[
"p",
"4564d670cc2b516c0173a27814abe5d8ca60abc8f883ac82b47b5c980877484b"
]
],
"content": "I wouldn’t say I’m sure, as it is indeed confusing, but here’s what I think is more accurate:\n\n1. You can use 128, 160, 192, 224 or 256 bits of entropy to start with. We then add 1 bit of checksum for every 32 bits, so 4, 5, 6, 7 and 8 bits, respectively.\n2. The salt input for PBKDF2 will always contain “mnemonic”, but you could additionally append a password to it (which we usually call a passphrase). So if your passphrase is “SATOSHI”, the salt will be “mnemonicSATOSHI”.\n3. PBKDF2 will run the HMAC-SHA512 algorithm 2048 times and then return the 512 bit seed.\n4. The seed is then fed into the HMAC-SHA512, along with the “Bitcoin seed” salt. This gives us the 512 bit master extended private key.\n5.The LEFT/FIRST half of the master extended private key is the master private key and the right/second half is the chain code which we will use to derive more keys.",
"sig": "c1041336ab26c1a5e4509ad91cd26b919540fd5a906492e2ea20cb6ad156bb35222ff5125cf585212625942eb7e257f3d5340f66448a6303ee4e3b23c9562bf8"
}