Part II: Mining and the Chain

Let’s delve further into the workings of blockchain. We learnt about blocks last time – but what about the chain?

The hashing concept is still all-important for the way blocks get added to the chain and then spread (‘distributed’) around the network. So here’s a recap on hashing:


Making a hash of it

A hash (or hash reference) is a random string of numbers. Hash functions are a method of creating an identifier for a set of data. You put something in, the function does its thing with the code, and it spits something out. That something is called a hash (or hash reference).

The hash spat out by the function is determined by whatever you put into it in the first place.

For example, when you input the sentence ‘Amanda loves blockchain’, the output might be ‘288ejald20038afljadl463283lqpppskw42839’. This is called the ‘hash’.

The hash of ‘Amanda loves blockchain’ will always be ‘288ejald20038afljadl463283lqpppskw42839 when that sentence is run through a hash function, because it is determined by the sentence I entered.

Hash references are usually irreversible, which means that given ‘288ejald20038afljadl463283lqpppskw42839’, I cannot work out that the input was ‘Amanda loves blockchain’.  I’ve just used random combinations of characters here, but usually hash references are set lengths depending on the function that produces them.

Hashing can therefore be used to prove the ‘identity’ or content of a particular set of data, without revealing the content itself.

Hash puzzles in Blockchain

If someone wanted to know my sentence, they cannot discover it from the hash ‘2884659200387546328342839’. However, they can guess the sentence input, make a hash of that and compare it to my hash to see if they match. If their hash is ‘2884659200387546328342839’, they will know they guessed correctly.

This is called a ‘hash puzzle’. Hash puzzles involve finding the solution to a problem by trial and error, which uses up computing power.

Hash puzzles are used in blockchain to provide security to the network.


The participants in a blockchain network are called ‘nodes’. Nodes are basically the different computers connected to the network.

The ‘miners’ in a blockchain network are specific nodes who use their own computing power and electricity to create and maintain the blockchain. This now requires specialised hardware to deal with the processing power required, but when Bitcoin first started it was possible to mine from a laptop.

Miners are set the task of solving hash puzzles in order to add blocks to the blockchain. They use their computing power to solve the puzzles. Once the puzzle is solved, the new block is attached to the end of the blockchain. The process is called ‘proof of work’ because the miners are proving their ‘work’ or effort by solving the hash puzzle.

Note – not all blockchains use proof of work and not all create cryptocurrency in the same way, but the Bitcoin blockchain is used here as an example of the first proof of work blockchain.


Currency creation

The process of mining in the Bitcoin blockchain serves the purpose of creating new Bitcoins. Miners receive a certain amount of Bitcoins that they have created, which is called the ‘block reward’. The amount of Bitcoins released into the Bitcoin blockchain is set for each block in the underlying code of Bitcoin.

Currently the block reward is set to 12.5 Bitcoins per block, which you can see here.  The first transaction in every block is the block reward plus the transaction fees. The amount of block reward halves every 210,000 blocks.

When Satoshi Nakamoto set up Bitcoin, he/she/they specified that only 21 million Bitcoins will ever be released. There is no constant amount of new coins, there are only the rules set to determine the supply over time through the mining process.  This was the beginning of the very interesting area called ‘crypto-economics’ which I will explore in a future post!

The miners therefore get paid for maintaining the blockchain network. It is in their interests to mine as efficiently as possible in order to beat competitor miners, solve the puzzle first and receive the compensation.

The compensation is the combination of the ‘block reward’, ie the newly mined currency, and a transaction fee that is charged for transactions being added to the blockchain. These things represent the ‘cost’ of the integrity of data in the system because the ‘reward’ of payment to miners ensures it is in their interests to act honestly.

Distributing the ledger

The miner distributes the new history of blocks with the new block attached to the end to the other nodes. It uses what is known as the ‘gossip protocol’, which is a set of rules that work by essentially spreading the word through the network.

Word spreads that there is a new block to attach to the chain.  As each node receives the new block, it appends it to the end of the blockchain and maintains the new record going forward.

It is possible that different miners solve hash puzzles almost simultaneously, producing more than one potential version of the blockchain ledger. Nodes do not keep the same version of the ledger at all times. Instead, the highest ‘rated’ version of the database that each node is aware of is stored by them.


Putting the ‘chain’ in blockchain

The way a ‘version’ or branch of the blockchain is rated is by being the longest chain. Nodes will therefore accept a version of the chain that is the same as their current version, but with a new block attached.



In the event they are distributed a version that conflicts with their own version, the chain with the highest amount of cumulative proof-of-work is accepted. This is because the probability that a block will be replaced decreases quickly as more blocks are added after it.

The correct ‘version’ of a blockchain ledger therefore is the longest chain of blocks in the system.  Some transactions might not be in the longest chain and are unconfirmed. They will be dropped from the mining process and still available for mining. They can now be added to future blocks in the chain.

Blockchains grow as more blocks are created and added to the chain. There are different types of blockchain out there and in future posts we’ll take a look at some of them.

