Blockchain Simple Explanation
Blockchain Simple Explanation
Abstract—This paper presents a step by step introduction to impossible. The best known cryptographic hash functions are
what blockchain is and how it works. MD5, SHA1, SHA2. An example of MD5 is this
Index Terms—Blockchain, Hashchain, Bitcoin, Cryptocur-
rency. MD5(”abc”) = 900150983cd24fb0d6963f7d28e17f72
This creates the well-known problem of “double-spending”: Payload Payload Payload Payload
encryption is based on mathematical property of big number public key in the next block and signs that block. So the
factorization. next block will be owned by whoever keeps the private key
corresponding to the newly published block. And the signature
Figure 2
proves that only the previous owner could have done that.
Not possible but
theoretically imaginable
Figure 3 (from the original Bitcoin paper of Satoshi Nakamoto)
Public Key
m Enc(m)
Different solutions exist on how to organise that global (fees) to the creator of the new block of the global hashchain.
hashchain. And one particular solution proposed in the original So the creator of the new block receives the newly created
Bitcoin paper made Bitcoin popular. bitcoins plus all fees collected from the transactions placed
into the block.
VII. S OCIAL I NCENTIVE The third rule ensures that there is only one current valid
In Bitcoin network the global hashchain is a database dis- copy of the database distributed among many computers.
tributed among many computers. This global hashchain con- It is obvious that since many parties try to create blocks,
sists of many internal hashchains representing some valuable some different blocks are created independently. Since the
tokens called bitcoins. New blocks created on those internal propagation is not instant, new blocks may be created on top
hashchains are called transactions, because they represent of those independently created blocks. That makes the global
changing ownership of bitcoins. The owner of a particular hashchain branch. The third rule makes sure that only one
bitcoin creates a new block on the corresponding internal branch which is the longest is considered to be valid. This
hashchain and publishes this block as a new transaction to rule works fine because block creation is difficult, hence the
be included into the next block of the external hashchain. probability of two or more branches surviving die out very
Publish means sending to all other known participants of P2P quickly.
Bitcoin network. When a new block of the external hashchain We can see that the external hashchain plays the role of
is created it is published in the same way. the central repository effectively replacing an authority entity.
Any participant can create a new block for the external Since the external hashchain is global, it stores bits and
hashchain including published transactions into the block. But pieces of internal hashchains uniquely and reliably binding
this is not easy. To avoid chaos all participants follow a the tokens with their owners, at the same time making double-
particular set of rules – the protocol. And whoever does not spending impossible. The database of the external hashchain
play by these rules is ignored. The protocol is based on three is distributed among many not trusting each other parties, so
principles: it makes it more difficult to enforce the whole community
1) creating a new block requires significant computational of those parties to follow some externally applied regulations
effort; such as political laws.
2) creating a new block is rewarding, so many would make
en effort to successfully create a new block, and
VIII. S O W HAT IS B LOCKCHAIN ?
3) when branching occurs, the longest branch wins.
The first one simply requires that the hash taken from the block Blockchain is a particular organisation of hashchains inside
plus some random data, starts with a number of zero bits. So another hashchain. The external hashchain has to be based on
this random data is modified and the hash is calculated until a set or rules that make balance between usability, simplicity,
the condition of zero bits is achieved. That requirement makes incentive, and trust and authority. Its purpose is to replace
block creation difficult. the central access point that can be controlled and possibly
On the other hand whoever creates a block receives a num- abused by a human. Internal hashchains are required to have
ber of newly created internal hashchains representing some authorisation mechanism so one party can own something
value, bitcoins. That also is part of the protocol. Moreover of particular value. The authorisation mechanism may not
since the bitcoins represent a kind of currency and internal necessarily be PKC. For example, Hasq hashchain is a much
hashchains represent transactions with that currency, the trans- simpler hashchain using only hash functions as authorisation.
action owners can give a small portion of the transaction value