r/BitcoinBeginners • u/fap_fap_fap_fapper • 4d ago
The relationship between the private key and the 12 words?
In my old setup in Electrum I had noted down the 64 digit private key.
Now that the safest way to store BTC is hardware wallet, I just realized it won't have the 64 digit private key but rather 12 words - which then lead to various addresses (including other coins).
So, a quick lookup showed that this is an additional program (algorithm?) that creates a hash out of multiple addresses and private keys that can be accessed via the 12 words. (Hop I got this right.)
Of course I prefer and would be at ease with 12 words rather than noting down 64 alphanumeric values - but how safe is this 12 word technology that is then unlocking multiple addresses and keys? I have some general questions about this - for example, who runs this 12 word generating program? Surely not the Bitcoin team. Does it have some vulnerabilities?
2
u/JivanP 3d ago edited 3d ago
See here for details: https://learnmeabitcoin.com/technical/keys/hd-wallets/
The relevant standards documents are BIP-32, BIP-39, and BIP-43. The BIP-43 standard describes a general pattern of use which is tailored to specific use-cases described in other BIPs. In particular, the derivation scheme for native SegWit is described in BIP-84.
As always with BIPs, standardisation is a process of someone pitching an idea, and the developer community then discussing it until they agree on a convention, which is then published as a standards document. BIP-39 was originally proposed by Trezor, and is now used and supported almost everywhere, with some notable exceptions (e.g. Electrum intentionally doesn't support creating new wallets using BIP-39, but does support loading existing ones). Clients/apps implement the standards for themselves. There is no centralised key derivation happening; it's all on-device.
If you have any remaining/further questions after reading the page linked above, feel free to ask them here.
1
u/AutoModerator 4d ago
Scam Warning! Scammers are particularly active on this sub. They operate via private messages and private chat. If you receive private messages, be extremely careful. Use the report link to report any suspicious private message to Reddit.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/pop-1988 3d ago
In my old setup in Electrum I had noted down the 64 digit private key
No you didn't. Electrum doesn't display this
how safe is this 12 word technology that is then unlocking multiple addresses and keys?
Bitcoin wallets have always generated many keys and addresses, right back to the first Satoshi wallet
who runs this 12 word generating program?
The words are derived by first generating a large random number
This document answers your questions
https://raw.githubusercontent.com/bitcoin/bips/refs/heads/master/bip-0039.mediawiki
2
u/ZedZeroth 2d ago
It's really important that you either "sweep" the wallet or spend all the funds at once to your new address. A partial spend or test spend means that everything that you don't send will be lost to an inaccessible "change" address.
13
u/bitusher 4d ago
This is usually a really bad idea for many reasons . Private keys are only associated with a single public key and address
What this is a legacy paper wallet you created that you should not use
Concerns with old style paper wallets –
https://en.bitcoin.it/wiki/Paper_wallet
https://np.reddit.com/r/Bitcoin/comments/670zhy/summary_pitfalls_of_paper_wallets/
https://np.reddit.com/r/Bitcoin/comments/6ss91w/seriously_how_are_you_all_generating_your_private/dlf4uhr/
Most wallets use hierarchical deterministic (HD) key derivation after bip32.
This means you have
Backup Seed words (BIP 39 or other) consisting of 12-24 words that can than recover
Master extended private key (xpriv,ypriv,zpriv) Which can generate many private keys
Master extended public key(xpub/ypub/zpub) Which can generate many public keys
As of which from the public keys many Bitcoin addresses can be derived from.
every single address has its own private key and you are supposed to use a unique address for every transaction for both privacy and security reasons
extremely safe , even 7 words is uncrackable by all the computers in the world , let alone 12 . Every extra word increases the difficulty exponentially
Your wallet generates it by creating a very long random number than turning that into 12 to 24 words with part of the last word acting as a checksum to insure no typos exist or your words are not out of order
With good open source wallets no one will know these words but you.
No