Blockchain: How does it work? Part I

So you’ve read some stuff about blockchain (maybe even my last article), you’ve had a few conversations about it… But still don’t really get it?

What you really want to know is…

How does blockchain work?

Blockchain technology consists of many different pieces. Just like with Lego, you choose the pieces you use to make the finished product.  This post and my next post will explore the key building blocks and how blockchains are made:In this post we will look at 2 of the building blocks that show how blockchain works:

1) Transactions (Bitcoin as an example: sending money between participants, proving ownership and identity)
2) The blockchain structure (the chain of blocks and how to put one together)

To do this, we need to know more about the concept of 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.

Building Block 1) Transactions – public and private keys

One use of hash references in blockchains is creating transactions; sending money or an equivalent ‘cryptocurrency’ (digital money) from one participant to another. The Bitcoin blockchain is the most well known example of this.


Public and Private Keys

The public and private key system enables one person to send cryptocurrency to another. Each person needs a pair of keys, one public and one private, to enter into transactions.  We can use the public key to generate the private key through a mathematical formula, so that they’re digitally linked.

The public key also produces your ‘address’, which you need for someone to send you something (eg. A Bitcoin) on a blockchain.

There is a private key linked to each public key. The private key is secret and only its owner should know what it is, like a password.

If someone else gets access to your private key, they can use it to impersonate you and steal your stuff.

Private keys are simultaneously a proof of ownership and of identity. By proving you have the private key linked to a particular public key, you can prove you are the owner of a token or asset on a blockchain.

Private keys are used to provide a digital ‘signature’ on every transaction that is sent on the blockchain – to prove authorisation by the true owner of the value being moved.

It is possible to require multiple private key holders to sign a particular transaction to provide extra security – this is called ‘multisig’ and can be useful if more than one person’s authorisation is required to release funds.

If you have a business and want multiple staff to sign off on certain purchases for example, this could be one way of doing it.

Building block 2) The blockchain structure

This is about how we put the information about transactions into the blockchain.

Each transaction is hashed into a structure known as a ‘Merkle tree’. This looks like an upside-down tree with multiple branches, where the hash of each transaction is used to combine multiple transactions into blocks.

By using the hash references of the data, the information is condensed down into a more manageable format and packaged together in the blockchain structure. Yet you can still trace all the way back to the underlying information, because the system of hashing links everything together.

Merkle Trees

The hash of transaction 1 and transaction 2 is combined, this is then hashed and combined with the hash of transactions 3 and 4, etc. In this way , the hash of all transactions are combined in one block, whose hash contains a reference to all the transactions within it:


You can see above that transactions 1 and 2 are hashed into reference R12. This is then hashed into R1234 with the reference R34. R1234 therefore references back to all 4 underlying transactions.

Transactions 1,2,3 and 4 are added into a block whose ‘block header’ (like the title of each block) will contain the R1234 hash reference to them.

Block Headers

The block header of each block contains a few things:
– A hash pointer – which links to the previous block.
– A timestamp
– The hashed data

Using this system, all transactions in the blockchain are ordered and marked.

How to alter a blockchain

Once recorded on the blockchain, the transactions cannot be modified, because changing the data within each block will change the hash references (remember hashes are dependent on the data within them, like in the ‘Amanda loves blockchain’ example above).  

So if the sentence was changed to ‘Amanda hates blockchain’, the hash might become ‘934tnglaao3ri82000ofoajda002eu12473’, and would be instantly unrecognisable if compared to the original hash output.

Which is good, because no one would ever write that, let alone make a permanent record of it on a blockchain.

This system makes fraud impracticable, although not impossible, in a blockchain. Because changing a hash reference must involve changing all the previous hash references that have contributed to that hash.


So a fraudster trying to change some information (maybe registration details, transaction amount etc) would need to alter the hash of the relevant transaction, all the hashes that refer to it within the same block, and then all the previous block hash references and data hashes within them back to the beginning of the blockchain… You see how it is possible, but highly improbable.

The sequence of data made up by the chain of blocks constitutes the digital distributed ledger of transactions, or the blockchain. As blocks are added to the chain, the previous blocks are further cemented into the blockchain.

You now know about some of the main principles on which blockchain technologies are built – celebrate!

Watch out for part II of How blockchain works coming soon where we’ll explore mining and how cryptocurrencies like Bitcoin are created!

