2023 L4 FITE7409-Bitcoin1
2023 L4 FITE7409-Bitcoin1
2023 L4 FITE7409-Bitcoin1
7 8
The miner
“mines” a
Anyone can confirmed
“Proof of Work” verify the block is
process. correctness rewarded
of any with “12.5”
It protects the miner’s work. bitcoins.
ledger from
alteration
because a huge
amount of work
is needed at this
step.
A Bitcoin Transaction
10
11
Transaction There is no
confirmation separate
takes time. “Payment” step.
Alice’s
key pair
Bitcoin Key Pair
Hash Function
A transaction of 0.015 BTC from 0.1BTC with a
change of 0.0845BTC – where is the 0.0005BTC?
How many bitcoins do
you have?
Unspent Transaction Output (UTXO)
1 bitcoin = 100 million satoshis = 100,000k satoshis
… …
A Block A Block
Previous Block Hash
• Block hash: identity of the block
• The sequence of hashes linking each
Bitcoin Block Header
block to its parent creates a chain
going back to the first block: the Previous block
Timestamp
genesis block hash
Spending Bitcoin by
digitally signed the Everyone can verify
transaction with the transaction with
private key the public key
Bitcoin Public Key and Private Key
• The transaction is digital signed by a private key, which indicates the
authorization to spend the funds referenced by the transaction.
• With the public key and the digital signature, everyone in the Bitcoin
network can verify and accept the transaction as valid, confirming
that the person transferring the Bitcoins owned them at the time of
the transfer.
The Blockchain – What is a block?
• Transactions are put together in a block.
• The blocks are chained together by keeping the reference to the
previous block in each block. The chain of blocks is called the
blockchain.
• The block:
• Each block contains more than 500 transactions.
• The header contains the reference to the previous block as well as characteristics
of transactions in the current block.
• Each block contains a set of transactions and is identified by a hash value,
generated using the SHA256 cryptographic hash function on the header of the
block.
• The blockchain is the public distributed ledger of all Bitcoin transactions
starting from January 3, 2009 and is continuously growing.
The Blockchain
… …
A block A block
The Distributed Ledger – Blockchain
• The ledger is stored in the Bitcoin network in a decentralized fashion
and the Bitcoin protocol specifies how to update the ledger and how
to synchronize all ledgers in the Bitcoin network.
• Since the blockchain is the public distributed ledger of all Bitcoin
transactions, the number of bitcoins that can be spent by a private
key can be retrieved by anyone who has accessed to the blockchain.
• The user who has the private key can spent that number of Bitcoins
received with the corresponding address.
The Bitcoin Network – emergent consensus
• There is no central authority providing a clearinghouse service that
verifying and clearing all transactions.
• The blockchain is created by nodes in the Bitcoin network based on
the decentralized mechanism called emergent consensus.
The principles of
emergence in nature can
be applied in the Bitcoin
network to enable
emergent consensus for
block-size limiting,
referred to as “EC”
The Bitcoin Network
• The consensus among the nodes in the Bitcoin network is derived
from interaction of thousands of independent nodes in the Bitcoin
network.
• Each node verifies the transactions independently according to some
criteria, including whether the spender has sufficient Bitcoins to
spend, any malicious input injected, etc.
• With sufficient number of verifications by different nodes in the
Bitcoin network, the trust of transactions will be confirmed.
Transaction verification
• The transaction is broadcast on the Bitcoin network, where each
participant validates and propagates the transaction until it reaches
almost every node in the network.
• The transaction is verified by a mining node and included in a block
of transaction that is recorded on the blockchain.
• Once recorded on the blockchain and confirmed by sufficient
subsequent blocks, the transaction is a permanent part of the Bitcoin
open distributed ledger and is accepted as valid by all participants.
• The Bitcoins received by a new owner with a transaction can then be
spent in a new transaction.
A. Discrete entities
B. Interaction
C. High level order
D. Top-down causation
B
C D