1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-23 00:28:14 +00:00
bitcoinbook/ch09.asciidoc

363 lines
36 KiB
Plaintext
Raw Normal View History

2014-10-31 14:31:10 +00:00
[[ch9]]
2014-11-18 19:57:50 +00:00
== Alternative Chains, Currencies, pass:[<phrase role="keep-together">and Applications</phrase>]
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Bitcoin was the result of 20 years of research in distributed systems and currencies and brought a revolutionary new technology into the space: the decentralized consensus mechanism based on proof of work. This invention at the heart of bitcoin has ushered a wave of innovation in currencies, financial services, economics, distributed systems, voting systems, corporate governance, and contracts.
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
In this chapter we'll examine the many offshoots of the bitcoin and blockchain inventions: the alternative chains, currencies, and applications built since the introduction of this technology in 2009. Mostly, we will look at alternative coins, or _alt coins_, which are digital currencies implemented using the same design pattern as bitcoin, but with a completely separate blockchain and network.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
For every alt coin mentioned in this chapter, 50 or more will go unmentioned, eliciting howls of anger from their creators and fans. The purpose of this chapter is not to evaluate or qualify alt coins, or even to mention the most significant ones based on some subjective assessment. Instead, we will highlight a few examples that show the breadth and variety of the ecosystem, noting the first-of-a-kind for each innovation or significant differentiation. Some of the most interesting examples of alt coins are in fact complete failures from a monetary perspective. That perhaps makes them even more interesting for study and highlights the fact that this chapter is not to be used as an investment guide.
2014-10-31 14:31:10 +00:00
With new coins introduced every day, it would be impossible not to miss some important coin, perhaps the one that changes history. The rate of innovation is what makes this space so exciting and guarantees this chapter will be incomplete and out-of-date as soon as it is published.
=== A Taxonomy of Alternative Currencies and Chains
2014-11-18 20:21:41 +00:00
((("chains, alternative")))((("currencies, alternative")))Bitcoin is an open source project, and its code has been used as the basis for many other software projects. The most common form of software spawned from bitcoin's source code are alternative decentralized currencies, or _alt coins_, which use the same basic building blocks to implement digital currencies.
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
There are a number of protocol layers implemented on top of bitcoin's blockchain. These((("blockchain apps")))((("meta chains")))((("meta coin platforms"))) _meta coins_, _meta chains_, or _blockchain apps_ use the blockchain as an application platform or extend the bitcoin protocol by adding protocol layers. Examples include Colored Coins, Mastercoin, and Counterparty.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
In the next section we will examine a few notable alt coins, such as Litecoin, Dogecoin, Freicoin, Primecoin, Peercoin, Darkcoin, and Zerocoin. These alt coins are notable for historical reasons or because they are good examples for a specific type of alt coin innovation, not because they are the most valuable or "best" alt coins.
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
In addition to the alt coins, there are also a number of alternative blockchain implementations that are not really "coins," which I call((("alt chains"))) _alt chains_. These alt chains implement a consensus algorithm and distributed ledger as a platform for contracts, name registration, or other applications. Alt chains use the same basic building blocks and sometimes also use a currency or token as a payment mechanism, but their primary purpose is not currency. We will look at Namecoin, Ethereum, and NXT as examples of alt chains.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
In addition to the proof-of-work consensus mechanism used in bitcoin, alternatives include experimental protocols based on proof of resource and proof of publishing. We will examine Maidsafe and Twister as examples of these consensus mechanisms.
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
Finally, there are a number of bitcoin contenders that offer digital currency or digital payment networks, but without using a decentralized ledger or consensus mechanism based on proof of work, such as Ripple and others. These nonblockchain technologies are outside the scope of this book and will not be covered in this chapter.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
=== Meta Coin Platforms
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
((("meta coin platforms", id="ix_ch09-asciidoc0", range="startofrange")))Meta coins and meta chains are software layers implemented on top of bitcoin, either implementing a currency-inside-a-currency, or a platform/protocol overlay inside the bitcoin system. These function layers extend the core bitcoin protocol and add features and capabilities by encoding additional data inside bitcoin transactions and bitcoin addresses. The first implementations of meta coins used various hacks to add metadata to the bitcoin blockchain, such as using bitcoin addresses to encode data or using unused transaction fields (e.g., the transaction sequence field) to encode metadata about the added protocol layer. Since the introduction of the +OP_RETURN+ transaction scripting opcode, the meta coins have been able to record metadata more directly in the blockchain, and most are migrating to using that instead.
2014-10-31 14:31:10 +00:00
==== Colored Coins
2014-11-18 20:21:41 +00:00
((("colored coins")))((("meta coin platforms","colored coins")))_Colored coins_ is a meta protocol that overlays information on small amounts of bitcoin. A "colored" coin is an amount of bitcoin repurposed to express another asset. ((("stock certificates","colored coins as")))Imagine, for example, taking a $1 note and putting a stamp on it that said, "This is a 1 share certificate of Acme Inc." Now the $1 serves two purposes: it is a currency note and also a share certificate. Because it is more valuable as a share, you would not want to use it to buy candy, so effectively it is no longer useful as currency. Colored coins work in the same way by converting a specific, very small amount of bitcoin into a traded certificate that represents another asset. The term "color" refers to the idea of giving special meaning through the addition of an attribute such as a color—it is a metaphor, not an actual color association. There are no colors in colored coins.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
((("wallets","for colored coins")))Colored coins are managed by specialized wallets that record and interpret the metadata attached to the colored bitcoins. Using such a wallet, the user will convert an amount of bitcoins from uncolored currency into colored coins by adding a label that has a special meaning. For example, a label could represent stock certificates, coupons, real property, commodities, or collectible tokens. It is entirely up to the users of colored coins to assign and interpret the meaning of the "color" associated with specific coins. To color the coins, the user defines the associated metadata, such as the type of issuance, whether it can be subdivided into smaller units, a symbol and description, and other related information. Once colored, these coins can be bought and sold, subdivided, and aggregated, and receive dividend payments. The colored coins can also be "uncolored" by removing the special association and redeemed for their face value in bitcoin.
2014-10-31 14:31:10 +00:00
2014-11-05 17:17:50 +00:00
To demonstrate the use of colored coins, we have created a set of 20 colored coins with symbol "MasterBTC" that represent coupons for a free copy of this book shown in <<example_9-1>>. Each unit of MasterBTC, represented by these colored coins, can now be sold or given to any bitcoin user with a colored-coin-capable wallet, who can then transfer them to others or redeem them with the issuer for a free copy of the book. This example of colored coins can be seen https://cpr.sm/FoykwrH6UY[here].
2014-10-31 14:31:10 +00:00
2014-11-05 17:17:50 +00:00
[[example_9-1]]
2014-10-31 14:31:10 +00:00
.The metadata profile of the colored coins recorded as a coupon for a free copy of the book
====
[source,json]
----
{
"source_addresses": [
"3NpZmvSPLmN2cVFw1pY7gxEAVPCVfnWfVD"
],
"contract_url": "https://www.coinprism.info/asset/3NpZmvSPLmN2cVFw1pY7gxEAVPCVfnWfVD",
"name_short": "MasterBTC",
"name": "Free copy of \"Mastering Bitcoin\"",
"issuer": "Andreas M. Antonopoulos",
"description": "This token is redeemable for a free copy of the book \"Mastering Bitcoin\"",
"description_mime": "text/x-markdown; charset=UTF-8",
"type": "Other",
"divisibility": 0,
"link_to_website": false,
"icon_url": null,
"image_url": null,
"version": "1.0"
}
----
====
==== Mastercoin
2014-11-21 05:10:57 +00:00
((("meta-coin platforms","mastercoin protocol")))Mastercoin is a protocol layer on top of bitcoin that supports a platform for various applications extending the bitcoin system. Mastercoin uses the currency MST as a token for conducting Mastercoin transactions but it is not primarily a currency. Rather, it is a platform for building other things, such as user currencies, smart property tokens, de-centralized asset exchanges, and contracts. Think of Mastercoin as an application-layer protocol on top of bitcoin's financial transaction transport layer, just like HTTP runs on top of TCP.
2014-10-31 14:31:10 +00:00
2014-11-12 21:35:31 +00:00
Mastercoin operates primarily through transactions sent to and from a special bitcoin address called the((("exodus addresses"))) "exodus" address (+1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P+), just like HTTP uses a specific TCP port (port 80) to differentiate its traffic from the rest of the TCP traffic. The Mastercoin protocol is gradually transitioning from using the specialized exodus address and multi-signatures to using the OP_RETURN bitcoin operator to encode transaction metadata.
2014-10-31 14:31:10 +00:00
==== Counterparty
2014-11-21 05:10:57 +00:00
((("meta coin platforms","counterparty protocol")))Counterparty is another protocol layer implemented on top of bitcoin. Counterparty enables user currencies, tradable tokens, financial instruments, decentralized asset exchanges, and other features. Counterparty is implemented primarily using the +OP_RETURN+ operator in bitcoin's scripting language to record metadata that enhances bitcoin transactions with additional meaning. Counterparty uses the currency XCP as a token for conducting Counterparty transactions.(((range="endofrange", startref="ix_ch09-asciidoc0")))
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
=== Alt Coins
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
((("alt coins", id="ix_ch09-asciidoc1", range="startofrange")))((("currencies, alternative", id="ix_ch09-asciidoc2", range="startofrange")))The vast majority of alt coins are derived from bitcoin's source code, also known as "forks." Some are implemented "from scratch" based on the blockchain model but without using any of bitcoin's source code. Alt coins and alt chains (in the next section) are both separate implementations of blockchain technology and both forms use their own blockchain. The difference in the terms is to indicate that alt coins are primarily used as currency, whereas alt chains are used for other purposes, not primarily currency.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Strictly speaking, the first major "alt" fork of bitcoin's code was not an alt coin but the alt chain _Namecoin_, which we will discuss in the next section.
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Based on the date of announcement, the first alt coin that was a fork of bitcoin appeared in August 2011; it was called _IXCoin_. IXCoin modified a few of the bitcoin parameters, specifically accelerating the creation of currency by increasing the reward to 96 coins per block.
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
In September 2011, _Tenebrix_ was launched. Tenebrix was the first cryptocurrency to implement an alternative proof-of-work algorithm, namely((("proof-of-work algorithm","alternative")))((("scrypt algorithm"))) _scrypt_, an algorithm originally designed for password stretching (brute-force resistance). The stated goal of Tenebrix was to make a coin that was resistant to mining with GPUs and ASICs, by using a memory-intensive algorithm. Tenebrix did not succeed as a currency, but it was the basis for Litecoin, which has enjoyed great success and has spawned hundreds of clones.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
_Litecoin_, in addition to using scrypt as the proof-of-work algorithm, also implemented a faster block-generation time, targeted at 2.5 minutes instead of bitcoin's 10 minutes. The resulting currency is touted as "silver to bitcoin's gold" and is intended as a light-weight alternative currency. Due to the faster confirmation time and the 84 million total currency limit, many adherents of Litecoin believe it is better suited for retail transactions than bitcoin.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Alt coins continued to proliferate in 2011 and 2012, either based on bitcoin or on Litecoin.By 2013, there were 20 alt coins vying for position in the market. By the end of 2013, this number had exploded to 200, with 2013 quickly becoming the "year of the alt coins." The growth of alt coins continued in 2014, with more than 500 alt coins in existence at the time of writing. More than half the alt coins today are clones of Litecoin.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Creating an alt coin is easy, which is why there are now more than 500 of them. Most of the alt coins differ very slightly from bitcoin and do not offer anything worth studying. Many are in fact just attempts to enrich their creators. Among the copycats and pump-and-dump schemes, there are, however, some notable exceptions and very important innovations. These alt coins take radically different approaches or add significant innovation to bitcoin's design pattern. There are three primary areas where these alt coins differentiate from bitcoin:
2014-10-31 14:31:10 +00:00
* Different monetary policy
2014-11-18 20:21:41 +00:00
* Different proof of work or consensus mechanism
2014-10-31 14:31:10 +00:00
* Specific features, such as strong anonymity
2014-11-18 20:21:41 +00:00
For more information, see this http://mapofcoins.com[graphical timeline of alt coins and alt chains].((("alt chains","timeline of")))((("alt coins","timeline of")))
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
==== Evaluating an Alt Coin
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
((("alt coins","evaluating")))((("currencies, alternative","evaluating")))With so many alt coins out there, how does one decide which ones are worthy of attention? Some alt coins attempt to achieve broad distribution and use as currencies. Others are laboratories for experimenting on different features and monetary models. Many are just get-rich-quick schemes by their creators. To evaluate alt coins, I look at their defining characteristics and their market metrics.
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Here are some questions to ask about how well an alt coin differentiates from bitcoin:
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
* Does the alt coin introduce a significant innovation?
2014-10-31 14:31:10 +00:00
* Is the difference compelling enough to attract users away from bitcoin?
2014-11-18 20:21:41 +00:00
* Does the alt coin address an interesting niche market or application?
* Can the alt coin attract enough miners to be secured against consensus attacks?
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
Here are some of the key financial and market metrics to consider:
2014-10-31 14:31:10 +00:00
2014-11-18 20:21:41 +00:00
* What is the total market capitalization of alt coin?
* How many estimated users/wallets does the alt coin have?
* How many merchants accept the alt coin?
2014-11-18 20:22:42 +00:00
* How many daily transactions (volume) are executed on the alt coin?
2014-10-31 14:31:10 +00:00
* How much value is transacted daily?
2014-11-18 20:22:42 +00:00
In this chapter, we will concentrate primarily on the technical characteristics and innovation potential of alt coins represented by the first set of questions.
2014-10-31 14:31:10 +00:00
==== Monetary Parameter Alternatives: Litecoin, Dogecoin, Freicoin
2014-11-18 20:22:42 +00:00
((("alt coins","monetary parameter alternatives")))((("currencies, alternative","monetary parameter alternatives")))((("monetary parameter alternatives")))Bitcoin has a few monetary parameters that give it distinctive characteristics of a deflationary fixed-issuance currency. It is limited to 21 million major currency units (or 21 quadrillion minor units), it has a geometrically declining issuance rate, and it has a 10-minute block "heartbeat," which controls the speed of transaction confirmation and currency generation. Many alt coins have tweaked the primary parameters to achieve different monetary policies. Among the hundreds of alt coins, some of the most notable examples include the following.
2014-10-31 14:31:10 +00:00
2014-11-18 20:24:01 +00:00
===== Litecoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
One of the first alt coins, released in 2011, Litecoin is the second most successful digital currency after bitcoin. Its primary innovations were the use of _scrypt_ as the proof-of-work algorithm (inherited from Tenebrix) and its faster/lighter currency parameters.
2014-10-31 14:31:10 +00:00
* Block generation time: 2.5 minutes
* Total currency: 84 million coins by 2140
2014-11-18 20:24:01 +00:00
* Consensus algorithm: Scrypt proof of work
* Market capitalization: $160 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:24:01 +00:00
===== Dogecoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Dogecoin was released in December 2013, based on a fork of Litecoin. Dogecoin is notable because it has a monetary policy of rapid issuance and a very high currency cap, to encourage spending and tipping. Dogecoin is also notable because it was started as a joke but became quite popular, with a large and active community, before declining rapidly in 2014.
2014-10-31 14:31:10 +00:00
* Block generation time: 60 seconds
* Total currency: 100,000,000,000 (100 billion) Doge by 2015
2014-11-18 20:24:29 +00:00
* Consensus algorithm: Scrypt proof of work
* Market capitalization: $12 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:24:29 +00:00
===== Freicoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Freicoin was introduced in July 2012. It is a((("demurrage currency"))) _demurrage currency_, meaning it has a negative interest rate for stored value. Value stored in Freicoin is assessed a 4.5% APR fee, to encourage consumption and discourage hoarding of money. Freicoin is notable in that it implements a monetary policy that is the exact opposite of Bitcoin's deflationary policy. Freicoin has not seen success as a currency, but it is an interesting example of the variety of monetary policies that can be expressed by alt coins.
2014-10-31 14:31:10 +00:00
* Block generation: 10 minutes
* Total currency: 100 million coins by 2140
2014-11-18 20:24:58 +00:00
* Consensus algorithm: SHA256 proof of work
* Market capitalization: $130,000 in mid-2014
2014-10-31 14:31:10 +00:00
==== Consensus Innovation: Peercoin, Myriad, Blackcoin, Vericoin, NXT
2014-11-21 05:10:57 +00:00
((("alt coins","consensus innovation")))((("consensus","innovation")))Bitcoin's consensus mechanism is based on proof of work using the SHA256 algorithm. The first alt coins introduced scrypt as an alternative proof-of-work algorithm, as a way to make mining more CPU-friendly and less susceptible to centralization with ASICs. Since then, innovation in the consensus mechanism has continued at a frenetic pace. Several alt coins adopted a variety of algorithms such as scrypt,((("Blake algorithm")))((("Groestl algorithm")))((("scrypt-N algorithm")))((("SHA3 algorithm")))((("Skein algorithm"))) scrypt-N, Skein, Groestl, SHA3, X11, Blake, and others. Some alt coins combined multiple algorithms for proof of work. In 2013, we saw the invention of an alternative to proof of work, called((("proof of stake"))) _proof of stake_, which forms the basis of many modern alt coins.
2014-10-31 14:31:10 +00:00
2014-11-18 20:26:52 +00:00
Proof of stake is a system by which existing owners of a currency can "stake" currency as interest-bearing collateral. Somewhat like a certificate of deposit (CD), participants can reserve a portion of their currency holdings, while earning an investment return in the form of new currency (issued as interest payments) and transaction fees.
2014-10-31 14:31:10 +00:00
2014-11-18 20:28:39 +00:00
===== Peercoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Peercoin was introduced in August 2012 and is the first alt coin to use a hybrid proof-of-work and proof-of-stake algorithm to issue new currency.
2014-10-31 14:31:10 +00:00
* Block generation: 10 minutes
* Total currency: No limit
2014-11-18 20:29:06 +00:00
* Consensus algorithm: (Hybrid) proof-of-stake with initial proof-of-work
2014-11-18 20:29:38 +00:00
* Market capitalization: $14 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:28:39 +00:00
===== Myriad
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Myriad was introduced in February 2014 and is notable because it uses five different proof-of-work algorithms (SHA256d, Scrypt, Qubit, Skein, or Myriad-Groestl) simultaneously, with difficulty varying for each algorithm depending on miner participation. The intent is to make Myriad immune to ASIC specialization and centralization as well as much more resistant to consensus attacks, because multiple mining algorithms would have to be attacked simultaneously.
2014-10-31 14:31:10 +00:00
2014-11-18 20:29:55 +00:00
* Block generation: 30-second average (2.5 minutes target per mining algorithm)
2014-10-31 14:31:10 +00:00
* Total currency: 2 billion by 2024
2014-11-18 20:29:55 +00:00
* Consensus algorithm: Multi-algorithm proof-of-work
* Market capitalization: $120,000 in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:30:34 +00:00
===== Blackcoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Blackcoin was introduced in February 2014 and uses a proof-of-stake consensus algorithm. It is also notable for introducing "multipools," a type of mining pool that can switch between different alt coins automatically, depending on profitability.
2014-10-31 14:31:10 +00:00
* Block generation: 1 minute
* Total currency: No limit
2014-11-18 20:32:40 +00:00
* Consensus algorithm: Proof-of-stake
* Market capitalization: $3.7 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:32:40 +00:00
===== VeriCoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
VeriCoin was launched in May 2014. It uses a proof-of-stake consensus algorithm with a variable interest rate that dynamically adjusts based on market forces of supply and demand. It also is the first alt coin featuring auto-exchange to bitcoin for payment in bitcoin from the wallet.
2014-10-31 14:31:10 +00:00
* Block generation: 1 minute
* Total currency: No limit
2014-11-18 20:32:40 +00:00
* Consensus algorithm: Proof-of-stake
* Market capitalization: $1.1 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:32:40 +00:00
===== NXT
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
NXT (pronounced "Next") is a "pure" proof-of-stake alt coin, in that it does not use proof-of-work mining. NXT is a from-scratch implementation of a cryptocurrency, not a fork of bitcoin or any other alt coins. NXT implements many advanced features, including a name registry (similar to((("Namecoin"))) Namecoin), a decentralized asset exchange (similar to Colored Coins), integrated decentralized and secure messaging (similar to((("Bitmessage"))) Bitmessage), and stake delegation (to delegate proof-of-stake to others). NXT adherents call it a "next-generation" or 2.0 cryptocurrency.
2014-10-31 14:31:10 +00:00
* Block generation: 1 minute
* Total currency: No limit
2014-11-18 20:34:10 +00:00
* Consensus algorithm: Proof-of-stake
* Market capitalization: $30 million in mid-2014
2014-10-31 14:31:10 +00:00
==== Dual-Purpose Mining Innovation: Primecoin, Curecoin, Gridcoin
2014-11-18 20:38:12 +00:00
((("dual-purpose mining")))((("mining","dual-purpose")))Bitcoin's proof-of-work algorithm has just one purpose: securing the bitcoin network. Compared to traditional payment system security, the cost of mining is not very high. However, it has been criticized by many as being “wasteful." The next generation of alt coins attempt to address this concern. Dual-purpose proof-of-work algorithms solve a specific "useful" problem, while producing proof of work to secure the network. The risk of adding an external use to the currency's security is that it also adds external influence to the supply/demand curve.
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Primecoin
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
Primecoin was announced in July 2013. Its proof-of-work algorithm searches for prime numbers, computing((("bi-twin prime chains")))((("Cunningham prime chains"))) Cunningham and bi-twin prime chains. Prime numbers are useful in a variety of scientific disciplines. The Primecoin blockchain contains the discovered prime numbers, thereby producing a public record of scientific discovery in parallel to the public ledger of transactions.
2014-10-31 14:31:10 +00:00
* Block generation: 1 minute
* Total currency: No limit
2014-11-18 20:38:12 +00:00
* Consensus algorithm: Proof of work with prime number chain discovery
* Market capitalization: $1.3 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Curecoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
((("protein folding algorithms")))Curecoin was announced in May 2013. It combines a SHA256 proof-of-work algorithm with protein-folding research through the Folding@Home project. Protein folding is a computationally intensive simulation of biochemical interactions of proteins, used to discover new drug targets for curing diseases.
2014-10-31 14:31:10 +00:00
* Block generation: 10 minutes
* Total currency: No limit
2014-11-18 20:38:17 +00:00
* Consensus algorithm: Proof of work with protein-folding research
2014-11-18 20:38:12 +00:00
* Market capitalization: $58,000 in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Gridcoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Gridcoin was introduced in October 2013. It supplements scrypt-based proof of work with subsidies for participation in((("BOINC open grid computing"))) BOINC open grid computing. BOINC—Berkeley Open Infrastructure for Network Computing—is an open protocol for scientific research grid computing, which allows participants to share their spare computing cycles for a broad range of academic research computing. Gridcoin uses BOINC as a general-purpose computing platform, rather than to solve specific science problems such as prime numbers or protein folding.
2014-10-31 14:31:10 +00:00
* Block generation: 150 seconds
* Total currency: No limit
2014-11-18 20:39:57 +00:00
* Consensus algorithm: Proof-of-work with BOINC grid computing subsidy
* Market capitalization: $122,000 in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:39:57 +00:00
==== Anonymity-Focused Alt Coins: CryptoNote, Bytecoin, Monero, Zerocash/Zerocoin, Darkcoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
((("alt coins","anonymity focused", id="ix_ch09-asciidoc3", range="startofrange")))((("currencies, alternative","anonymity focused", id="ix_ch09-asciidoc4", range="startofrange")))Bitcoin is often mistakenly characterized as "anonymous" currency. In fact, it is relatively easy to connect identities to bitcoin addresses and, using big-data analytics, connect addresses to each other to form a comprehensive picture of someone's bitcoin spending habits. Several alt coins aim to address this issue directly by focusing on strong anonymity. The first such attempt is most likely _Zerocoin_, a meta-coin protocol for preserving anonymity on top of bitcoin, introduced with a paper at the 2013 IEEE Symposium on Security and Privacy. Zerocoin will be implemented as a completely separate alt coin called Zerocash, in development at time of writing. An alternative approach to anonymity was launched with _CryptoNote_ in a paper published in October 2013. CryptoNote is a foundational technology that is implemented by a number of alt coin forks discussed next. In addition to Zerocash and CryptoNotes, there are several other independent anonymous coins, such as Darkcoin, that use stealth addresses or transaction re-mixing to deliver anonymity.
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Zerocoin/Zerocash
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Zerocoin is a theoretical approach to digital currency anonymity introduced in 2013 by researchers at Johns Hopkins. Zerocash is an alt-coin implementation of Zerocoin that is in development and not yet released.
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== CryptoNote
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
CryptoNote is a reference implementation alt coin that provides the basis for anonymous digital cash. It was introduced in October 2013. It is designed to be forked into different implementations and has a built-in periodic reset mechanism that makes it unusable as a currency itself. Several alt coins have been spawned from CryptoNote, including Bytecoin (BCN), Aeon (AEON), Boolberry (BBR), duckNote (DUCK), Fantomcoin (FCN), Monero (XMR), MonetaVerde (MCN), and Quazarcoin (QCN). CryptoNote is also notable for being a complete ground-up implementation of a crypto-currency, not a fork of bitcoin.
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Bytecoin
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
((("Application Specific Integrated Circuit (ASIC)")))((("Graphical Processing Units (GPUs)")))Bytecoin was the first implementation spawned from CryptoNote, offering a viable anonymous currency based on the CryptoNote technology. Bytecoin was launched in July 2012. Note that there was a previous alt coin named Bytecoin with currency symbol BTE, whereas the CryptoNote-derived Bytecoin has the currency symbol BCN. Bytecoin uses the Cryptonight proof-of-work algorithm, which requires access to at least 2 MB of RAM per instance, making it unsuitable for GPU or ASIC mining. Bytecoin inherits ring signatures, unlinkable transactions, and blockchain analysisresistant anonymity from CryptoNote.
2014-10-31 14:31:10 +00:00
* Block generation: 2 minutes
* Total currency: 184 billion BCN
2014-11-18 20:42:06 +00:00
* Consensus algorithm: Cryptonight proof of work
* Market capitalization: $3 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Monero
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Monero is another implementation of CryptoNote. It has a slightly flatter issuance curve than Bytecoin, issuing 80% of the currency in the first four years. It offers the same anonymity features inherited from CryptoNote.
2014-10-31 14:31:10 +00:00
* Block generation: 1 minute
* Total currency: 18.4 million XMR
2014-11-18 20:43:59 +00:00
* Consensus algorithm: Cryptonight proof of work
* Market capitalization: $5 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-18 20:38:12 +00:00
===== Darkcoin
2014-10-31 14:31:10 +00:00
2014-11-21 05:10:57 +00:00
Darkcoin was launched in January 2014. Darkcoin implements anonymous currency using a re-mixing protocol for all transactions called DarkSend. Darkcoin is also notable for using 11 rounds of different hash functions((("proof-of-work algorithm","for Darkcoin"))) (blake, bmw, groestl, jh, keccak, skein, luffa, cubehash, shavite, simd, echo) for the proof-of-work algorithm.
2014-10-31 14:31:10 +00:00
* Block generation: 2.5 minutes
2014-11-18 20:43:59 +00:00
* Total currency: Maximum 22 million DRK
* Consensus algorithm: Multi-algorithm multi-round proof of work
* Market capitalization: $19 million in mid-2014(((range="endofrange", startref="ix_ch09-asciidoc4")))(((range="endofrange", startref="ix_ch09-asciidoc3")))(((range="endofrange", startref="ix_ch09-asciidoc2")))(((range="endofrange", startref="ix_ch09-asciidoc1")))
2014-10-31 14:31:10 +00:00
2014-11-18 20:43:59 +00:00
=== Noncurrency Alt Chains
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
((("chains, alternative","noncurrency", id="ix_ch09-asciidoc5", range="startofrange")))((("non-currency alt chains", id="ix_ch09-asciidoc6", range="startofrange")))Alt chains are alternative implementations of the blockchain design pattern, which are not primarily used as currency. Many include a currency, but the currency is used as a token for allocating something else, such as a resource or a contract. The currency, in other words, is not the main point of the platform; it is a secondary feature.
2014-10-31 14:31:10 +00:00
==== Namecoin
2014-11-21 13:08:32 +00:00
Namecoin was the first fork of the bitcoin code. Namecoin is a decentralized key-value registration and transfer platform using a blockchain. It supports a global domain-name registry similar to the domain-name registration system on the Internet. Namecoin is currently used as an alternative((("domain name service (DNS)"))) domain name service (DNS) for the root-level domain +.bit+. Namecoin also can be used to register names and key-value pairs in other namespaces; for storing things like email addresses, encryption keys, SSL certificates, file signatures, voting systems, stock certificates; and a myriad of other applications.
2014-10-31 14:31:10 +00:00
2014-11-18 20:49:03 +00:00
The Namecoin system includes the Namecoin currency (symbol NMC), which is used to pay transaction fees for registration and transfer of names. At current prices, the fee to register a name is 0.01 NMC or approximately 1 US cent. As in bitcoin, the fees are collected by namecoin miners.
2014-10-31 14:31:10 +00:00
Namecoin's basic parameters are the same as bitcoin's:
* Block generation: 10 minutes
* Total currency: 21 million NMC by 2140
2014-11-18 20:49:03 +00:00
* Consensus algorithm: SHA256 proof of work
* Market capitalization: $10 million in mid-2014
2014-10-31 14:31:10 +00:00
2014-11-21 13:22:03 +00:00
Namecoin's namespaces are not restricted, and anyone can use any namespace in any way. However, certain namespaces have an agreed-upon specification so that when it is read from the blockchain, application-level software knows how to read and proceed from there. If it is malformed, then whatever software you used to read from the specific namespace will throw an error. Some of the popular namespaces are:
2014-10-31 14:31:10 +00:00
* +d/+ is the domain-name namespace for +.bit+ domains
2014-11-18 20:49:03 +00:00
* +id/+ is the namespace for storing person identifiers such as email addresses, PGP keys, and so on
2014-10-31 14:38:32 +00:00
* +u/+ is an additional, more structured specification to store identities (based on openspecs)
2014-10-31 14:31:10 +00:00
2014-11-21 13:08:32 +00:00
((("blockchains","Namecoin")))The Namecoin client is very similar to Bitcoin Core, because it is derived from the same source code. Upon installation, the client will download a full copy of the Namecoin blockchain and then will be ready to query and register names. There are three main commands: ((("Namecoin","commands")))
2014-10-31 14:31:10 +00:00
2014-11-05 17:18:28 +00:00
+name_new+:: Query or preregister a name
+name_firstupdate+:: Register a name and make the registration public
+name_update+:: Change the details or refresh a name registration
2014-10-31 14:31:10 +00:00
For example, to register the domain +mastering-bitcoin.bit+, we use the command +name_new+ as follows:
[source,bash]
----
$ namecoind name_new d/mastering-bitcoin
----
[source,json]
----
[
"21cbab5b1241c6d1a6ad70a2416b3124eb883ac38e423e5ff591d1968eb6664a",
"a05555e0fc56c023"
]
----
2014-11-21 13:08:32 +00:00
The +name_new+ command registers a claim on the name, by creating a hash of the name with a random key. The two strings returned by +name_new+ are the hash and the random key (+a05555e0fc56c023+ in the preceding example) that can be used to make the name registration public. Once that claim has been recorded on the Namecoin blockchain it can be converted to a public registration with the +name_firstupdate+ command, by supplying the random key:
2014-10-31 14:31:10 +00:00
----
$ namecoind name_firstupdate d/mastering-bitcoin a05555e0fc56c023 "{"map": {"www": {"ip":"1.2.3.4"}}}}"
b7a2e59c0a26e5e2664948946ebeca1260985c2f616ba579e6bc7f35ec234b01
----
2014-10-31 14:38:32 +00:00
This example will map the domain name +www.mastering-bitcoin.bit+ to IP address 1.2.3.4. The hash returned is the transaction ID that can be used to track this registration. You can see what names are registered to you by running the +name_list+ command:
2014-10-31 14:31:10 +00:00
----
$ namecoind name_list
----
====
[source,json]
----
[
{
"name" : "d/mastering-bitcoin",
"value" : "{map: {www: {ip:1.2.3.4}}}}",
"address" : "NCccBXrRUahAGrisBA1BLPWQfSrups8Geh",
"expires_in" : 35929
}
]
----
====
2014-11-21 05:10:57 +00:00
Namecoin registrations need to be updated every 36,000 blocks (approximately 200 to 250 days). The +name_update+ command has no fee and therefore renewing domains in Namecoin is free. Third-party providers can handle registration, automatic renewal, and updating via a web interface, for a small fee. With a third-party provider you avoid the need to run a Namecoin client, but you lose the independent control of a decentralized name registry offered by Namecoin.
2014-10-31 14:31:10 +00:00
==== Bitmessage
2014-11-21 05:10:57 +00:00
((("messages, sending in blockchain")))Bitmessage is a bitcoin alt chain that implements a decentralized secure messaging service, essentially a server-less encrypted email system. Bitmessage allows users to compose and send messages to each other, using a Bitmessage address. The messages operate in much the same way as a bitcoin transaction, but they are transient—they do not persist beyond two days and if not delivered to the destination node in that time, they are lost. Senders and recipients are pseudonymous—they have no identifiers other than a bitmessage address—but are strongly authenticated, meaning that messages cannot be "spoofed." Bitmessages are encrypted to the recipient and therefore the Bitmessage network is resistant to holistic surveillance—an eavesdropper has to compromise the recipient's device in order to intercept messages.
2014-10-31 14:31:10 +00:00
==== Ethereum
2014-11-21 13:08:32 +00:00
((("contracts, in Ethereum")))Ethereum is a Turing-complete contract processing and execution platform based on a blockchain ledger. It is not a clone of Bitcoin, but a completely independent design and implementation. Ethereum has a built-in currency, called _ether_, which is required in order to pay for contract execution. Ethereum's blockchain records _contracts_, which are expressed in a low-level, byte codelike, Turing-complete language. Essentially, a contract is a program that runs on every node in the Ethereum system. Ethereum contracts can store data, send and receive ether payments, store ether, and execute an infinite range (hence Turing-complete) of computable actions, acting as decentralized autonomous software agents.
2014-10-31 14:31:10 +00:00
2014-11-18 20:49:03 +00:00
Ethereum can implement quite complex systems that are otherwise implemented as alt chains themselves. For example, the following is a Namecoin-like name registration contract written in Ethereum (or more accurately, written in a high-level language that can be compiled to Ethereum code): (((range="endofrange", startref="ix_ch09-asciidoc6")))(((range="endofrange", startref="ix_ch09-asciidoc5")))
2014-10-31 14:31:10 +00:00
[source,python]
----
if !contract.storage[msg.data[0]]: # Is the key not yet taken?
# Then take it!
contract.storage[msg.data[0]] = msg.data[1]
return(1)
else:
return(0) // Otherwise do nothing
----
=== Future of Currencies
2014-11-21 13:08:32 +00:00
The future of cryptographic currencies overall is even brighter than the future of bitcoin. Bitcoin introduced a completely new form of decentralized organization and consensus that has spawned hundreds of incredible innovations. These inventions will likely affect broad sectors of the economy, from distributed systems science to finance, economics, currencies, central banking, and corporate governance. Many human activities that previously required centralized institutions or organizations to function as authoritative or trusted points of control can now be decentralized. The invention of the blockchain and consensus system will significantly reduce the cost of organization and coordination on large-scale systems, while removing opportunities for concentration of power, corruption, and regulatory capture.