200 Trackbacks / Pingbacks

  1. viagra from india
  2. cialis 20 mg
  3. generic for cialis
  4. cialis pills
  5. cialis 20
  6. viagra 100mg
  7. pills for erection
  8. ed pills online
  9. ed pills for sale
  10. buy cialis generic
  11. online canadian pharmacy
  12. cialis visa
  13. cheap levitra
  14. buy levitra
  15. hollywood casino online
  16. generic viagra cost
  17. online casinos for usa players
  18. online casinos
  19. cash loans
  20. online loans
  21. viagra prescription
  22. online casino betting sites
  23. cialis to buy
  24. efcaxdszdfszgd
  25. 5 mg cialis
  26. m980u9oy9y98o8y9pm
  27. m90uojmuy7hjhhhh
  28. generic cialis
  29. rxc43rw435tr53t453t
  30. generic for cialis
  31. online viagra
  32. real money online casinos usa
  33. Brighton to Heathrow Taxi
  34. online casinos real money
  35. free slots
  36. buy generic viagra online
  37. cheapest generic viagra
  38. generic viagra without subscription walmart
  39. viagra online prescription free
  40. Selfie Face Mask Nose
  41. when to take viagra
  42. cxqw234xracrwcr4
  43. xdsffx4crta4rtxa34w
  44. tadalafil generique
  45. viagra prescription
  46. viagra buy
  47. viagra without a doctor prescription not scam
  48. generic viagra
  49. buy viagra without prescription
  50. viagra without a doctor prescription
  51. viagra fast shipping overnight
  52. viagra coupon
  53. where can i buy viagra on the high street
  54. cialis without a doctor prescription
  55. cialis cialis online
  56. cialis coupon
  57. cheap viagra
  58. viagra cheap
  59. buy cialis
  60. cheapest generic viagra
  61. sildenafil
  62. viagra without prescription
  63. viagra prescription
  64. canadian pharmacy viagra
  65. cialis pills
  66. cialis without prescription
  67. where to buy cialis
  68. brand viagra pfizer 100mg
  69. cialis price costco
  71. cialis 1800
  72. viagra erection
  73. is generic cialis from india safe
  74. generic viagra online india
  75. cialis 5mg
  76. viagra sex
  77. uscojufm9r4tue4urtse4
  78. hạt macca úc 500g
  79. news
  81. royal cbd
  87. best cbd oil
  88. viagra 100mg online sales
  90. cbd oil
  91. royal cbd
  92. mitrade lua dao
  93. maisgeek
  94. side effects of taking viagra
  95. bestratedmerch
  96. viagra nitric oxide
  97. 메리트카지노 주소
  100. 918kisslogin
  101. viagra for sale in canada
  102. 메리트카지노 사이트
  103. transexual
  104. natural skin care products
  105. washington pa
  107. cbd for sale
  108. 메리트카지노
  109. xe88 dealer
  110. coating inspector
  111. learn more
  112. proven customer reviews
  113. cialis with dapoxetine
  114. Roberto Badalotti
  115. generic viagra mexico
  116. weight loss pills that work
  117. eu driving license post brexit
  118. free porn video
  119. women's sunglasses
  120. sälja klocka på auktion
  121. Loozap Vehicules Congo Kinshasa
  122. silencil reviews
  123. blackjack online
  125. escort kadikoy
  126. brokerreview scam
  127. scam site
  128. cialis 200mg pills generic
  129. hydroxychloroquine side effects eyes
  130. price of albuterol
  131. rev transcription
  132. buy viagra in canada online
  133. sàn giao dịch forex
  134. airport car
  135. Apartemen bsd
  136. health supplements
  137. here
  138. viagra pills cheap
  139. no insurance doctors office
  140. sisteme de copiat
  141. tamilgun new movie
  142. sàn giao dịch forex uy tín
  143. best horror films on netflix uk
  144. agencia detectives valencia
  145. Visit our site
  146. order viagra pills
  147. prescription cost for cialis
  148. canada pharmacy
  149. microdose mushrooms
  150. best prices cialis 5mg
  151. benefits of ivermectin
  152. mexican cialis fast delivery
  153. film izle
  154. film izle
  155. hd film izle
  156. alternative to cenforce for men
  157. deltasone 10
  158. scrap car removal vancouver
  159. canada news usa
  160. residential handyman
  161. 777 casino
  162. ivermectin dose for corona
  163. hydroxychloroquine cost
  164. cara hack mesin slot online
  165. vidalista advertisement
  166. when to take cialis
  167. A3 Drucker
  168. is sildenafil the same as viagra
  169. Aaron Lal
  170. why is hydroxychloroquine so expensive
  171. Aaron Lal
  172. my mega888 claim
  173. dapoxetine for sale
  175. trusted online sites for viagra
  176. my mega888 demo id
  177. Adam Robinson Bendigo
  178. manufacturer of plaquenil
  179. Malisa Shrum
  180. best price generic vidalista
  181. malaysia mega888 halloween
  182. international
  183. what happens when you take viagra
  184. human hair lace wigs
  185. 等身大リアルドール
  186. silkhair
  187. human hair
  188. mega888 game tips
  189. description
  190. 34cr4rxq3crq34rq3r4
  191. download download game mega888 original
  192. young entrepreneur singapore
  193. Kingpen
  194. Julian Di Benedetto
  195. Pound of Weed
  196. buy cialis
  197. can canadians buy viagra online
  198. stray kids merch
  199. aurogra doctor
  200. c34r54wxw4r34c3

Leave a Reply