concept digital signature in category hyperledger

appears as: digital signatures, digital signature, A digital signature, digital signature
Programming Hyperledger Fabric: Creating Permissioned Blockchains

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.

Changes to the log cannot happen willy nilly. Any change (i.e., transaction) has to be first validated using established rules and the system ensures that when the change has to be committed, each copy of the ledger will update in exactly the same way. Meaning the copies of the ledger will never differ or fork from one another and will always stay in sync. Just like the copies of a document you store in OneDrive or Dropbox are kept in sync by the OneDrive or Dropbox software. Every transaction is further digitally signed and endorsed by its committer. Thus we have the additional column in Table 1. 1 that stores the digital signature of the committer. This is completely equivalent to Alice physically signing a check (or cheque depending on where you live) if she were making payment using a paper check for example. The signature serves as proof that Alice consented to and authorized the transaction to happen. The transactions don’t get written to the log one-by-one. Rather transactions are batched together into blocks and blocks get written one-by-one. Each block holds about 1500-3000 transactions and is about 1MB in size. Each block has a pointer or reference to the previous block - hence, the concept of a chain or linked list of blocks. So this, in essence, is what a Blockchain is. It is also being commonly known as Distributed Ledger Technology (DLT) especially in business circles.

We will define blockchain as a peer-to-peer, append-only, transaction log. Transactions are secured by using digital signatures, batched into blocks, and the blocks are back-linked to form a chain. In addition, blockchains usually have a feature known as a smart contract which is nothing but a piece of code that can respond to user input and generate a transaction in response. E.g., the user input could be 2+3 and the smart contract will process that input and generate a transaction which is 5.

Digital signatures are an important blockchain primitive used to secure data in any blockchain (be it Bitcoin, Fabric or any other). Let’s take a moment to understand how they work since a digital signature is one of the key components of the scriptSig and is used to prove ownership of UTXOs. Functionally, they play exactly the same role as physical signatures. But since we are dealing with bits and bytes in this book, there is a different process to sign and prove ownership of electronic data.