Modern HD Wallets enable the wallet owner to create an infinite number of secret wallets backed up with one single recovery seed plus the 25th word passphrase. Hierarchical Deterministic wallets, also called HD Wallets, were introduced as part of the Bitcoin Improvement Proposal #32 (BIP 32). Key Terms HD Wallet Passphrases:
Bitcoin keys and addresses are a string of unique numbers used to send and receive Bitcoin on the network. Keys and addresses function like a checking account at a bank similar to your checking account number and account password. Your public key is your account number. Your private key is your account password. Your address is like your Venmo or Zelle @handle that functions like your account number that is given to the sender who creates the transaction. What is a Bitcoin private key? Your private key is like a password that secures the Bitcoin and is used to sign a transaction which prevents people from sending Bitcoin from your wallet to their address. A private key is also called a secret key or (SK-secret key). Private keys are randomly generated 256-bit numbers generated by a SHA-256 algorithm. The number ‘256’ in SHA-256 represents the number of hexadecimal characters produced as an output of the algorithm which represents the data that was encrypted. Since Bitcoin Core is a computer program run by all nodes, the software must be able to read the information. Computers like to use Binary, elemental numbers (1s and 0s) to store data in bits. In the example below, Hexadecimal (hex) and Decimal numbers can be converted to Binary. These conversions from one format to another are interchangeable and all represent the same private key. Note: Never share your private key with anyone! Your private key is used to sign a Bitcoin transaction on the network and unlock your Bitcoin UTXOs to spend. If someone has your private key they can drain (sweep) Bitcoin from your account. Self-custody of your private key is a fundamental right and responsibility of Bitcoin investors. Non-custodial wallets enable you to become your own bank and serve as an alternative solution to 3rd party custodial wallets, like an exchange, used for private key management. If you are using an exchange wallet (Coinbase) or software wallet (MetaMask), then you do not control your private key. The ‘hot wallet’ provider is acting as the custodian. Private keys stored offline in cold storage transfers the custodial risk (hacks, theft, negligence) away from the third party hot wallet provider directly to you. Most wallet services (hot and cold) provide a way to backup and restore your private key by providing you with a recovery seed phrase (12-24 words) that represents your 256 bit private key. How do I generate a Bitcoin private key offline? Generating a private key is like creating a new bank account to send and receive Bitcoin. To create a new bank account at Chase you have to fill out a form, provide ID, and receive permission from the bank before you’re given an account number. At any time, for any reason that same bank could freeze or cancel your account preventing access to your funds at the directive of the government or an employee. Creating a private key doesn’t require anybody’s permission and effectively creates your own ‘account’ on the Bitcoin Network. Being your own sovereign bank is liberating and a fundamental right offered by Bitcoin. You can manually create a private key without a wallet provider simply by generating a 256-bit random number. Here are a few examples of how to generate a private key:
The goal of Bitcoin dust attack is to expose your identity and holdings. An attacker will send a small amount of crypto to different wallet addresses hoping the wallet owner will eventually batch or consolidate their UTXOs, including the dust, to use in a future transaction. Once the recipient (you) spends the dust in a transaction, the attacker can connect the dots to associate the dusted address with other addresses you own. For example, if you inadvertently send the dust to a centralized exchange to cash out, the attacker could target you with a phishing attack to compromise your account or install malware. Most dust can’t be spent on its own because it’s too small and less than the network fee. To spend the dust, you must combine the dust with other UTXOs which is exactly what the attacker wants you to do. How to protect your wallet from bitcoin dusting? You can’t prevent a dusting attack because anyone can send Bitcoin to any address without censorship. Here are some proactive measures to protect against a dust attack: