Compare versions
Version 2 → Version 3. Removed · Added. This shows the entry's text as it is written, including its formatting marks.
Version 2 · Version 3 · Version history
Side by side · Together
Version 2Version 3
16 unchanged paragraphs
A blockchain is a shared ledger in which transactions are grouped into blocks and each block is cryptographically linked to the one before it, so that earlier records cannot be altered without leaving evidence.[2]
A blockchain is a shared ledger in which transactions are grouped into blocks and each block is cryptographically linked to the one before it, so that earlier records cannot be altered without leaving evidence.[2]
## What it is
## What it is
The U.S. National Institute of Standards and Technology (NIST) describes blockchains as "tamper evident and tamper resistant digital ledgers implemented in a distributed fashion", usually with no central authority such as a bank, company or government.[2] Its informal definition is that blockchains are distributed digital ledgers of cryptographically signed transactions, grouped into blocks. Each block is linked to the previous one after validation and a consensus decision (an agreement among participants on what the next block is). The link makes the chain tamper evident, and as new blocks are added, older ones become harder to modify.[2]
The U.S. National Institute of Standards and Technology (NIST) describes blockchains as "tamper evident and tamper resistant digital ledgers implemented in a distributed fashion", usually with no central authority such as a bank, company or government.[2] Its informal definition is that blockchains are distributed digital ledgers of cryptographically signed transactions, grouped into blocks. Each block is linked to the previous one after validation and a consensus decision (an agreement among participants on what the next block is). The link makes the chain tamper evident, and as new blocks are added, older ones become harder to modify.[2]
In NIST's account, each block has a header holding metadata about the block, plus the block's data, which is a set of transactions. Every header except the first block's contains a cryptographic link to the previous block's header.[2] In Bitcoin, the header stores the hash of the previous block's header (a hash is a fixed-length fingerprint computed from data) and a value called the Merkle root (see [Merkle tree](/t/3376/merkle-tree)), which summarises all the block's transactions.[4] The Bitcoin developer documentation spells the term as two words, "block chain", and describes it as an ordered and timestamped record of transactions that each full node keeps its own copy of.[4]
In NIST's account, each block has a header holding metadata about the block, plus the block's data, which is a set of transactions. Every header except the first block's contains a cryptographic link to the previous block's header.[2] In Bitcoin, the header stores the hash of the previous block's header (a hash is a fixed-length fingerprint computed from data) and a value called the Merkle root (see [Merkle tree](/t/3376/merkle-tree)), which summarises all the block's transactions.[4] The Bitcoin developer documentation spells the term as two words, "block chain", and describes it as an ordered and timestamped record of transactions that each full node keeps its own copy of.[4]
The word "blockchain" is a later name for the design. The 2008 paper that introduced Bitcoin describes a "chain" of blocks, hashes and proof-of-work, and the searchable text of the paper does not contain the word "blockchain".[1]
The word "blockchain" is a later name for the design. The 2008 paper that introduced Bitcoin describes a "chain" of blocks, hashes and proof-of-work, and the searchable text of the paper does not contain the word "blockchain".[1]
## Origins
## Origins
NIST traces the core ideas to the late 1980s and early 1990s. It names a 1991 use of a signed chain of information as an electronic ledger, built so that it could easily show none of the signed documents in the collection had been changed, and says these concepts were combined and applied to electronic cash in 2008 in the Bitcoin paper.[2]
NIST traces the core ideas to the late 1980s and early 1990s. It names a 1991 use of a signed chain of information as an electronic ledger, built so that it could easily show none of the signed documents in the collection had been changed, and says these concepts were combined and applied to electronic cash in 2008 in the Bitcoin paper.[2]
One of the time-stamping papers the Bitcoin paper cites is Stuart Haber and W. Scott Stornetta's "How to Time-Stamp a Digital Document" (Journal of Cryptology, volume 3, 1991).[1][3] It proposed procedures for time-stamping a document so that it is infeasible to back-date or forward-date it, even with the collusion of a time-stamping service.[3] One of its two schemes, called linking, includes bits from earlier time-stamp requests in each signed certificate, which shows a time-stamp occurred after those requests.[3]
One of the time-stamping papers the Bitcoin paper cites is Stuart Haber and W. Scott Stornetta's "How to Time-Stamp a Digital Document" (Journal of Cryptology, volume 3, 1991).[1][3] It proposed procedures for time-stamping a document so that it is infeasible to back-date or forward-date it, even with the collusion of a time-stamping service.[3] One of its two schemes, called linking, includes bits from earlier time-stamp requests in each signed certificate, which shows a time-stamp occurred after those requests.[3]
The Bitcoin paper's section on a "timestamp server" works the same way: it takes a hash of a block of items to be timestamped and publishes it, and "each timestamp includes the previous timestamp in its hash, forming a chain". The paper cites four earlier time-stamping papers for the idea, including Haber and Stornetta's.[1]
The Bitcoin paper's section on a "timestamp server" works the same way: it takes a hash of a block of items to be timestamped and publishes it, and "each timestamp includes the previous timestamp in its hash, forming a chain". The paper cites four earlier time-stamping papers for the idea, including Haber and Stornetta's.[1]
## How a public blockchain adds a block
## How a public blockchain adds a block
The Bitcoin paper lists the steps that run the network. New transactions are broadcast to all nodes. Each node collects them into a block and works on finding a proof-of-work for it. When a node finds one, it broadcasts the block, and other nodes accept it only if its transactions are valid and not already spent. They show acceptance by working on the next block, using the accepted block's hash as the previous hash.[1] For the proof-of-work, the node scans for a value, by changing a nonce in the block, such that the block's hash begins with a required number of zero bits. The work is costly to do but a single hash can verify it.[1] See [Proof of work](/t/3595/proof-of-work) and [Mining difficulty](/t/3607/mining-difficulty).
The Bitcoin paper lists the steps that run the network. New transactions are broadcast to all nodes. Each node collects them into a block and works on finding a proof-of-work for it. When a node finds one, it broadcasts the block, and other nodes accept it only if its transactions are valid and not already spent. They show acceptance by working on the next block, using the accepted block's hash as the previous hash.[1] For the proof-of-work, the node scans for a value, by changing a nonce in the block, such that the block's hash begins with a required number of zero bits. The work is costly to do but a single hash can verify it.[1] See [Proof of work](/t/3595/proof-of-work) and [Mining difficulty](/t/3607/mining-difficulty).
If two nodes broadcast different next blocks at the same moment, nodes work on whichever they received first and keep the other branch in case it becomes longer. The tie breaks when one branch grows longer, and nodes switch to it.[1] The Bitcoin developer documentation calls the blocks left behind stale blocks, and says peers follow the most difficult chain to recreate.[4] Block height, the number of blocks since the first (genesis) block, is not a unique identifier, because forks can produce several blocks at one height.[4]
If two nodes broadcast different next blocks at the same moment, nodes work on whichever they received first and keep the other branch in case it becomes longer. The tie breaks when one branch grows longer, and nodes switch to it.[1] The Bitcoin developer documentation calls the blocks left behind stale blocks, and says peers follow the most difficult chain to recreate.[4] Block height, the number of blocks since the first (genesis) block, is not a unique identifier, because forks can produce several blocks at one height.[4]
## Permissionless and permissioned networks
## Permissionless and permissioned networks
NIST sorts blockchain networks by who may publish blocks. In a permissionless network, anyone can read and write to the ledger without authorisation. In a permissioned one, only particular people or organisations may publish blocks, which NIST compares to a controlled corporate intranet, in contrast to the public internet.[2] Permissionless networks typically use consensus models, such as proof of work or proof of stake, that require users to spend or hold resources to publish blocks, and they usually reward publishers with a native cryptocurrency. Consensus in permissioned networks is usually faster and less computationally expensive.[2]
NIST sorts blockchain networks by who may publish blocks. In a permissionless network, anyone can read and write to the ledger without authorisation. In a permissioned one, only particular people or organisations may publish blocks, which NIST compares to a controlled corporate intranet, in contrast to the public internet.[2] Permissionless networks typically use consensus models, such as proof of work or proof of stake, that require users to spend or hold resources to publish blocks, and they usually reward publishers with a native cryptocurrency. Consensus in permissioned networks is usually faster and less computationally expensive.[2]
## Forks
## Forks
NIST uses the word fork for a change to a blockchain's software that splits the network when not everyone adopts it. A soft fork is backwards compatible: nodes that have not updated can still transact with those that have. A hard fork is not, so all nodes must upgrade or they will reject the newly formatted blocks, and the result can be two versions of the blockchain existing side by side whose users cannot interact.[2] NIST's example of a Bitcoin soft fork is a 2014 proposal to repurpose an unused operation code (OP_NOP2) as CHECKLOCKTIMEVERIFY, which lets a transaction output become spendable only at a future point; nodes that did not support the change still treated such transactions as valid.[2]
NIST uses the word fork for a change to a blockchain's software that splits the network when not everyone adopts it. A soft fork is backwards compatible: nodes that have not updated can still transact with those that have. A hard fork is not, so all nodes must upgrade or they will reject the newly formatted blocks, and the result can be two versions of the blockchain existing side by side whose users cannot interact.[2] NIST's example of a Bitcoin soft fork is a 2014 proposal to repurpose an unused operation code (OP_NOP2) as CHECKLOCKTIMEVERIFY, which lets a transaction output become spendable only at a future point; nodes that did not support the change still treated such transactions as valid.[2]
NIST's example of a hard fork is Ethereum in 2016. A smart contract called the Decentralized Autonomous Organization (DAO) contained flaws that let an attacker extract Ether worth $50 million. Ether holders voted on a hard fork that created a new version of the blockchain without the flaw and returned the stolen funds. The clear majority of support moved to the new fork, and the old one continued as Ethereum Classic.[2] NIST adds that when a cryptocurrency splits this way, holders have independent coins on both forks.[2] It also notes that "fork" is sometimes used for the temporary conflict when two blocks appear at the same height, which is not caused by a software change.[2]
NIST's example of a hard fork is Ethereum in 2016. A smart contract called the Decentralized Autonomous Organization (DAO) contained flaws that let an attacker extract Ether, which NIST reports as a theft of $50 million. Ether holders voted on a hard fork that created a new version of the blockchain without the flaw and returned the stolen funds. The clear majority of support moved to the new fork, and the old one continued as Ethereum Classic.[2] NIST adds that when a cryptocurrency splits this way, holders have independent coins on both forks.[2] It also notes that "fork" is sometimes used for the temporary conflict when two blocks appear at the same height, which is not caused by a software change.[2]
## Smart contracts
## Smart contracts
Some blockchains can run programs as well as record payments. NIST traces the term smart contract to 1994 and Nick Szabo, who defined it as "a computerized transaction protocol that executes the terms of a contract".[2] In NIST's description, a smart contract is a collection of code and data deployed through cryptographically signed transactions. Nodes in the network execute it, all must reach the same result, and the result is recorded on the blockchain. Not every blockchain can run smart contracts.[2]
Some blockchains can run programs as well as record payments. NIST traces the term smart contract to 1994 and Nick Szabo, who defined it as "a computerized transaction protocol that executes the terms of a contract".[2] In NIST's description, a smart contract is a collection of code and data deployed through cryptographically signed transactions. Nodes in the network execute it, all must reach the same result, and the result is recorded on the blockchain. Not every blockchain can run smart contracts.[2]
Because every node must get the same answer, smart contracts must be deterministic, and they cannot fetch outside data such as a web service's response by themselves. A contract that relies on information from outside its own system is said to use an "oracle".[2] On a permissionless network such as Ethereum, the user who sends a transaction to a smart contract pays for the cost of running it, and each call has an execution limit, which stops contracts that loop forever from consuming the publishing nodes' resources. Permissioned networks that run smart contracts, such as those built on Hyperledger Fabric's chaincode, may not charge users for execution because their participants are known.[2] NIST notes that a smart contract need not perform a financial function: its authors published an Ethereum contract that generates publicly verifiable random numbers.[2]
Because every node must get the same answer, smart contracts must be deterministic, and they cannot fetch outside data such as a web service's response by themselves. A contract that relies on information from outside its own system is said to use an "oracle".[2] On a permissionless network such as Ethereum, the user who sends a transaction to a smart contract pays for the cost of running it, and each call has an execution limit, which stops contracts that loop forever from consuming the publishing nodes' resources. Permissioned networks that run smart contracts, such as those built on Hyperledger Fabric's chaincode, may not charge users for execution because their participants are known.[2] NIST notes that a smart contract need not perform a financial function: its authors published an Ethereum contract that publicly generates trustworthy random numbers.[2]
4 unchanged paragraphs
## Limits
## Limits
NIST says blockchain technology is "not a silver bullet", and that issues such as handling malicious users, how controls are applied, and governance have to be considered.[2] It also says that although blockchain ledgers are often called immutable, this is not strictly true: they are tamper evident and tamper resistant. In networks that adopt the longest chain, the most recent blocks can be replaced by a longer alternative chain.[2]
NIST says blockchain technology is "not a silver bullet", and that issues such as handling malicious users, how controls are applied, and governance have to be considered.[2] It also says that although blockchain ledgers are often called immutable, this is not strictly true: they are tamper evident and tamper resistant. In networks that adopt the longest chain, the most recent blocks can be replaced by a longer alternative chain.[2]
## Sources
## Sources
1. Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System", undated paper (2008 per NIST), bitcoin.org. https://bitcoin.org/bitcoin.pdf
2. Dylan Yaga, Peter Mell, Nik Roby and Karen Scarfone, "Blockchain Technology Overview", NISTIR 8202, National Institute of Standards and Technology, October 2018. https://doi.org/10.6028/NIST.IR.8202
3. Stuart Haber and W. Scott Stornetta, "How to Time-Stamp a Digital Document", Journal of Cryptology 3 (1991), pp. 99-111, International Association for Cryptologic Research. https://doi.org/10.1007/BF00196791
4. "Block Chain", Bitcoin Developer Guide, Bitcoin Project. https://developer.bitcoin.org/devguide/block_chain.html
1. Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System", undated paper (2008 per NIST), bitcoin.org. https://bitcoin.org/bitcoin.pdf
2. Dylan Yaga, Peter Mell, Nik Roby and Karen Scarfone, "Blockchain Technology Overview", NISTIR 8202, National Institute of Standards and Technology, October 2018. https://doi.org/10.6028/NIST.IR.8202
3. Stuart Haber and W. Scott Stornetta, "How to Time-Stamp a Digital Document", Journal of Cryptology 3 (1991), pp. 99-111, International Association for Cryptologic Research. https://doi.org/10.1007/BF00196791
4. "Block Chain", Bitcoin Developer Guide, Bitcoin Project. https://developer.bitcoin.org/devguide/block_chain.html