344 Trackbacks / Pingbacks

  1. 3mc8w5wt4twyvnmtc5twmcw
  2. 3cm5wy4ctw54mtwno5cytwib45t
  3. viagra 5mg price
  4. generic cialis for sale
  5. cialis without prescription
  6. generic cialis cost
  7. cialis super active
  8. viagra generic
  9. cheap erectile dysfunction pills
  10. ed pills
  11. best ed pills
  12. cialis for sale
  13. pharmacy online
  14. levitra generic
  15. play casino online
  16. online casino games
  17. viagra for women
  18. best slots to play online
  19. real online casino
  20. tadalafil 20 mg
  21. pay day loans
  22. online payday loans
  23. payday loans online
  24. viagra prescription
  25. betting sites with jackpots
  26. cialis 20
  27. efcaxdszdfszgd
  28. buy cialis
  29. m980u9oy9y98o8y9pm
  30. m90uojmuy7hjhhhh
  31. new cialis
  32. rxc43rw435tr53t453t
  33. cialis buy
  34. cialis 5 mg
  35. casino online real money
  36. conferance car
  37. uk taxi company contact
  38. play casino
  39. casino online
  40. best online casino for money
  41. canadian pharmacy viagra
  42. what is sildenafil
  43. viagra prescription
  44. Large Wall Tapestry
  45. cxqw234xracrwcr4
  46. discount cialis
  47. xdsffx4crta4rtxa34w
  48. order viagra online
  49. generic cialis reviews
  50. Face Mask Pack
  51. pharmacy cheap no prescription
  52. Google
  53. buy generic viagra online usa
  54. generic pills in usa
  55. real money casino online
  56. counterfeit money
  57. Buy LSD Online
  58. undetectable counterfeit money online
  59. casino world
  61. Venice photography
  62. free download for windows pc
  63. Group health insurance plans
  64. Employee benefits
  65. Eon Thailand
  66. airport pick up
  67. booking login
  69. London’s heart of music
  70. Gel nail polish
  71. bitsler
  73. job
  74. cialis price
  75. trade coin
  76. cialis vs viagra
  77. how to start your own internet marketing business
  78. Denver SEO
  79. hydroxychloroquine price canada
  80. pueblo seo
  81. cialis online purchase
  82. اغانى شعبى
  83. wedding bartenders
  84. cialis no prescription
  85. it disposal wokingham
  88. generic viagra no perception
  89. cialis buy
  90. Plastic Surgery in Turkey
  91. apex legends hile satın al
  92. Sphynx Kittens For Sale Near Me
  93. kittens for adoption
  95. dildo for beginners
  96. alex more
  97. viagra canada
  98. en uygun uçak bileti
  99. redclovefoods
  101. ترفند تضمینی بازی انفجار
  102. giayu2
  103. additional reading panos germanos
  104. find out this here ΠΑΝΟΣ ΓΕΡΜΑΝΟΣ
  105. cialis order online
  106. Damiana
  107. witgoed reparatie
  109. buy marijuana online
  111. Mini Aussies
  112. tablet klor
  113. mobilya çeþitleri
  115. from this source ΑΠΟΦΡΑΞΕΙΣ
  116. best grills
  118. Used guns for sale near me
  119. Magic Mushrooms
  120. Beretta m9a1 for sale
  121. Gun Shops Near Me
  122. Puppies near me
  124. CBD Vape Cartridge
  125. Mall of Islamabad
  127. şişme mont
  128. yatırım teşvik belgesi
  129. arıtma cihazı filtre değişimi
  130. uscojufm9r4tue4urtse4
  131. haber
  132. hrdf training course penang
  134. free followers
  135. karlsruhe
  136. chương trình sinp
  137. find out more
  143. royal cbd
  144. cbd gummies
  146. approved pharmacy
  147. o-dsmt
  149. royal cbd oil
  150. Pure Colombian Cocaine
  151. cbd for sale
  152. Change DMT
  153. Maltipoo puppies
  154. Fire Herbal Incense
  155. Dank Cartridges
  157. film
  158. mitrade lua dao
  159. Wedding jewelry for her
  160. apps download for windows 8
  161. pubg mobile hile
  162. online pharmacy usa
  163. pharmacy canada pharmacy
  164. Fix Insta­gram Not Work­ing
  165. Best price for viagra
  166. 메리트카지노 추천
  168. xe88
  169. transexual
  170. natural skin care products canada
  171. 47995
  172. Đồ cúng tâm linh
  173. 메리트카지노
  174. marmoset monkey
  175. cockatoo for sale
  176. insulation definition
  177. toucan tongue
  178. gülsim ali ilhan
  179. Generic viagra usa
  180. canada pharmacist
  181. Order viagra online
  182. proven customer reviews
  183. Roberto Badalotti
  184. Buy Lortab 5/500, 7.5/325 online
  185. canadian me
  186. Free viagra samples
  187. Ankara ceza avukatý
  188. 샌즈카지노
  189. 메리트카지노
  190. 코인카지노
  191. exchange eu driving license for uk
  192. phim sex online
  193. داستان سکسی مامان
  194. Evergreen medical marijuana
  195. magnitic knife block
  196. omega guldklocka
  197. Loozap Home furniture Sudan
  198. 우리카지노
  199. silencil scam
  200. real signups
  201. mega888 online
  202. kadikoy escort
  204. brokerreview scam
  206. motor vehicle accident injuries Alberta
  207. sme loan
  208. pedopornografia
  209. 퍼스트카지노
  210. online transcription service
  211. sàn forex uy tín
  212. خرید فالوور خارجی
  213. private detective spain
  214. detectives
  215. Gelato Strain
  216. albuterol sulfate without dr prescription
  217. taxis
  218. supplements
  219. Victoria Cakes Kenzie Reeves Lesbian Sex
  220. Apartemen bsd
  221. health supplements canada
  222. Women’s Crocodile Leather Shoulder Bag
  223. how much viagra can you take safely
  224. sisteme de copiat
  225. custom gift printing
  226. Sibil Çetinkaya
  227. các sàn forex uy tín traderviet
  228. Mink Eyelashes Set
  229. Women’s 3D Thick False Eyelashes 5 Pair Set
  230. cialis weekend dose
  231. Women`s Professional Make up Tool Set
  232. Soft Faux Mink Individual Lashes
  233. free new movies online
  234. Colorful Waterproof Silicone Face Cleansing Brush
  235. Reusable Natural 3D Mink Eyelashes
  236. best thrillers of 2010s
  237. Waterproof Eyebrow
  238. Stylish Soft Makeup Brushes
  239. Professional Makeup Brushes
  240. Champagne Color Makeup Brushes Set
  241. Waterproof Strong Eyelash Glue
  242. 3D Natural Soft Mink Eyelashes 10 set
  243. Nail Polish Remover Wipes
  244. False Eyelashes Set
  245. Professional Ceramic Hair Curler
  246. Colorful Nail Art Dotting Pens Set
  247. 3D Mink Magnetic Eyelashes with Eyeliner Kit
  248. Makeup Eyeshadow Palette
  249. Women’s Mink 3D Faux Eyelashes Set 5 Pcs
  250. Home Appliances
  251. detectives privados albacete
  252. Temel Dini Bilgiler Konu Anlatýmý
  253. online chat with doctor free
  254. Aloe Lip Balm For Women
  255. Velvet Waterproof Lipstick 5 Pcs Set
  256. Flower Nail Stickers
  257. Colorful UV and LED Nail Gel
  258. Anti-aging Face Steamer
  259. Disposable Eyelash Brushes Set
  260. Waterproof Shimmer Lipstick
  261. Goat Hair Eye Makeup Brushes Set
  262. Pearls Hairband for Women
  263. magic mushroom canada
  264. canada pharmacy canada
  265. Double-headed Gradient Color Nail Art Brush
  266. Metal Alligator Hair Clips
  267. Disposable Lipgloss Brush Set
  268. Aluminium Foil Nail Polish Remover
  269. Y-Shaped Facial Massage Roller
  270. Eyelash Brushes Disposable
  271. Crystal Nail Art Brush
  272. hd film izle
  273. film izle
  274. film izle
  275. generic cialis safe
  276. acyclovir tablets
  277. surrey handyman
  278. natural skincare
  279. their usa website
  280. burnaby cash for cars
  281. star casino
  282. cara menang mega888 modal rm10
  283. viagra on line with prec
  284. chloroquine phosphate coronavirus dosage
  285. prednisone 2.5 mg for dogs
  286. generic vidalista fast shipping
  287. Drucker Miete
  288. Aaron Lal
  289. Aaron Lal
  290. ivermectin for mange dosage
  291. my mega888 company e wallet
  293. is viagra from china safe
  294. Adam Robinson Bendigo
  295. my mega888 digi
  296. international
  297. Tangela Allman
  298. malaysia mega888 for pc
  299. generic cialis tadalafil best buys
  300. nytimes
  301. vidalista without a doctor's prescription
  302. proper use of cefixime
  303. color hair
  304. norwaytoday
  305. vidalista 5mg cost
  306. wax doll
  307. amazon ivermectin
  308. silk hair wigs
  309. silk hair wigs
  310. ラブドールとは
  311. mega888 hack slot
  312. click now
  313. dutchnews
  314. 34cr4rxq3crq34rq3r4
  315. download mega888 xe88
  316. cphpost
  317. aftonbladet
  318. corporate secretarial services singapore
  319. Julian Di Benedetto
  320. Buy Weed Online
  321. buy viagra on line without prescription
  322. THC Cartridge
  323. spiegel
  324. postimees
  325. lemonde
  326. cialis for men
  327. gayhub
  328. does hydroxychloroquine help with coronavirus
  329. can you buy viagra over the counter in greece
  330. 1xbet android
  331. helsinkitimes
  332. remote control dildo
  333. icelandreview
  334. anal suppository
  335. stray kids merch
  336. thesouthafrican
  337. mature porn
  338. take cialis with viagra
  339. مهرجانات
  340. c34r54wxw4r34c3
  341. Japanese Porn Land
  342. TransHub
  343. xnxn
  344. alcohol and cialis side effects

Leave a Reply