diff --git a/ch04.asciidoc b/ch04.asciidoc index e64919f0..03cf3766 100644 --- a/ch04.asciidoc +++ b/ch04.asciidoc @@ -487,7 +487,7 @@ Another method for making keys is _deterministic key generation_. Here you deriv Wallets contain keys, not coins. The coins are stored on the blockchain in the form of transaction-outputs (often noted as _vout_ or _txout_). Each user has a wallet containing keys. Wallets are really keychains containing pairs of private/public keys (See <>). Users sign transactions with the keys, thereby proving they own the transaction outputs (their coins). ==== -[[random wallet]] +[[random_wallet]] ==== Non-Deterministic (Random) Wallets In the first implementations of bitcoin clients, wallets were simply collections of randomly generated private keys. This type of wallet is called a _Type-0 Non-Deterministic Wallets_. For example, the Bitcoin Core Client pre-generates 100 random private keys when first started and generates more keys as needed, using each key only once. This type of wallet is nicknamed "Just a Bunch Of Keys", or JBOK, and such wallets are being replaced with deterministic wallets because they are cumbersome to manage, backup and import. The disadvantage of random keys is that if you generate many of them you must keep copies of all of them, meaning that the wallet must be backed-up frequently. Each key must be backed-up, or the funds it controls are irrevocably lost if the wallet becomes inaccessible. This conflicts directly with the principle of avoiding address re-use, by using each bitcoin address for only one transaction. Address re-use reduces privacy by associating multiple transactions and addresses with each other. A Type-0 non-deterministic wallet is a poor choice of wallet, especially if you want to avoid address re-use as that means managing many keys, which creates the need for frequent backups. While the Bitcoin Core Client includes a wallet that is implemented as a Type-0 wallet, the use of this wallet is actively discouraged by developers of the Bitcoin Core. diff --git a/ch09.asciidoc b/ch09.asciidoc index 644accbf..e3bfa1f2 100644 --- a/ch09.asciidoc +++ b/ch09.asciidoc @@ -297,7 +297,7 @@ The Namecoin client is very similar to Bitcoin Core, as it is derived from the s For example, to register the domain +mastering-bitcoin.bit+, we use the command +name_new+ as follows: -[source.bash] +[source,bash] ---- $ namecoind name_new d/mastering-bitcoin ----