Welcome to the Bitcoin Wiki

Revision as of 05:25, 29 January 2020 by Brendan (talk | contribs)

Here we aim to provide a correct and up-to date set of information on the Bitcoin network and its features and functionality.

Bitcoin

Bitcoin is a peer to peer electronic cash system created by Dr. Craig Wright under the pseudonym Satoshi Nakamoto. It was first detailed in the Bitcoin white paper in October 2008, and the source code was released in January 2009.

Bitcoin allows online payments to be sent directly from one party to another, without requiring a central institution or server to process transactions and/or store funds.

The leaderless structure of the network famously solves The Byzantine Generals Problem allowing disconnected entities to follow a common direction without centralised instruction.

Applications

Bitcoin is primarily a payment system which supports peer to peer connection and Instant Transactions. Early in the History of Bitcoin payments required users to understand complicated technical details of Bitcoin's technological underpinnings to make transactions however developments such as Paymail and Simplified Payment Verification are changing the landscape and making it much easier for users to connect.

Bitcoin also supports the development of application layer protocols which make use of Bitcoin Transactions as a transport layer for information exchange. Several Application layer protocols already exist for BitcoinSV - for more detail see Building on Bitcoin. The Metanet is a developing system which leverages the low Transaction fees on The Bitcoin Network to create an Internet of Value where Micropayments become a means to both access and monetize data.

Applications which make use of the immutable nature of the Bitcoin Ledger to store and retrieve data are increasingly emerging. False Return scripts and other scripts that use Pushdata Opcodes to push data into Bitcoin transactions are creating new ways of recording data for public consumption. Bitcoin acts as a timestamp server allowing data to be validated and referenced using transactions.

The Ledger

The Bitcoin ledger is formed as a Directed acyclic graph (DAG) where each transaction is a node. The graph starts at the Coinbase transaction of the first block ever found and via chains of digital signatures maps out the entire history of valid exchange actions, allowing the tracing of all Bitcoins back to their creation.

Electronic coins are defined as a chain of digital signatures

Transactions

All Bitcoin Transactions are payments of some kind. Transactions are written in a flexible scripting language that is used to assign ownership rights to each transaction output. All network events including the creation of a block are inscribed in transactions.

Transaction inputs and outputs

Nodes and Mining

The ledger is held on a distributed network of nodes who use hash based Proof of Work to compete for the right to extend it and as a means to vote on network rules. The proof of work of each block in the longest chain of work is incorporated into its subsequent block to form the chain structure.

A chain of hash based proof of work


During the mining process, a node gather transactions from the network and evaluates whether they are profitable to mine before putting them into a block template. Block templates are created by calculating the root of a Merkle tree containing all of the transactions being mined. The order of transactions in the Merkle tree is not related to their position in the transaction DAG. As new transactions arrive, they are added to the tree, creating a new, updated template. A block is found when a miner successfully discovers a value that generates a hash less than the difficulty target. The miner must then propagate the new block to the rest of the network who must then build an additional 100 blocks on top of it before the winner can claim the block reward.

The structure of a Merkle Tree

Nodes are operated by the Bitcoin mining enterprises who build the network. Bitcoin's economic incentives are structured such that for the nodes to be most profitable at building the ledger they must be as closely connected to other well performing nodes as possible. This leads to miners forming a Small World Network which trends towards a Nearly Complete Graph where all miners are connected to all other miners. Miners gather transactions from users who connect in a layered network over the nodes at the core forming a Mandala Network. In this shell network, peers use Simplified Payment Verification to form a much less densely packed structure where information is exchanged in Payment Channels.

As Bitcoin scales, the nodes who comprise the network will be variously compartmentalised into specialised hardware. These clustered systems will be distributed globally, each being placed in a location optimised for its task.

Blocks

Valid transactions that are broadcast on The Bitcoin Network are committed to the Bitcoin public ledger by miners in Blocks. Blocks are discovered just under every 10 minutes on average and held in a a Directed acyclic graph (DAG) structured as a Block chain. Each block forms a node in the graph. This graph is consistent in structure and can be traced back to the first block mined.

A chain of blocks

Transactions can be exchanged peer to peer, allowing them to be modified in payment channels. Once a transactions is sent to the network in a closed channel, global consensus can be reached on the validity in less than 2 seconds.

Unit of account

Satoshis are the ledger's native unit of account and 100,000,000 satoshis is abstracted to one Bitcoin. Satoshis are held in script puzzles called Unspent Transaction Outputs or UTXOs. These are transaction outputs which are held by miners in a quick access database called the UTXO set. During the spending process, UTXOs being used in a transaction are consumed and the solution to their puzzle script is recorded in the transaction.

Satoshis are issued by miners to themselves as a subsidy payment during the network establishment phase. As the network matures, the the subsidy dissipates forcing the miners to find alternate revenue streams. The payment allows miners to finance their operations through the payment of goods and services in Bitcoin, spreading it through the economy.

Network rules

Bitcoin operates on a fixed ruleset. So-called consensus rules include things such as the operation of the opcodes in Bitcoin Script, the rate at which new bitcoins are issued, the mathematical function used to calculate the target for the Difficulty algorithm and more. The protocol is agreed upon by the miners who control network operation.

There are no limits in the Bitcoin protocol. Any limits imposed are are put in place by miners who are incentivised to catch the largest profitable pools of transactions they can. Miners compete to offer better service to fee paying users by scaling their own capabilities.

History

Bitcoin has a rich history and has been attacked in many ways since its inception. For example, at the time of writing, certain other groups are wrongly using the 'Bitcoin' name to refer to their own projects. The most famous of these uses a software implementation known as 'Bitcoin core' and has a token known as 'BTC' (more information).

Tools and Building on Bitcoin

Bitcoin has a rich and diverse set of tools which are being added to all the time.