Learning Library

← Back to Library

Understanding Blockchain: Distributed Immutable Ledger

Key Points

  • Blockchain is a distributed, immutable ledger that records any type of transaction, providing a single source of truth that every participant can verify.
  • Using a simple loan analogy, the speaker shows how each node in a blockchain network holds a copy of every transaction, ensuring transparency and consensus across the network.
  • Each block contains three core components—transactions, a unique hash (digital fingerprint), and the hash of the previous block—linking blocks together in a chain.
  • Because a block’s hash changes if any transaction is altered, tampering with one block would break the hash links in subsequent blocks, making the ledger effectively immutable.

Full Transcript

# Understanding Blockchain: Distributed Immutable Ledger **Source:** [https://www.youtube.com/watch?v=QphJEO9ZX6s](https://www.youtube.com/watch?v=QphJEO9ZX6s) **Duration:** 00:10:22 ## Summary - Blockchain is a distributed, immutable ledger that records any type of transaction, providing a single source of truth that every participant can verify. - Using a simple loan analogy, the speaker shows how each node in a blockchain network holds a copy of every transaction, ensuring transparency and consensus across the network. - Each block contains three core components—transactions, a unique hash (digital fingerprint), and the hash of the previous block—linking blocks together in a chain. - Because a block’s hash changes if any transaction is altered, tampering with one block would break the hash links in subsequent blocks, making the ledger effectively immutable. ## Sections - [00:00:00](https://www.youtube.com/watch?v=QphJEO9ZX6s&t=0s) **Blockchain Basics: Distributed Ledger Explained** - The speaker introduces blockchain as a distributed, immutable ledger and uses a simple friend‑loan analogy to illustrate how all nodes record every transaction. - [00:03:08](https://www.youtube.com/watch?v=QphJEO9ZX6s&t=188s) **Permissionless Blockchain Immutability and Consensus** - It explains how blockchains are tamper‑resistant, distinguishes permissionless public ledgers where anyone can view and join the network, and outlines the transaction‑validation and consensus process. - [00:06:25](https://www.youtube.com/watch?v=QphJEO9ZX6s&t=385s) **Privacy Management in Permissioned Blockchain** - It explains how a permissioned blockchain’s pluggable consensus must protect privacy among known organizational participants by limiting shared details of a purchase and shipping transaction to only what each party needs. - [00:09:38](https://www.youtube.com/watch?v=QphJEO9ZX6s&t=578s) **Automating Shipments with Smart Contracts** - It explains how smart contracts can automatically verify inventory, create shipment records, and release refunds when conditions aren’t met, speeding up transactions for retailers, shippers, and manufacturers. ## Full Transcript
0:00Hi everyone, my name is Sai Vennam and I'm with the IBM Cloud team. 0:04Today let's talk about Blockchain. 0:06I'm excited to talk about this because I feel like there's a lot of misconceptions out there 0:10about the technology and in addition there's a lot of concepts that can be difficult to 0:15grasp. 0:16In this video I want to dive into the fundamentals of Blockchain. 0:19We'll start with the definition. 0:22Blockchain is a distributed and immutable ledger allowing me to track almost anything 0:26tangible or intangible goods. 0:29Most of us are probably familiar with crypto currencies, or Blockchain as used to track 0:34transactions. 0:35So, to better understand how Blockchains are distributed let's start with an analogy. 0:40Let's say I am with a group of friends and I lend my friend Pat ten dollars. 0:46Now the friends see the transaction go down and they know that I have the correct amount 0:50of money and in addition they've essentially endorse the transaction and they made a record 0:55of it. 0:56Now next week when Pat comes back to me to ask how much money had initially lent her, 1:01we could easily go to anyone of my friends that have a record of that transaction. 1:06Now Blockchains are distributed as all of the nodes that are running in that Blockchain 1:10network have a record of every transaction that has ever taken place. 1:15Now that kind of lends itself to the distributed nature of Blockchain. 1:19So, all the ledger technology that has been around for some time, even simple ledgers, 1:25Blockchain takes advantage of it by having a single source of truth and has a distributed 1:30nature where everyone has the same copy from that Blockchain. 1:35Next let's introduce the fact the Blockchains are immutable. 1:38To do so let's dive into the pieces that make up a blockchain. 1:42So, in a block we have three major pieces. 1:45First, we're going to have the transactions. 1:48So, this is going to be all the transactions that occurred when that block was created. 1:54In addition, there's going to be a hash. 1:55A hash is essentially a digital fingerprint, so it represents the transactions that are 2:02in the block and is completely unique. 2:04If any of the transactions were to be changed the hash would also change. 2:09So, let's take a couple letters for the hash, generally it's an alphanumeric sequence and 2:14is usually a lot longer, more secure. 2:17It's also going to have the hash of the previous block in the chain. 2:21So, let's say where you know right in the middle of the Blockchain here and we'll pick 2:25something for the previous hash, maybe "2a", and so now let's move on to the next block. 2:32The next block is going to have its own set of transactions, as well as the previous hash 2:38which corresponds to this one right here, as well as its own hash. 2:47And so on, and so forth we can kind of extrapolate on all of the hashes in previous sessions. 2:52So, you can imagine that if you were to want to tamper with any of the transactions that 2:56occurred or change it, for example to change one of the transactions, this one hash would 3:01change and because of that the previous hash of the next block in the chain would now be 3:07incorrect. 3:08So, to fix that you would have to tamper with every single block in the chain and that would 3:13immediately become apparent. 3:15So, in this sense Blockchains are immutable and very tamper resistant. 3:20Now, the next thing I want to talk about is the idea of a permissioned versus a permissionless 3:26Blockchain. 3:27So, we'll start with the permissionless Blockchain. 3:31Now, when most of us think of Blockchains we're probably thinking of crypto currencies, 3:38which are public and permissionless. 3:40Now that means anyone can see all the transactions that have ever taken place. 3:45Now attendees are not exactly revealed, it's only the addresses that people have, but regardless 3:51all the transactions are public and in addition anyone can register themselves to be one of 3:56the nodes in the network essentially having a copy of the blockchain and anytime it gets 4:01updated and new transactions are made they would get a new block. 4:04So, you have to imagine it's quite a problem for all of these nodes to have a copy of that 4:11Blockchain. 4:12When new transactions come in, how do they reach a consensus on which transactions will 4:17make up the next block? 4:19That's done so using a consensus algorithm. 4:22Let's break down how this works for a permissionless public Blockchain. 4:26So, a client will first submit a transaction. 4:31That transaction will join a list of other transactions that have been made on the network, 4:36and then the next thing that will happen is the node is going to start picking up those 4:41transactions and validate by looking through all of the transactions that happen in the 4:46Blockchain so far that those are also valid. 4:49It'll kind of emulate a block and then start something called a proof of work algorithm. 4:55Now this is the consensus algorithm that public permissionless Blockchains use and essentially 5:00this is how they're able to reach a consensus on which block should be next. 5:04Essentially, it's going to be a very complex algorithm, cryptographic hash puzzle that 5:10all the nodes are working together to solve. 5:13As soon as one of the nodes solves it they have essentially unlocked the position of 5:17the next block and what they'll do is broadcast that position of the next block to all of 5:23the other nodes in the network as well as adding it into their own Blockchain. 5:28So, a proof of work algorithm is actually quite consuming on the processing and electricity 5:36on a global scale. 5:38So, although it's kind of required for supporting public permissionless Blockchains where anyone 5:43can be a node and anyone can submit transactions or submit their hardware to kind of enable 5:51the adding of new blocks, you don't want to take advantage of these kind of algorithms 5:56when you're working with Blockchain for business. 5:59This would be something like a permissioned Blockchain. 6:02So, in a permissioned Blockchain this would be something like hyperledger fabric. 6:10You have the idea of pluggable consensus algorithms, now you don't want to do something like proof 6:15of work because solving those complex algorithms just to find the next block is not necessary 6:21when the nodes within a blockchain network are trusted. 6:25So, that's one of the first concept here, so pluggable consensus. 6:35Now the nodes in a permissioned Blockchain are trusted, so they generally know each other. 6:40In addition, they don't always just represent users but entire organizations. 6:44So, in this case it's actually very important that our privacy is one of the main tenants 6:53of a permissioned Blockchain. 6:55Let's take an example, let's say that there's a retailer that purchases a hundred pounds 7:02of produce at a thousand dollars. 7:04So, we'll say it's a buy order for a hundred pounds at one thousand dollars. 7:13Now the manufacturer receives the order from the retailer and says, "OK, let's approve 7:18it. 7:19Let's make sure we have enough in the warehouse and let's work with the shipping company". 7:22So, they go to the shipping company and they say, "OK, let's ship this hundred pounds", 7:29and it's going to cost them a hundred dollars to actually make that shipment. 7:36Now, there's some privacy concerns here. 7:39The manufacturer has to have all the information, that's fine they need to know about the buy 7:44order that was place as well as the shipment order that they've placed, but the retailer, 7:48although they need to know information about the buy order as well as the amount, as well 7:53as the price of it, they don't necessarily need to know how much it costs to ship it 8:01but they might want to know when it was shipped and how much it was for. 8:05On the same hand for the shipper, they need to know that they've placed the shipment order, 8:08the amount and the cost of it, they need to know maybe when the order was placed, but 8:13they still don't necessarily need to know how much the retailer spent. 8:17Now, the same goes for perhaps more retailers that the manufacturer might be working with. 8:23Now if the manufacturer is offering a different price for the product for one retailer rather 8:28than the other one, it doesn't make sense for the retailers to know about the competing 8:31prices. 8:32So, in this case although all of the organizations are part of the Blockchain, only the retailers 8:38are part of the transactions that took place should be able to see that information. 8:42So, in this case in Blockchain for business it is actually pretty important that privacy 8:47is part of the Blockchain being able to control who can see particular transactional information. 8:55The last thing I want to touch on here is the fact that in permissioned Blockchains 9:00you can really make transactions more efficient. 9:03I think one of the most successful applications of Blockchain technology is something called 9:08smart contracts. 9:10Essentially this is code that's running on the Blockchain and whenever certain conditions 9:14are met, they are automatically executed. 9:17So, in this particular example, whenever that retailer made that purchase order to the manufacturer 9:23for this amount of goods there's probably a manufacturing agent that double checks that 9:28the order has all the necessary information in it, they then probably go to the shipping 9:33agency to make sure they can cover the shipment and if the warehouse has the correct amount 9:37of goods. 9:38They'll then make a shipment order. 9:40Now imagine if we could automate that whole process. 9:44That's what you can do with smart contracts, essentially code that will make sure that 9:47all the necessary information is met, the warehouse has the correct amount of goods, 9:51and then it'll automatically create the shipment record. 9:54If any one of those are conditions is not met it could automatically release a refund 9:58to the buyer. 9:59This greatly speeds up the process of the contract for everyone involved, the retailer, 10:04the shipper, as well as the manufacturer. 10:08Thanks for joining me for this quick overview of Blockchain technology. 10:11We really only scratched the surface, so if you want to see more videos like this be sure 10:15to subscribe. 10:16If you like the video, drop a like and if you have any questions be sure to drop a comment 10:21below. 10:22Thank you.