From dd464b28f5d350aaa8fa7ca0307e38cee275ce08 Mon Sep 17 00:00:00 2001 From: "Andreas M. Antonopoulos" Date: Fri, 6 Sep 2013 19:00:38 -0700 Subject: [PATCH] fix links --- ch00.asciidoc | 14 +++++++------- ch01.asciidoc | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ch00.asciidoc b/ch00.asciidoc index 4d51984b..9ab71e22 100644 --- a/ch00.asciidoc +++ b/ch00.asciidoc @@ -182,7 +182,7 @@ The reference bitcoin software implementation, known as the _Satoshi Client_ and There are many different implementations of bitcoin, from the front-end user interface to various libraries, servers and bitcoin network nodes. -The reference implementation of bitcoin, which combines a full bitcoin network node, a wallet and a user interface is known as the _Satoshi Client_, or also as its executable name +bitcoind+ on Unix-like systems and +bitcoin-qt+ for the graphical user interface component. The Satoshi client is maintained by a network of volunteers as an open source project hosted on Github link:$$https://github.com/bitcoin/bitcoin$$[]. +The reference implementation of bitcoin, which combines a full bitcoin network node, a wallet and a user interface is known as the _Satoshi Client_, or also as its executable name +bitcoind+ on Unix-like systems and +bitcoin-qt+ for the graphical user interface component. The Satoshi client is maintained by a network of volunteers as an open source project hosted on Github link::$$https://github.com/bitcoin/bitcoin$$[]. ==== Full node client or lightweight client? @@ -203,7 +203,7 @@ For the purposes of following the examples in this book, we recommend you downlo ===== Reference Client (bitcoind, bitcoin-qt) -Versions for Windows, Mac, Linux and source code can be found at link:$$http://bitcoin.org/en/download$$[] +Versions for Windows, Mac, Linux and source code can be found at link::$$http://bitcoin.org/en/download$$[] When you first run the bitcoin-qt application, it will start downloading the full blockchain, several gigabytes of data. It may take several days to fully synchronize the complete blockchain. During that time, the client will display "out of sync" next to balances and show "Synchronizing" in the footer. @@ -221,9 +221,9 @@ For more immediate use of the bitcoin software, try downloading a lightweight cl On Android, you can find many bitcoin clients by searching for "bitcoin wallet" in the official application market. The most notable are: -* Andreas Shildbach's Android Bitcoin Wallet link:$$https://play.google.com/store/apps/details?id=de.schildbach.wallet$$[] -* Mycelium light-weight node link$$https://play.google.com/store/apps/details?id=com.mycelium.wallet$$[] -* Blockchain.info hybrid web/mobile wallet link:$$https://play.google.com/store/apps/details?id=piuk.blockchain.android$$[] +* Andreas Shildbach's Android Bitcoin Wallet link::$$https://play.google.com/store/apps/details?id=de.schildbach.wallet$$[] +* Mycelium light-weight node link::$$https://play.google.com/store/apps/details?id=com.mycelium.wallet$$[] +* Blockchain.info hybrid web/mobile wallet link::$$https://play.google.com/store/apps/details?id=piuk.blockchain.android$$[] Due to restrictions by Apple, there are no wallet applications for iOS. However, you can use web wallets in your iOS browser. @@ -257,7 +257,7 @@ Public-key cryptography, or assymetric cryptography, is a key part of a crypto-c In a nutshell, public-key cryptography is like a digital padlock, which can only be opened by the owner of a secret key. The owner of that key can hand out as many copies of the padlock as they want, and others can use it to "lock" bitcoins inside transactions recorded on the blockchain. Only the owner of the key can then unlock and "redeem" these transactions, as only they can open the digital padlock. -In more specific terms, bitcoin uses Elliptic Curve Cryptography (ECC) on the secp256k1 curve, defined by link:$$http://www.secg.org/index.php?action=secg,docs_secg$$[SEC 2: Recommended Elliptic Curve Domain Parameters version 2.0]. The name secp256k1 indicates a curve whose points are a prime field, with a 256-bit prime and the k indicating a Koblitz curve variant. +In more specific terms, bitcoin uses Elliptic Curve Cryptography (ECC) on the secp256k1 curve, defined by link::$$http://www.secg.org/index.php?action=secg,docs_secg$$[SEC 2: Recommended Elliptic Curve Domain Parameters version 2.0]. The name secp256k1 indicates a curve whose points are a prime field, with a 256-bit prime and the k indicating a Koblitz curve variant. The end-user, or the wallet application they are using, will generate a new key-pair using a random seed. The key pair consists of a secret part the _private key_ and a public part, the _public key_. @@ -276,7 +276,7 @@ Bitcoin is more than just a currency, it is also the payment network that carrie The bitcoin network is a peer-to-peer network, which is formed by all the bitcoin clients that are running a full-node client. At any moment, the bitcoin network can range in size anywhere from a tens of thousands to hundreds of thousands of nodes. Only a tiny subset of those is required to operate, but good network propagation and distribution ensures resillience and survivability of the overall bitcoin network. -You can see a graphical representation of the nodes seen on the bitcoin network by visiting a popular chart on blockchain.info link:$$https://blockchain.info/nodes-globe$$[] +You can see a graphical representation of the nodes seen on the bitcoin network by visiting a popular chart on blockchain.info link::$$https://blockchain.info/nodes-globe$$[] In the bitcoin peer-to-peer network, the nodes are much more sophisticated than most p2p networks. All nodes can validate the basic information inside a block for themselves and confirm the transactions. A full-node client can independently confirm each and every bitcoin in every transaction, in an unbroken chain all the way back to it's genesis in a newly minted block. The network therefore plays a subordinate role. It propagates transactions, but those transactions are independently verified by the nodes. The network is not trusted per-se, as each node does not depend on any third-party for trust. Instead, the network facilitates the propagation of blocks so that nodes that are mining can create new blocks and all nodes can verify them. diff --git a/ch01.asciidoc b/ch01.asciidoc index 903b9533..9ddc706b 100644 --- a/ch01.asciidoc +++ b/ch01.asciidoc @@ -80,13 +80,13 @@ The size of bitcoin's private key, 2^256^ is a truly unfathomable number. It is .Private key generation: From random mouse movements to a 256-bit number used as the private key image::images/privkey-gen.png["Private key generation"] -Once a private key has been generated, the public key equivalent can be derived from it using the elliptic curve multiplication function. Many software implementations of bitcoin use the OpenSSL library, specifically the Elliptic Curve (link:$$https://www.openssl.org/docs/crypto/ec.html#$$[] library and supporting utilities. +Once a private key has been generated, the public key equivalent can be derived from it using the elliptic curve multiplication function. Many software implementations of bitcoin use the OpenSSL library, specifically the Elliptic Curve (link::$$https://www.openssl.org/docs/crypto/ec.html#$$[] library and supporting utilities. Here's an example from the reference implementation, generating a public key from an existing private key [[genesis_block_cpp]] .The Genesis Block, statically encoded in the source code of the reference client -link:$$https://github.com/bitcoin/bitcoin/blob/0.8.4/src/key.cpp#L31$$[ +link::$$https://github.com/bitcoin/bitcoin/blob/0.8.4/src/key.cpp#L31$$[ bitcoin / src / key.cpp : 31 ] ==== [source, c++] @@ -158,7 +158,7 @@ https://blockexplorer.com/b/0 [[genesis_block_cpp]] .The Genesis Block, statically encoded in the source code of the reference client -link:$$https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L120$$[bitcoin/src/chainparams.cpp:line 120] +link::$$https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L120$$[bitcoin/src/chainparams.cpp:line 120] ==== [source, c++] ----