<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Immad Naseer on Medium]]></title>
        <description><![CDATA[Stories by Immad Naseer on Medium]]></description>
        <link>https://medium.com/@immad.naseer?source=rss-65f9835876da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*R6iFBJf14wEW7Mo6hra2RA.jpeg</url>
            <title>Stories by Immad Naseer on Medium</title>
            <link>https://medium.com/@immad.naseer?source=rss-65f9835876da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:57:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@immad.naseer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Notion of Trust in Blockchain Systems]]></title>
            <link>https://medium.com/thecapital/notion-of-trust-in-blockchain-systems-e98f25417db0?source=rss-65f9835876da------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98f25417db0</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Immad Naseer]]></dc:creator>
            <pubDate>Thu, 09 Jan 2020 01:14:53 GMT</pubDate>
            <atom:updated>2020-01-12T10:12:07.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G248aHnwEe3Z275K" /><figcaption>Photo by <a href="https://unsplash.com/@joaosilas?utm_source=medium&amp;utm_medium=referral">João Silas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Trust is a central and complex topic in blockchains. We explore the notion of trust in the context of several popular blockchain systems.</h4><p>The notion of trust plays a central part in blockchain systems. Blockchains are designed to allow multiple parties to come together and transact with each other in trust-less or low-trust ways.</p><p>But trust is a complex topic.</p><p>How do blockchains minimize the requirements of trust? Are there certain aspects of a blockchain which require more trust than others? And what exactly are we trusting certain actors with? We need to know the answer to these questions when evaluating whether to use certain blockchain technology for our use case.</p><p>Before proceeding, let’s come up with a working definition of a blockchain so we can analyze the notion of trust in a blockchain system.</p><blockquote>A blockchain system consists of a blockchain data structure (which is a list of authenticated transactions strung together in a tamper-proof list data structure) which is updated in a shared and consistent manner by a blockchain network following agreed-upon protocols.</blockquote><p>A blockchain system consists of a number of actors, such as:</p><ul><li>Participants who propose transactions to be added to the blockchain data structure</li><li>Node(s) which add new transactions to the blockchain data structure</li><li>Node(s) which observe and validate the blockchain data structure</li></ul><p>We’ll study the notion of trust in different blockchain systems.</p><p>Before we do, however, it’s important to understand the concept of trust domains, collusion and visibility and how they relate to each other.</p><h4><strong>Trust domains</strong></h4><p>Nodes within a certain trust domain all trust each other. An example might be participants and nodes all belonging to the same organization, for example. Different trust domains say participants and nodes from different organizations, may not completely trust each other.</p><p>When talking about the notion of trust in blockchains, it is often useful to talk about the number of trust domains in the system instead of the number of raw participants and nodes in the system.</p><h4><strong>Collusion</strong></h4><p>Collusion refers to multiple trust domains coordinating to cheat others. The higher the number of trust domains in the system, the more difficult it is to coordinate attempts to cheat others.</p><h4><strong>Visibility</strong></h4><p>The more visible certain actions are in a blockchain system, the harder it is to cheat others. The less visible the actions, the easier it is to cheat others. While this trade-off isn’t interesting in blockchain systems where all the information is public, this trade-off becomes more important in blockchain systems with privacy features.</p><p>Let’s now turn our attention to the public Ethereum network to better understand it’s trust properties.</p><h4><strong>Public Ethereum Network</strong></h4><p>The public Ethereum network consists of a large number of nodes and participants belonging to a large number of trust domains, evolving the blockchain data structure in a collaborative way.</p><p>Participants propose new transactions to be added to the blockchain data structure and they need to trust the rest of the system to ensure their transactions are added to the blockchain data structure and that the blockchain data structure is evolved correctly and shared with the rest of the system.</p><p>The Ethereum network chooses a new node every 10–20 seconds to add new transactions to the blockchain network. The chosen node can do one of the following:</p><ul><li>It can withhold adding the transaction to the blockchain</li><li>It can add invalid transactions to the blockchain or extend the chain in an invalid way (say, by creating a fork)</li></ul><p>Note that the chosen node can’t change the history of the blockchain as the other nodes in the system all possess a tamper-proof copy of the blockchain up to that point in time.</p><p>If the chosen node withholds a given transaction from the blockchain, a new node will be chosen in the next 10–20 seconds so the transaction will eventually be added to the blockchain data structure. Since the Ethereum network consists of a large number of trust domains, it is very difficult for this node to conduct a coordinated censorship attack against a transaction.</p><p>If the chosen node adds invalid transactions to the blockchain or creates a fork, that attempt will be caught by the other nodes when it gossips the updated data structure to the rest of the network. Since the Ethereum network is a fully visible environment, attempts to extend the blockchain in invalid ways are easily detected and thwarted.</p><p>A high number of trust domains make collusion difficult and high visibility makes extending the blockchain in invalid ways a very difficult proposition.</p><h4><strong>Permissioned Ethereum Network</strong></h4><p>Permissioned Ethereum networks consist of a far fewer number of nodes belonging to a small number of trust domains (but rarely a single trust domain, as that will defeat the purpose of using a blockchain)</p><p>Let’s analyze the trust properties of a private Ethereum network.</p><p>Participants propose transactions to be added to the blockchain data structure just like in the public Ethereum network. The nodes in a private Ethereum network are typically running a protocol like Paxos, Raft or PBFT to select the node which is responsible to add new transactions to the blockchain data structure and gossip the result out to the rest of the network.</p><p>The chosen node can perform the following kinds of attacks:</p><ul><li>It can withhold or delay adding transactions to the blockchain data structure</li><li>It can extend the blockchain data structure in invalid ways</li></ul><p>It’s difficult to prevent a node to withhold or delay adding transactions to the blockchain data structure. Even if a different node from a different trust domain is selected after some time, it’s easy for the small number of trust domains to collude with each other and censor the transaction.</p><p>This is clearly bad. But it’s important to realize that transaction censorship and delay is the only attack vector over here. This might not be acceptable for certain use cases but it might be acceptable for others.</p><p>Extending the blockchain data structure in invalid ways, however, can easily be caught by the rest of the network as the updated blockchain data structure is gossiped out to all the nodes and validated by them all independently. Even if a trusted domain doesn’t have a node participating in the process of extending the blockchain, it will be able to detect attempts to extend the blockchain in invalid ways.</p><p>Permissioned Ethereum networks also suffer from another interesting weakness. Consider a permissioned Ethereum network consisting of nodes from just two trust domains. Now imagine they decide to add nodes from a third trust domain to the network. It’s possible for the two trust domains to collude and rewrite the blockchain history before adding the third party and the third party will be none-the-wiser. This weakness stems from a low number of trust domains which makes collusion easier, and limited visibility as the blockchain is not visible to new trust domains till they are added to the blockchain network.</p><p>One approach to mitigating this weakness can be to periodically anchor the state of the blockchain data structure in a higher visibility and higher trust domain blockchain, such as the public Ethereum network.</p><h4><strong>Hyperledger Fabric</strong></h4><p>Hyperledger Fabric consists of multiple blockchains, called ‘channels’ in HLF parlance. Each channel is only visible to a selected set of nodes. We’ll focus our discussion to the trust properties of just a single channel.</p><p>Participants propose transactions to be added to the blockchain data structure (channel), signed with their private keys.</p><p>The transactions are sent to an orderer node (or set of nodes which collectively operate as a logical node) for inclusion in the blockchain. The orderer node(s) are often operated by a single trust domain.</p><p>While this level of centralization might seem alarming on first look, it’s important to realize that the only power the orderer has to censor or delay transactions for inclusion in the blockchain data structure, similar to the nodes in a permissioned Ethereum network. Even if we did distribute the ordering service among multiple trust domains, collusion between small trust domains is still highly likely and doesn’t completely mitigate the censorship concerns.</p><p>The ordering service broadcasts the updated blockchain data structure to all the participating nodes in a channel and thus any attempt by the ordering service to extend the blockchain data structure in invalid ways can easily be detected by the rest of the network.</p><p>Similar to private Ethereum networks, it’s possible for the existing participants in a channel to lie about the blockchain data structure by rewriting it before adding a third participant to the channel. This weakness once again stems from a low number of trust domains (which makes collusion possible) and visibility only limited to existing participants — the new participant has to take the word of the existing participants regarding the state of the blockchain.</p><h4><strong>Corda</strong></h4><p>On the face of it, a Corda network looks fairly different from the other blockchain systems. But if we look closely, it’s easy to see that Corda consists of many small blockchains, each such chain dealing with the evolution of one or a few states. We’ll call them state-chains, for the lack of a better word. Note that Corda doesn’t use this terminology but we’re using it for the sake of discussion in this article.</p><p>We’ll focus on the evolution of just a single state-chain and analyze its trust properties.</p><p>Nodes propose new transactions to be added to a state-chain, in a manner similar to that in permissioned Ethereum and HLF networks.</p><p>The nodes which play the role of extending the state-chain and sharing it with other nodes differ slightly in Corda. In Ethereum and HLF, a set of nodes are collectively responsible for adding transactions to the chain and then disseminating the updated chain to the rest of the network. In Corda however, the node which proposes the new transaction to the state-chain is responsible for requesting the permission of a ‘notary’ to extend the state-chain and then sharing the extended state-chain with other nodes on a need-to-know basis.</p><p>Corda requires each node wishing to extend the state-chain to obtain signatures from a notary before extending the state-chain. The notary is the entity responsible for ensuring that a particular link in the state-chain is never forked by refusing to sign an extension request if a link in the state-chain has already been extended. As a slight but important digression, it’s quite interesting to realize that Corda’s design allows each link in the state-chain to potentially nominate a different notary. The only constraint is that the notary responsible for a particular link to a state-chain must give its signature before the link can be extended. This design allows a Corda network to scale horizontally when required.</p><p>The notary poses a few interesting challenges. Before we discuss those challenges, it’s useful to know that a notary can either be operated by a single trust domain or be operated as a notary cluster by a few different trust domains. With this context understood, let’s turn to the challenges.</p><ul><li>A notary can refuse to sign the request to extend the state-chain thus leading to a censorship attack. A notary cluster operated by multiple trust domains can also lead to censorship attacks through collusion. Permissioned Ethereum networks and HLF both also suffer from similar censorship problems.</li><li>More seriously, a notary can sign requests to extend the same link in the state-chain multiple times thus leading to state-chain forks</li></ul><p>The second problem is more severe as notaries don’t share the internal data structure they use to maintain which states have been consumed with the rest of the network. A notary cluster with multiple trust domains mitigates this problem slightly but doesn’t solve it. Unlike Ethereum and HLF networks where the additions to the blockchain data structure are distributed to all participants and invalid additions and forks can be easily detected, notaries in Corda do not disseminate this information widely due to privacy concerns leading to this risk.</p><p>Notaries in a Corda network thus require a higher level of trust compared to orderers in HLF or nodes which add transactions to the blockchain in Ethereum as they can lead to forks in addition to just censorship attacks.</p><p>This risk factor can be mitigated by disseminating the information notaries maintain more widely, albeit at a risk to privacy. This is a fruitful area to investigate as creative solutions can be used to preserve privacy while still guaranteeing correctness, such as TEE based execution, zero-knowledge proofs or other such techniques.</p><p>Finally, similar to permissioned Ethereum networks and HLF, state-chains suffer from another weakness common to all systems where the chain is only known by a few participants but later shared to another participant. The existing set of participants can collude to rewrite the state-chain before including the additional participant. The additional participant has to take on that risk or trust at least one trust-domain involved in the state-chain to know it won’t collide with others.</p><p>Note that Corda’s approach to building a privacy-first distributed ledger is quite insightful and we’ll talk about it in further detail in a future article. The point of this section is not to paint any ledger in a negative light but rather to talk about potential weaknesses so readers can carefully assess the strengths and risks when choosing a ledger for their use case.</p><h3><strong>Recap</strong></h3><p>We analyzed the trust properties of various blockchain systems: the public Ethereum network, private Ethereum networks, HLF as well as Corda networks.</p><p>We saw that a high number of trust domains make collusion less likely, though private networks often don’t have a choice as they consist of nodes belonging to a smaller number of trust domains.</p><p>We also saw that the most common attack vector in permissioned networks with a few trust domains is transaction censorship or delay. As long as the updated blockchain data structure is disseminated to all the participants however, it is not possible to extend the blockchain data structure in invalid ways. We also saw that lower visibility of information due to privacy concerns can lead to entities extending the chain in potentially conflicting ways, such as in the case of Corda notaries which thus require a higher level of trust compared to chains where all the information is widely disseminated to all the participants.</p><p><a href="https://twitter.com/thecapital_io">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98f25417db0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thecapital/notion-of-trust-in-blockchain-systems-e98f25417db0">Notion of Trust in Blockchain Systems</a> was originally published in <a href="https://medium.com/thecapital">The Capital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing and Contrasting Different Blockchain Systems]]></title>
            <link>https://medium.com/thecapital/comparing-and-contrasting-different-blockchain-systems-b391178bbd79?source=rss-65f9835876da------2</link>
            <guid isPermaLink="false">https://medium.com/p/b391178bbd79</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[corda]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Immad Naseer]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 03:39:55 GMT</pubDate>
            <atom:updated>2020-01-09T02:44:17.637Z</atom:updated>
            <content:encoded><![CDATA[<h4>By <a href="https://medium.com/u/65f9835876da">Immad Naseer</a> on The Capital</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*33YPYAi2AJ1ky0Q1" /><figcaption>Photo by <a href="https://unsplash.com/@eprouzet?utm_source=medium&amp;utm_medium=referral">Eric Prouzet</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are myriad blockchain systems out there, from a few large public blockchains such as the public Bitcoin and public Ethereum networks, to a number of smaller blockchain systems, such as private Ethereum networks, Hyperledger Fabric, Corda, among others.</p><p>They all have similarities but also differ from each other in interesting ways. In this article, we will study how all these systems contrast and relate to each other. We will assume that you have a passing familiarity with these blockchain systems. If you don’t, there are excellent introductions available elsewhere on the internet. We won’t delve in the specifics of any of these blockchains but will study them at a level of abstraction which hides the irrelevant details and allows us to focus on the essential differences. This will help us understand the overall design space these systems occupy with greater clarity.</p><p>Before we begin, we’ll make a subtle but very useful distinction — the distinction between the blockchain data structure and the blockchain network.</p><p>A blockchain data structure is a collection of authenticated transactions, strung together in a tamper-proof list data structure. A blockchain network evolves the blockchain data structure in a shared and consistent manner following agreed-upon protocols such that all participants have the same view of the blockchain data structure. We’ll refer to the data structure as well as the network simply as ‘blockchain’ when the meaning is clear from context.</p><h3><strong>Blockchain data structure</strong></h3><blockquote>A blockchain data structure is a collection of authenticated transactions, strung together in a tamper-proof list data structure.</blockquote><p>Let’s discuss each of these terms in more detail.</p><h4><strong>Authenticated</strong></h4><p>Blockchains consist of transactions which are signed by entities using their private keys. The signature links the transactions to unique entities and also makes it impossible for anyone to tamper with the contents of the transaction.</p><p>Blockchains like Bitcoin and Ethereum use a simple set of private/public key pairs. Other blockchains like HLF and Corda use certificates (which contain private/public key pairs along with additional metadata). Public blockchains don’t restrict who can include transactions in the blockchain while private blockchains restrict the set of entities which can include transactions in the blockchain through various mechanisms.</p><p>While authenticated transactions by participants belonging to the same trust domain (say, the same organization) would technically qualify as a blockchain, blockchains are often used in situations where collaboration is needed across trust domains. Blockchains thus often contain authenticated transactions by participants belonging to multiple different trust domains (different organizations, jurisdictions, etc)</p><h4><strong>Transactions</strong></h4><p>We mentioned that blockchains contain authenticated transactions. But what exactly is a ‘transaction’ in the context of a blockchain? While all blockchains contain data signed by a participant&#39;s private key, the nature of that data differs depending on the blockchain system.</p><p>An Ethereum blockchain, for example, consists of a series of signed ‘instructions’. Some instructions deploy new contracts. Other instructions call methods on already deployed contracts passing in some parameters. But it’s all just instructions. A node in an Ethereum network is supposed to read all these instructions in the blockchain data structure and execute them locally to figure out the state of this ‘blockchain computer’.</p><p>HLF blockchains, on the other hand, consists of a series of read/write sets. Each signed transaction is a set of key/value pair writes, along with the set of versioned key/value pairs which were read to produce the write set. A node in the HLF blockchain reads this data to construct a local key/value database.</p><p>A Corda ‘transaction’ on the other hand contains a set of input states going to a set of output states. A Corda node maintains the list of these state objects, marking older state versions as invalid as they transition to new state versions.</p><p>On the face of it, there doesn’t seem to be a lot of similarity between the kind of data the different systems are recording on the blockchain. But they are referred to as a ‘transaction’ as they allow developers to write logic (executing either inside or outside the blockchain) which can update the state of world in a transactional way i.e. update the state of the world after inspecting the existing state of the world w/o having to worry about any intervening operation changing things in the middle. Databases provide similar transactional guarantees to developers. It’s the exact same idea. For those of you familiar with transaction consistency levels, all the blockchain systems mentioned above, in fact, provide <em>serializable </em>transaction guarantees.</p><h4><strong>Tamper-proof chain data structure</strong></h4><p>Authenticated transactions alone aren’t enough. We need to be able to string a collection of authenticated transactions by participants belonging to multiple trust domains in a specific order to do something interesting. The precise ordering of these authenticated transactions is very important and shouldn’t be tampered with as otherwise it might lead to a different outcome. It is thus important to string these transactions in a tamper-proof chain data structure.</p><p>An interesting consequence of stringing together a list of authenticated transactions, each of which modifies the state of the world in some way, is that we get a full audit trail of how the state of the world came to be a certain way. This property is often very useful to have.</p><h4><strong>Quick aside</strong></h4><p>As a quick aside, sometimes it’s helpful to contrast a system with something similar but not the same to better understand its boundaries. Consider a git repository as a data structure. If you read up on the internals of how git repositories work, you’ll learn that the commits are organized in a tamper-proof tree data structure, hash linked in a way reminiscent of a blockchain. It differs from blockchains in multiple ways however. It’s a tree data structure as opposed to a list. It also doesn’t contain authenticated/signed data by default though it can certainly support signed commits if desired. What about transactionality? I’ll leave that as an exercise for you to ponder upon.</p><p>With this aside out of the way, let’s turn our attention to blockchain networks.</p><h3><strong>Blockchain Networks</strong></h3><p>A blockchain data structure is only so useful w/o a means to share it with other participants and evolve it collectively in a consistent manner. Blockchain networks are what makes a blockchain tick and grow. Let’s study them in more detail.</p><p>A blockchain network consists of various actors:</p><ul><li>Participants which propose new transactions to be added to the blockchain data structure, signed with their private keys</li><li>Node(s) which evolve the blockchain data structure by adding new transactions to it</li><li>Node(s) which observe the additions to the blockchain, and optionally, but crucially, validate whether the additions to the blockchain are valid</li></ul><p>The blockchain network as a whole should satisfy the following crucial safety property:</p><blockquote>The blockchain data structure should only ever grow linearly and never fork into a tree</blockquote><p>Let’s study a few different blockchain networks and see how they operate.</p><h4><strong>Public Ethereum Network</strong></h4><ul><li>Anyone can propose a new transaction to be added to the Ethereum blockchain, signed with their private key (we are intentionally eliding some details here, such as the use of <em>gas</em>)</li><li>The Ethereum network consists of a set of nodes gossiping with each other, all trying to solve a cryptographic puzzle to get a chance to evolve the blockchain data structure. Statistically, only one node solves the puzzle every 10–20 seconds and adds a new block of transactions to the blockchain data structure and disseminates the information to the rest of the network</li><li>A subset of nodes in the network observe changes, validate them and update their local copy of the blockchain data structure if the additions are valid. Other nodes, such as Ethereum light clients only observe the changes w/o validating them</li></ul><p>The public Ethereum network (using proof-of-work style consensus) ensures that the blockchain evolves linearly and doesn’t devolve to a tree through forks by ensuring that only one node (out of many) can add the next block of transactions every 10–20 seconds thus ensuring two nodes don’t try to extend the chain in different ways at the same time. Furthermore, any attempt by a node to maliciously fork a blockchain (say, by appending the next block of txs to an older block) is promptly rejected by the rest of the network as the information about the faulty addition disseminates through the network.</p><h4><strong>Private Ethereum Networks</strong></h4><p>Private Ethereum networks often contain <em>far</em> fewer number of nodes than the public Ethereum network.</p><ul><li>A smaller number of authorized participants propose transactions to be added to the blockchain</li><li>A small number of nodes, typically on the order of 9 or so, select a node between themselves, using Paxos/Raft/PBFT style consensus, to add the next set of transactions (block) to the blockchain</li><li>A larger number of nodes observe and validate the transactions added to the blockchain; they can reject the addition as invalid if the additions don’t pass validation or they notice a fork of the chain</li></ul><p>Private Ethereum network relies on Paxos/Raft/PBFT style consensus protocols to ensure that only one node is able to extend the blockchain in each round of the protocol thus preventing forks of the blockchain resulting from two nodes extending the same chain in different ways in the same round.</p><h4><strong>Hyperledger Fabric</strong></h4><p>HLF networks typically consist of multiple blockchains, each blockchain called a ‘channel’, shared between a subset of the overall participants in the system. We’ll just focus on the operation of just one channel/blockchain in this article.</p><ul><li>A small number of authorized participants can add transactions to the blockchain</li><li>Typical HLF deployments delegate the responsibility of adding new transactions to the blockchain to node(s) in a single trust domain, usually by using a Kafka queue operated by one organization. This service is called the ‘orderer’ and HLF deployments have a single orderer</li><li>A larger number of validating ‘peer’ nodes observe and validate the new transactions added to the blockchain by the orderer. Non-validating peer nodes simply observe the changes validated by the validating peer nodes</li></ul><p>HLF networks ensure that the blockchain only ever grows linearly by delegating the responsibility of extending the blockchain to a single service called the ‘orderer’.</p><p>On the face of it, this level of centralization sounds alarming. But let’s think deeper about it. What damage can a (centrally managed) orderer inflict on the network? An orderer cannot tamper with the transactions proposed by the participants as they are signed by their signatures and any tampering will be detected. It can similarly not change the history of the blockchain already shared with the rest of the network as all the authenticated transactions are strung together in a tamper-proof list data structure. It can however decide to censor certain transactions, delay adding them to the blockchain data structure and decide upon the exact ordering the new transactions are added to the blockchain.</p><p>When looked at this way, we see that while an orderer clearly has power over when and whether new transactions are added to the blockchain, it can’t tamper with the transactions themselves nor change the history of the blockchain. A misbehaving orderer can attempt to fork the blockchain by extending the same block in multiple different ways, though such an attempt will be easily detected by the rest of the system so is unlikely to happen. Having a single orderer in the system leads to greater efficiency and throughput but with the aforementioned trade-offs.</p><p>The above trade-off is clearly not acceptable in all situations but some systems might be perfectly okay with this kind of a trade-off. Do you agree?</p><h4><strong>Corda</strong></h4><p>Corda is a distributed ledger with a heavy focus on privacy. While on the face of it, it looks fairly different from other blockchain systems, if we look deep enough, we realize that a Corda network consists of nodes sharing many different blockchains, each blockchain typically much smaller in size and only dealing with the evolution of one or a few states.</p><p>We’ll refer to these smaller chains as ‘state-chains’ and focus on how the network evolves a particular state-chain. Note that Corda doesn’t use the terminology of state-chain itself; we’re calling them state-chains in this article for the sake of discussion and comparison with other systems.</p><ul><li>Like private Ethereum and HLF networks, only a smaller number of authorized participants can propose new transactions to be added to the state-chain</li><li>Unlike Ethereum and HLF, where the entity which proposes the transaction and the entity which adds it to the chain are typically different, in Corda, they are one and the same. The node which proposes the new transaction is the node which ends up evolving the state-chain as well. The node then shares the extended state-chain with other participants on a need-to-know basis</li><li>The node which evolves the state-chain shares it with other nodes (typically a small subset of all nodes in the system) on a need-to-know basis and they all observe and validate the complete state-chain upon receiving it</li></ul><p>This is an interesting design and raises a few questions.</p><p>If the node which proposes the transaction is the same as the node which extends the state-chain, what’s stopping that node to extend the state-chain in conflicting ways, resulting in a fork? This is particularly problematic as the node doesn’t share the extended state-chain with the complete network but only a few other nodes, on a need-to-know basis. It’s thus possible to imagine that it gives one extended version of the state-chain to one set of participants, and a forked different version of the state-chain to a different set of participants. Since the two sets don’t talk to each other, they won’t be able to detect this fork.</p><p>Corda solves this problem by requiring the node to get the blessing of a ‘notary’ (in the form of the notaries signature) for its extension to the state-chain to be considered valid. A notary is responsible for ensuring that a link in the state-chain is only ever extended once. It’s tasked with remembering that a link has been extended and is supposed to refuse to sign requests to extend it a second time.</p><p>This solves the above problem but raises a few challenges of its own.</p><p>Just like orderers in HLF, a notary can refuse to sign the request to extend a state-chain, leading to a censorship attack.</p><p>More problematic, however, a malicious notary can lie and sign requests to extend the same state-chain twice thus leading to a state-chain fork. Unlike HLF where any such attempt by the orderer can immediately be detected by the rest of the network as the blockchain data structure is broadcast to all participants, a similar behavior by the notary won’t be detected by the rest of the system as the notary doesn’t share its internal information with anyone. The forking attempt, therefore, might never be detected if the two different forks of the state-chain are shared to a disjoint set of nodes.</p><p>Notaries thus require a higher level of trust than orderers in HLF.</p><p>One approach to mitigate this risk is to run a notary cluster where the nodes running the notary cluster belong to multiple trust domains all collaboratively running the service. This mitigates the risk but doesn’t eliminate it as the actors in the different trust domains can collide with each other. Disseminating this information to the entire network will eliminate this risk factor but sacrifices the privacy guarantees which Corda provides. There are however techniques which can prevent malice while still respecting privacy, such as TEE based execution or zero-knowledge proofs.</p><p>Note that while this comparison might lead you to consider Corda as being less attractive compared to other ledgers due to the higher trust requirements for notaries, do keep in mind that Corda has other desirable properties which we’ll touch upon in a future article. The above analysis should inform your decision when choosing ledgers but shouldn’t be the sole criteria for choosing between them.</p><h3><strong>Recap</strong></h3><p>This was a fairly quick and high-level tour of a few popular blockchain systems which attempted to abstract out the details so we can see the similarities and also appreciate the ways in which they differ from each other.</p><p>From a data structure point of view, all these blockchain systems are fairly similar to each other. They mostly differ in the kind of data they store on the blockchain and how they achieve transactionality.</p><p>From a network point of view, they differ from each other in more interesting ways. Public and private Ethereum networks are (unsurprisingly) very similar to each other and mostly differ in scale and choice of consensus protocols. HLF is fairly similar to Ethereum but centralizes the responsibility of evolution of the blockchain data structure. Corda differs the most in its overall approach to privacy (which we did not discuss in this article) but is similar if we just focus on a single state-chain. Similar to HLF, Corda also centralizes the responsibility of safely evolving a state-chain in a linear fashion to a notary (or notary cluster). Notaries however require a higher level of trust compared to orderers due to privacy considerations.</p><p><a href="https://twitter.com/thecapital_io">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b391178bbd79" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thecapital/comparing-and-contrasting-different-blockchain-systems-b391178bbd79">Comparing and Contrasting Different Blockchain Systems</a> was originally published in <a href="https://medium.com/thecapital">The Capital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>