<?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 Monica Quaintance on Medium]]></title>
        <description><![CDATA[Stories by Monica Quaintance on Medium]]></description>
        <link>https://medium.com/@QuaintM?source=rss-c397f6fc1348------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*af43FuDaIs8fsbLrkrtxfQ.jpeg</url>
            <title>Stories by Monica Quaintance on Medium</title>
            <link>https://medium.com/@QuaintM?source=rss-c397f6fc1348------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 22:56:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@QuaintM/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[Chainweaver Allocation Release Walkthrough]]></title>
            <link>https://medium.com/@QuaintM/chainweaver-allocation-release-walkthrough-9a76c47c29d1?source=rss-c397f6fc1348------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a76c47c29d1</guid>
            <category><![CDATA[kadena]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Monica Quaintance]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 21:07:17 GMT</pubDate>
            <atom:updated>2020-10-19T17:15:45.953Z</atom:updated>
            <content:encoded><![CDATA[<p>This walkthrough is for SAFT investors whose allocations were written into the genesis block. To receive tokens you must release your allocations on the blockchain into your pre-generated allocation accounts. If you haven’t received your account names yet, please reach out to me.</p><p>To get started, upgrade to Chainweaver Beta Version 2.10, available <a href="https://www.kadena.io/chainweaver">here</a>. Open the app and make sure you can see your key in the keys page.</p><p><strong>Note</strong>: If you are not using the computer that was used to generate the public key you submitted to Coinlist, you must run an account recovery using your seed phrase to recreate that account. Then hit “generate key” to regenerate your public key.</p><p>Next, go to the Contracts page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGR3JDshircB2QSIZrWghQ.png" /></figure><p>On the right side, navigate to Module Explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nc6q6cZcakt4Q2ltzwSlQ.png" /></figure><p>Scroll to coin contract on Chain 0 under Deployed Contracts and click “View.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pxe0HH1k9SwTRAGVCtV_Ww.png" /></figure><p>Scroll down to the Functions section and call the “release-allocation” function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CDLtS9P6qgZhsBdO9YpQw.png" /></figure><p>In the “account” field, put the name of the account from which you want to release an allocation. Kadena provides an account for each month of vesting named similarly to “SA &lt;1&gt;_2” —each month has a unique identifier. Please make sure there’s a space before the ‘&lt;’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdgwtWbitKYiU9wNGV9vIQ.png" /></figure><p>Click next to move to Configuration. Set gas to 0.000000001 and your public key account as the Transaction Sender and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5wYQy8tAvfd0ghQjUiJ5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUTrdupH1WKWgDr7bKsjFw.png" /></figure><p>In Sign, <strong>do not select an account to be the gas payer</strong> under “Grant Capabilities” — leave it blank. This step is very important! Then scroll down to “Unrestricted Signing Accounts” and select the public key you registered with Kadena.</p><p><em>A longer explanation for the curious: If you add a capability for gas payer, Pact will automatically disable any capabilities you *don’t* specify, including the ability to release allocations. Pact does this for safety reasons — most functions have their own associated capability, so you can specify exactly what powers you want your transaction to have. However, release-allocation is an unusual edge case that doesn’t have a capability, which means if we select a gas payer we’ve banned releasing allocations and we can’t add it back. Therefore, we can’t specify any capabilities in this transaction at all. By using the Unrestricted Signing Method you are telling Pact to grant the transaction full powers, which removes the need to have any capabilities specified, including gas payer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3ssfW00JBzuAGgjZ-GHCw.png" /></figure><p>Navigate to Preview. Ignore the message that informs that no gas payer is selected! Scroll down to the bottom. The formal verification checker will validate your transaction — you should see 0.00 KDA change in balance and a response of “Allocation successfully released to main ledger.”</p><p><em>(There’s no change in balance here because you’re not making a transfer, you’re creating coins out of nowhere. We’ll check your balance in the next step.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*2fRGrSLQHs9_QkOgeKqnTw.png" /></figure><p>Hit Submit to publish your transaction. When you have been notified that the transaction has been mined to the blockchain, navigate to <a href="https://balance.chainweb.com/">https://balance.chainweb.com/</a> and put in your allocation account name (e.g. SA &lt;1&gt;_2. <strong>Not</strong> your public key account). Your released allocation amount for that month should show in your allocation account.</p><p>You can leave your tokens in your allocation account if you wish — there’s no need to transfer them right away unless you want to do something with them. However, if you want to transfer your tokens to your Chainweaver wallet the instructions are below.</p><h3>Instructions for transferring tokens from an allocation account to your Chainweaver wallet</h3><p>Go to the Keys page, click “Details” next to the key you registered with Kadena, and copy your public key, which also doubles as your account name. Paste this public key somewhere you can retrieve it later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgPbmiDA2M8G8SDlS4B5uA.png" /></figure><p>Back on the Contracts page in the Module Explorer, call the “transfer” function, located between “precision” and “transfer-create.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-k6uECrvg0NSnjcLwkie8Q.png" /></figure><p>The transaction sender is your allocation account (e.g. SA &lt;1&gt;_2). The receiver is the Chainweaver public key account name you copied earlier. In “amount” put the amount of tokens you want to transfer. The Formal Verification system will check your transaction before you send, so you don’t need to send a test transaction before the real one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7NEeSdwRnufhSkSyBfcMA.png" /></figure><p>Hit next to move to Configuration, set gas price to 0.000000001, and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TZEhtKA7av2Ih_dOmxVmcA.png" /></figure><p>In the Sign section under “Grant Capabilities,” add your Chainweaver account as the gas payer for this transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8zP6YJWZ-aIWTnySgH8nQ.png" /></figure><p>Hit next to navigate to Preview, scroll down to the bottom, and you should see an error message in the Raw Response section in the form of</p><pre>“Error from (<a href="http://us-e1.chainweb.com/">us-e1.chainweb.com</a>): : Failure: Managed capability not installed: (coin.TRANSFER “S# &lt;#&gt;_# “[Chainweaver Public Key] [amount])</pre><p>Copy the missing capability (everything from the left parentheses immediately before “coin.Transfer” all the way to the end) and go back to Sign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*QC0GLyDwUP_BybtDZFiWKA.png" /></figure><p>In Sign, click the + button above “Grant Capabilities” and paste the capability you copied into the left bottom box under (coin.GAS). Choose your Chainweaver account on the right side to grant this capability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*6QEBQ4YEA1d9wbBxeY8T5Q.png" /></figure><p>Hit Next to go to Preview and scroll down to Raw Response. You should see “Write succeeded”. Double check your details in “Anticipated Transaction Impact” (account name, public key, change in balance) and hit Submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*jI6xMnjZL5FvLGv9NohtwA.png" /></figure><p>When you are notified that your transaction has been mined to the blockchain, check that your balance was successfully updated in your wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GOlFi4DLhsj68PlaeC6N2Q.png" /></figure><p>For more information on how transfers work on the Kadena blockchain you can refer to <a href="https://medium.com/kadena-io/kadena-public-blockchain-getting-started-with-transfers-153bf87d6824">this Medium post</a> by one of our engineers.</p><p><em>Huge thank you to </em><a href="https://medium.com/u/9ac079f79e74"><em>Santiagox</em></a><em> </em><a href="https://twitter.com/santiagoroel"><em>(Santiago Santos</em></a><em>), one of our rockstar investors, for being the guinea pig for this article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a76c47c29d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Command Line Instructions for Release-Allocation]]></title>
            <link>https://medium.com/@QuaintM/command-line-instructions-for-release-allocation-818671e0c9aa?source=rss-c397f6fc1348------2</link>
            <guid isPermaLink="false">https://medium.com/p/818671e0c9aa</guid>
            <category><![CDATA[pact]]></category>
            <dc:creator><![CDATA[Monica Quaintance]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 18:25:37 GMT</pubDate>
            <atom:updated>2020-01-23T15:54:04.704Z</atom:updated>
            <content:encoded><![CDATA[<h3>Command Line Allocation Release Walkthrough</h3><p>This walkthrough is for SAFT investors whose allocations were written into the genesis block. To receive tokens you must release your allocations on the blockchain into your pre-generated allocation accounts. If you haven’t received your account names yet, please reach out to me.</p><p>These instructions guide you through creating a raw YAML transaction file, running it through the Pact interpreter to process and sign your transaction, testing it locally, and submitting it to Kadena mainnet.</p><p>At this time, Pact is supported on Mac and on Linux. Our current recommendation for Windows users is to install Linux in a virtual machine and proceed with the Linux instructions.</p><h3>Set up Pact</h3><p>First, install Pact using the instructions found here: <a href="https://github.com/kadena-io/pact#installing-pact">https://github.com/kadena-io/pact#installing-pact</a></p><p>On your command line, run the following to check that Pact is working and that your current version is 3.3.1:</p><pre>pact -v</pre><h3>Creating a YAML for release-allocation</h3><p>Navigate to the location in which you want to store your transaction code and make a new YAML file. Open that file your favorite text editor.</p><p>Copy the following text into your YAML file:</p><pre>code: |-<br> (coin.release-allocation &lt;allocation account&gt;)<br>publicMeta:<br> chainId: “0”<br> sender: &lt;my regular account&gt;<br> gasLimit: 600<br> gasPrice: 0.000000001<br> ttl: 100000<br> creationTime: &lt;time&gt;<br>networkId: “mainnet01”<br>keyPairs:<br> — public: &lt;key&gt;<br> secret: &lt;key&gt;<br>type: exec</pre><p>The fields in brackets, i.e. &lt;&gt;, you should fill out per your own information. “Allocation account” is the account to which you are currently releasing funds. “My regular account” is the account that was created for you on Chain 0, the name of which matches your public key. Your public and private key go at the bottom. To pull the current time in milliseconds, execute the following python command in your command line:</p><pre>python -c ‘from time import time; print int(round(time()))’</pre><p>When filled out, your YAML will resemble this one:</p><pre>code: |-<br> (coin.release-allocation “SA &lt;0&gt;_111”)<br>publicMeta:<br> chainId: “0”<br> sender: “196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382”<br> gasLimit: 600<br> gasPrice: 0.000000001<br> ttl: 100000<br> creationTime: 1578678824<br>networkId: “mainnet01”<br>keyPairs:<br> — public: 196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382<br> secret: privatekeygoeshere<br>type: exec<br>```</pre><h3>Testing your transaction</h3><p>Save your YAML file and execute the following command in Pact to test your transaction locally (replace your own filename into the command):</p><pre>pact -l -a ~/dev/my-allocation-release.yaml | curl -H “Content-Type: application/json” -d @- <a href="https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/local">https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/local</a></pre><p>You should receive a response from the host telling you:</p><pre>{“status”:”success”,”data”:”Allocation successfully released to main ledger”}</pre><h3>Executing your transaction</h3><p>Now send your transaction to mainnet:</p><pre>pact -a ~/dev/my-allocation-release.yaml | curl -H “Content-Type: application/json” -d @- <a href="https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/send">https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/send</a></pre><p>A successful transaction will return a request key, which you can poll to receive its status:</p><pre>curl -H “Content-Type: application/json” -d ‘{“requestKeys”:[“CgjWWeA3MBmf3GIyop2CPU7ndhPuxnXFtcGm7-STMUo”]}’ -X POST <a href="https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/poll">https://us-e1.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/poll</a></pre><p>When your transaction has been mined on the blockchain, you should be able to check your allocation account’s balance using the balance checker at <a href="https://balance.chainweb.com/">balance.chainweb.com</a> with the target server of us-e1.chainweb.com and your allocation account name (e.g. SA &lt;0&gt;_111).</p><p>You can leave your tokens in your allocation account if you wish — there’s no need to transfer them right away unless you want to do something with them. If you want to transfer your tokens, instructions are below.</p><h3>Transferring tokens</h3><p>To transfer tokens out of your allocation account, you can create a new YAML file with the following code:</p><pre>code: |-<br> (coin.transfer &lt;from&gt; &lt;to&gt; &lt;number of tokens&gt;)<br>publicMeta:<br> chainId: “0”<br> sender: &lt;from&gt;<br> gasLimit: 600<br> gasPrice: 0.000000001<br> ttl: 100000<br> creationTime: &lt;regenerate this&gt;<br>networkId: “mainnet01”<br>keyPairs:<br> — public: &lt;public&gt;<br> secret: &lt;secret&gt;<br> caps:<br> — name: “coin.TRANSFER”<br> args: [&lt;from&gt;, &lt;to&gt;, 1.0]<br> — name: “coin.GAS”<br> args: []<br>type: exec</pre><p>For example, the filled out YAML might look like:</p><pre>code: |-<br> (coin.transfer “SA &lt;0&gt;_111” “196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382” 1.0)<br>publicMeta:<br> chainId: “0”<br> sender: “196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382”<br> gasLimit: 600<br> gasPrice: 0.000000001<br> ttl: 100000<br> creationTime: 1578678824<br>networkId: “mainnet01”<br>keyPairs:<br> — public: 196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382<br> secret: privatekeygoeshere<br> caps:<br> — name: “coin.TRANSFER”<br> args: [“SA &lt;0&gt;_111”, “196478ebeec5238ff2f29e8458ff6715ef75b81525d5769d48bc320ee3ef3382”, 1.0]<br> — name: “coin.GAS”<br> args: []<br>type: exec</pre><p>Test and execute this YAML using the same method as the release allocation.</p><p>For more information about executing transactions using Pact and the command line, you can read <a href="https://medium.com/kadena-io/kadena-public-blockchain-getting-started-with-transfers-153bf87d6824">the transfers guide</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=818671e0c9aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security in Kadena’s Public Blockchain]]></title>
            <link>https://medium.com/kadena-io/security-kadena-chainweb-blockchain-97e5bdf88c29?source=rss-c397f6fc1348------2</link>
            <guid isPermaLink="false">https://medium.com/p/97e5bdf88c29</guid>
            <category><![CDATA[proof-of-work]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Monica Quaintance]]></dc:creator>
            <pubDate>Thu, 01 Nov 2018 19:13:48 GMT</pubDate>
            <atom:updated>2018-11-07T17:29:35.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cm0blm2TztfEkRFW1fkbGA.png" /><figcaption>Example of simple blockchain vs. two-chain configuration from Chainweb 2018 whitepaper (Martino, Quaintance)</figcaption></figure><p>As awareness of <a href="https://kadena.io/">Kadena</a> and our blockchain protocol <a href="http://kadena.io/docs/chainweb-v15.pdf">Chainweb</a> grows, I see the same misunderstandings about how braided Proof of Work (PoW) functions, leading to repeated earnest but incorrect critiques. This issue is understandable as scalability research and analysis is still in its infancy, and we are still inventing a shared language for describing Byzantine Fault Tolerant (BFT) at scale systems.</p><p>People commonly raise one or more security issues from a set of scenarios that on the face seem different, but underneath share a core property. Examples I’ll discuss in this post include:</p><ul><li>It’s easy for me as a miner to dedicate all my hash power to one chain, overwhelm / make all the blocks on a single chain, and thereby corrupt the network with censorship / bad blocks / etc.</li><li>It’s easy for me with control of one chain to censor that chain and thereby halt the network</li></ul><p>Both of these scenarios start with the same primary assumption: that by dedicating hash power, an adversary can “take control” of a Chainweb chain, as if the chain were a voting node in a deterministic (e.g. PBFT) or non-POW (e.g. POS) Byzantine Fault Tolerant system.</p><p>These scenarios attempt to view Chainweb through the lens of a staked sharding system, in which there is some game theoretic or information theoretic model under which you trust ledger states that you didn’t generate. However, these issues do not apply to Chainweb, and arise from a fundamental misunderstanding in how Chainweb functions, and I’ll address and provide additional clarity on these attacks below.</p><h3>Proof-of-Work in a culture of Proof-of-Stake</h3><p>It’s important to not forget that when Bitcoin was first proposed, PoW was still unproven. Once economics are injected into a consensus algorithm setting, it’s very difficult to show that a formal proof of the theoretical behavior of an algorithm will apply when it is set loose upon the real world. Game theory is our best tool for modeling human behavior at the required granularity and yet it makes assumptions about the rationality of people’s behavior. Only after Bitcoin was released into the wild and behaved as expected for years did many begin to believe that PoW-based trustless consensus actually works. It has proven to truly be a master stroke of design.</p><p>The <em>work</em> in Proof of Work, i.e. exchanging energy for hashes, has been proven by the test of time to be a valid primitive for securing the consensus protocol of a network. We have no evidence so far that staking, or securing a network using its own internal currency, will be a valid alternative to underpin a consensus protocol, and the field of trustless consensus is still too new to know how to test the strengths of its foundations at this time. This isn’t to say that staking cannot function as a consensus primitive, just that we don’t yet know if it is a viable alternative to work.</p><h3>Chainweb is an evolution of Nakamoto Consensus</h3><p>Much of discussion around scaling has been shaped by Jae Kwon, Dominic Williams, and Vlad Zamfir’s work to apply traditional academic BFT research to blockchains. Chainweb is explicitly not part of that paradigm; Chainweb is unique in its status as a purely-POW-based scaling solution.</p><p>People quite commonly misinterpret the way our consensus mechanism functions, generally when they are using a perspective based on PoS, but these systems use fundamentally different models for replication of a ledger. To properly consider replication in Chainweb, we must emphasize a core principle of the network:</p><p><em>Chainweb is analogous to a braided Bitcoin. Miners mine the network, which in Chainweb means mining multiple chains simultaneously. When we say nodes, we mean parallel chains, NOT validator nodes in a voting system. We use the word “chain” for a reason: each node in the Chainweb base graph is its own complete blockchain. Under this architecture, miners have an opportunity to mine blocks on all chains all at the same time.</em></p><p>Miners are free to select which chains they mine and are not sorted via allotment (e.g. sortition in PoS) to specific chains. Moreover, they have an incentive to efficiently allocate their hash power to different chains on the braid in ad hoc manner so that they maximize their chances of finding as many blocks as possible. The biggest difference between Chainweb and sortation-based solutions is that in a sortation-based solution only the members of the committee have an incentive to monitor and validate a shard. In Chainweb, there might be a profitable mining opportunity on any chain at any time, so all miners have incentives to watch and validate all chains.</p><p>Sharding in PoS is fundamentally different from the partitioning of ledger state seen in Chainweb (e.g. peer/parallel chains). In PoS, sharding consensus participants are not watching (replicating and validating) every shard looking for opportunities to create/validate the next block. In contrast, Chainweb has an incentive for every consensus participant to watch for opportunities everywhere across the network. This structure is how Chainweb allows for local (single chain) transactions that fall under a global consensus umbrella.</p><p>We repeat in many materials, talks, and posts that we expect most miners for Chainweb will mine the entire Chainweb network in large pools because of the economies of scale. Large mining pools will validate headers and peer blocks internally (i.e. cross-check and execute previous/new blocks) and mine (i.e. create new “latest” blocks) for every chain in Chainweb. The benefits of scale for electricity, hardware, and direct trusted message propagation in pools are too critical to ignore in an attempt to design a world in which all mining is performed by single-GPU miners. Mining a network <em>should</em> be a profitable business in which a miner will invest significant resources–this participation aligns the interests of miners, users, and token holders. Invested miners will want a correctly-aligned network to succeed as designed.</p><p>In Chainweb, consensus infrastructure (servers, fiber, memory pools, etc.) is parallelized without sacrificing security or decentralized block production in the pursuit of throughput. Ultimately, this leaves network bandwidth (required for global replication) the resource that becomes the most costly for scale. As such, the maximum size of a Chainweb network looks to be capable of 10K-100K transactions per second (TPS), though the limit of the network is still theoretical. This throughput is still a massive improvement over existing technology. Second layer scaling solutions on Chainweb will provide additional TPS, because any second-layer scaling approach can be applied to any base layer protocol. With Chainweb, however, the base layer will have enough bandwidth to ensure low fees for moving between layer-two channels and the base layer.</p><p>A single mining pool will always be able to mine the entire Chainweb network. Even in the most extreme case, e.g. a 100K TPS configuration, anyone would be able to replicate the entire network so long as they are willing to pay for the servers and bandwidth required, and for large mining conglomerates this infrastructure requirement will still be profitable. Chainweb provides a practical roadmap for solving scaling through the use of infrastructure.</p><p>Mining a single new block in Bitcoin today is very expensive in terms of hash power. Chainweb provides a mechanism to produce many simultaneous blocks on different peer chains all at the same height, with each block requiring a fraction of the hash power of a single Bitcoin block. This configuration drastically increases the number of transactions per second over the total network.</p><p>At its core, Chainweb is a spiritual successor to Bitcoin in its consensus mechanism. Miners behaving in a selfish, opportunistic, and greedy fashion will mine the next block for every chain, all the time, and will thereby safely propagate the network.</p><h3>Dominate Hash Power on One Chain to Submit Bad Blocks</h3><p>When we approach Chainweb with the lens that the majority of miners will want to mine all the chains in Chainweb, we can begin to see how the network will react to attacks. One common issue raised about Chainweb is the idea that an adversary could dominate the hash power on one chain and thereby insert bad blocks into the system.</p><p>This scenario hinges on the false assumption that any miners who receive a proof of a finished block will include that proof in the header of their peer chain’s next block <em>without</em> checking its validity. On the contrary, most of the hash power comes from miners mining the entirety of the network, and therefore miners will be performing spot validation on proofs from peer chains. Miners will not accept a bad block from a supposedly dominated chain because they will validate the block before including its Merkle root in their peer chains.</p><p>In the <em>false</em> scenario, a miner will:</p><ol><li>Start mining on Chain “<strong>α</strong>”</li><li>Go to the network for <strong>α</strong>’s peers’ blocks which are 1 layer back</li><li>Not validate those blocks</li><li>Find a block on <strong>α</strong>, broadcast it, and thus implicitly add validity to any forged blocks that were in that set the node didn’t validate</li></ol><p>But, this doesn’t make sense, because Step 2 in the false scenario doesn’t actually take place. Rather, a miner will:</p><ol><li>Start mining on <strong>α</strong></li><li>Go to the node’s own internal state for <strong>α</strong>’s peers blocks which are 1 layer back. Because these are blocks that the node has “accepted” for the chain that the block is on, the node has already validated the block. There’s no need to do another re-validation of the neighbors.</li><li>Find a block on <strong>α</strong> and broadcast it.</li></ol><h3>Halt Communication from One Chain</h3><p>This scenario is one in which people assume that dominating all the hash power on one chain will allow an adversary to censor that chain, which would eventually halt the network.</p><p>Recall that Chainweb is essentially a multiplied Bitcoin. If we think of mining from this perspective, censoring a Chainweb chain would be like trying to censor Bitcoin. You can dedicate all your hash power to one chain and create blocks faster than other miners, but you cannot keep other miners from attempting to mine a Chainweb chain. In fact, a slow chain is attractive to miners, and resources will be reallocated to any temporarily slow chain. If an attacker mines a Chainweb chain in secret but doesn’t tell anyone, then the rest of the network will mine that chain without them. The block production of any one chain in Chainweb cannot be slowed or halted.</p><h3>Conclusions and Follow Up</h3><p>It is absolutely accurate to say that the full security analysis of Chainweb has proven to be more complicated than a traditional single-chain approach. The difficulty in describing the interwoven dependence of the probabilities is why we have moved from a closed-form analysis to a simulator-based approach. Thus, we’ve been working with Tarun Chitra’s research consultancy Gauntlet to simulate multiple different attacks.</p><p>We definitely have a lot more work to do on formally proving the defense to various attack vectors, which is why we are running simulations of Chainweb and have an updated security paper in progress. Considerations and critiques of the network are always welcome, which is why we’re so transparent and open about how the system will function. Rigorous work arises from open collaboration, and it will continue to guide our progress as our development continues.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e5bdf88c29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kadena-io/security-kadena-chainweb-blockchain-97e5bdf88c29">Security in Kadena’s Public Blockchain</a> was originally published in <a href="https://medium.com/kadena-io">Kadena</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>