From 11905f81c5ef4925f9bbf50fb58665ad2910c18f Mon Sep 17 00:00:00 2001 From: "myarbrough@oreilly.com" Date: Wed, 5 Nov 2014 08:54:12 -0800 Subject: [PATCH] Made changes to ch04.asciidoc --- ch04.asciidoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ch04.asciidoc b/ch04.asciidoc index 0805af9f..ed007f72 100644 --- a/ch04.asciidoc +++ b/ch04.asciidoc @@ -29,6 +29,7 @@ When spending bitcoins, the current bitcoin owner presents her public key and a In most wallet implementations, the private and public keys are stored together as a _key pair_ for convenience. However, the public key can be calculated from the private key, so storing only the private key is also possible. ==== +[[private_public_keys]] ==== Private and Public Keys A bitcoin wallet contains a collection of key pairs, each consisting of a private key and a public key. The private key (k) is a number, usually picked at random. From the private key, we use elliptic curve multiplication, a one-way cryptographic function, to generate a public key (K). From the public key (K), we use a one-way cryptographic hash function to generate a bitcoin address (A). In this section we will start with generating the private key, look at the elliptic curve math that is used to turn that into a public key, and finally, generate a bitcoin address from the public key. The relationship between private key, public key, and bitcoin address is shown in <>. @@ -546,7 +547,7 @@ Another method for making keys is _deterministic key generation_. Here you deriv [TIP] ==== -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 XREF-public_key]). Users sign transactions with the keys, thereby proving they own the transaction outputs (their coins). +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]]