Blockchain

From wiki
Revision as of 09:49, 1 June 2021 by Hdridder (talk | contribs)
Jump to navigation Jump to search
  • A blockchain is a recording of data (a ledger).
  • Blocks can have one or more records.
  • Blocks are chained together by the hash of the content of the last block. Except the first (genesis) block all blocks start with the hash of the block it succeeds.
  • Any change in any of the previous blocks will change the hash of that block an so break the chain

Transactions

Blockchain transaction use Public Key Cryptography. A transaction signed by the senders private key and send to the receivers public key. This way anyone can verify the sender is the actual owner of the asset and the target is uniquely identified too.

Consensus Algorithm

A consensus algorithm is used to verify a block's correctness.

  • Nodes in the blockchain network verify the blocks.
  • A block is valid when the majority of nodes think so.

Nodes must prove they are allowed to participate in the blockchain network. The consensus algorithm defines how a node can do that. These are the algorithm types I know of:

  • Hyperledger Fabric - for private, permissioned networks only - not just a consensus algorithm

Forks

The consensus algorithm of a blockchain may change over time e.g. to make it more efficient or to fix bugs. If several node-owners in the network disagree with a change the blockchain can be forked. A new blockchain governed by the new algorithm emerges. All assets (cryptocurrencies) in the chain are forked too. This happened to BitCoin august 1, 2017 when BitCoinCash was created that has a bigger blocksize than BitCoin (8MB for BCH vs 1MB for BTC). For each BitCoin aowned on the BitCoin blockchain before the fork one received 1 BCH.

Challenges=

In a public blockchain network it is important to have numerous validating nodes to avoid the so called 51% attack. When imposters get control over the majority of validating nodes then can tamper the blockchain and put in false transactions.