<?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 Justin Drake on Medium]]></title>
        <description><![CDATA[Stories by Justin Drake on Medium]]></description>
        <link>https://medium.com/@justindrake?source=rss-b51f98a74dce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2owgTMkV8Sk3G_K2.jpg</url>
            <title>Stories by Justin Drake on Medium</title>
            <link>https://medium.com/@justindrake?source=rss-b51f98a74dce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:52:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justindrake/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[Ethereum puts time into computing]]></title>
            <link>https://medium.com/@justindrake/ethereum-puts-time-into-computing-7b444208bf3a?source=rss-b51f98a74dce------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b444208bf3a</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Justin Drake]]></dc:creator>
            <pubDate>Mon, 12 Jun 2017 11:36:03 GMT</pubDate>
            <atom:updated>2017-06-12T11:36:03.691Z</atom:updated>
            <content:encoded><![CDATA[<h4>A compelling metaphor</h4><p><em>(This is a repost of an article dated April 9, 2015 from my </em><a href="https://web.archive.org/web/20150401070030/http://bitcoin-consultants.co.uk:80/"><em>now defunct blog</em></a><em>.)</em></p><p>Time appears to have direction. The past lies behind, fixed and immutable. The future lies ahead, awaiting to be shaped. Sounds familiar? This sense of time characterises Ethereum (and Bitcoin!).</p><p>Behaviourally, Ethereum is a computing engine with three key properties:</p><ul><li><strong>Immutable history</strong>: the past is fixed</li><li><strong>Ubiquitous state</strong>: the present is a shared common</li><li><strong>Guaranteed execution</strong>: the future is inexorable</li></ul><p>In this light, Ethereum is simply a <em>computational universe with true time dimensionality</em>.</p><p>Let’s flesh out the metaphor:</p><ul><li>the Genesis block ⟺ the Big Bang</li><li>blocks ⟺ space</li><li>mining ⟺ time progression</li><li>the blockchain ⟺ spacetime</li><li>the highest block state ⟺ the present</li><li>contracts ⟺ physical bodies</li><li>transactions ⟺ physical interactions</li><li>ether ⟺ energy</li><li>the state transition function ⟺ the laws of physics</li><li>block confirmation time ⟺ Planck time</li><li>block propagation speed ⟺ the speed of light</li></ul><p>I believe this insight captures and crystallises the essence of the new era of computing pioneered by Satoshi Nakamoto. I hope it serves as a useful pedagogical tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b444208bf3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[zksnarks and blockchain scalability]]></title>
            <link>https://medium.com/hackernoon/zksnarks-and-blockchain-scalability-af85e350a93a?source=rss-b51f98a74dce------2</link>
            <guid isPermaLink="false">https://medium.com/p/af85e350a93a</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[zero-knowledge]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Justin Drake]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 05:24:51 GMT</pubDate>
            <atom:updated>2019-05-02T08:46:33.094Z</atom:updated>
            <content:encoded><![CDATA[<h4>Four fun approaches to blockchain scalability</h4><p><strong>Disclaimer:</strong> I am not a zksnark expert. What follows may be rubbish and any errors are mine. Many thanks to <a href="https://medium.com/@chriseth">Chris Reitwießner</a> for reviewing this post. I recommend his <a href="http://chriseth.github.io/notes/articles/zksnarks/zksnarks.pdf">introductory article on zksnarks</a>. Also thanks to <a href="https://sites.google.com/site/arielgabizon1/">Ariel Gabizon</a> from Zcash for pointing several subtleties I overlooked.</p><h4>Definition</h4><p>Let <strong>P</strong> be a program which takes two inputs. The first input <strong>i</strong> is meant to be public. The second input <strong>w</strong> is a witness which can be kept private. We use <strong>o</strong> for an output of <strong>P</strong>.</p><p>Given a program <strong>P</strong>, an input <strong>i</strong> and an output <strong>o</strong>, if a prover knows a witness <strong>w</strong> such that <strong>o = P(i, w)</strong> then the prover can produce a proof where:</p><ol><li>(space density) The proof is very short (just a few hundred bytes even for a very large program; e.g. Zcash achieves 288 bytes)</li><li>(time density) The proof verifies in time linear to the lengths of <strong>i</strong> and <strong>o</strong></li><li>(zero knowledge) The proof leaks nothing about the execution of <strong>P</strong> or the contents of <strong>w</strong> other than the existence of <strong>w</strong></li></ol><p>Such proofs are called zksnarks.</p><p>(As a technical aside, zksnarks are only known for verifier programs <strong>P</strong> which run in polynomial time to the lengths of <strong>i</strong> and <strong>w</strong>. We are also assuming that the security parameter “lambda” is fixed.)</p><h4>Intuition</h4><p>I like to think of zksnarks as simultaneously the equivalent of <a href="https://hackernoon.com/tagged/cryptographic">cryptographic</a> hashes and signatures for computation (extending the two cryptographic primitives beyond data). Like hashes, zksnarks “compress” computation into a short and quick to verify fingerprint. Like signatures, zksnarks “attest” for the validity of computation.</p><p>Below we show approaches using zksnarks to address <a href="https://hackernoon.com/tagged/blockchain">blockchain</a> scalability. These are mostly theoretical given today’s state-of-the-art. Verification of zksnarks is cheap but generation of the proofs is the real bottleneck. Research in the cryptography surrounding zksnarks has advanced at a fast pace in recent years. Orders-of-magnitude improvements have made Zcash a reality. It is possible that the approaches outlined below may become practical in a few years.</p><h3>1) Fast sync</h3><p>Traditionally synching a blockchain requires bandwidth, storage and computation. For example in Bitcoin most of the computation is in checking signatures. With zksnarks the burden of explicitly verifying transaction signatures one-by-one can be removed. A single zksnark can attest for all the signatures of a block. This means the computation requirements for synching the Bitcoin can be significantly reduced.</p><p>To see this let <strong>P</strong> be the program where:</p><ul><li><strong>i</strong> is a block hash</li><li><strong>w</strong> is a block</li><li><strong>P</strong> returns True if <strong>w</strong> has hash <strong>i</strong> and all transactions in <strong>w</strong> have a valid signature, otherwise <strong>P</strong> returns False</li></ul><p>Assuming blocks are bounded in size (e.g. 1 MB) then zksnarks can be generated for <strong>P</strong> whenever <strong>o</strong> is True. Such zksnarks cryptographically prove that the signatures are valid, without having to verify (or even download!) the signatures. This is effectively SegWit on steroids. Notice that <strong>i</strong> and <strong>o</strong> are constant-sized (256 bits and 1 bit respectively) so proof verification takes constant time.</p><h3>2) Ultra-light clients</h3><p>Traditionally a light client that wants to answer some question about a blockchain has to do two things. First it has to download the relevant blockchain data and second do the relevant computations on that data. For example a light client that wants to answer the question “Has this specific crowdfund reached its goal yet?” would download the crowdfund transactions and add up the amounts. With zksnarks a client can be cryptographically shown such facts without downloading data or doing computations on that data. This opens the door for “ultra-light” clients which have close-to-zero bandwidth, storage and computation resources, but nonetheless maintain cryptographic sovereignty.</p><p>To see this let <strong>P</strong> be a light-client query virtual machine where:</p><ul><li><strong>i</strong> contains both a block hash specifying a blockchain to be queried, and a script (e.g. some web3 JavaScript) specifying a query for that blockchain</li><li><strong>w</strong> is the blockchain data required for the query, along with the required parts of the Patricia-Merkle tree for light-client verification</li><li><strong>o</strong> is the output of the script</li></ul><p>Given a query <strong>i</strong> and an output <strong>o</strong>, one can produce a corresponding zksnark attesting for the validity of the query result.</p><p>You can imagine a world where dedicated provers provide zksnarks-as-a-service for ultra-light clients. Because generating zksnarks can be expensive, specialised ASICs would speed up the process. Provers would become the new miners where the utility of specialised hardware shifts from providing security to providing scalability, and mining fees shift to “proving fees”.</p><h3>3) Abstracting away code and storage</h3><p>Currently on Ethereum the code and storage of smart contracts (which together describe the state) are stored in full on the blockchain. This takes up resources and can be bad for privacy. It turns out zksnarks can condense the state of a smart contract into a single hash, obfuscating both the underlying code and storage.</p><p>To see this, let <strong>P</strong> be an Ethereum light-client verifier where:</p><ul><li><strong>i</strong> is a triple of hashes. The first hash is a block hash specifying the blockchain in its current state. The second hash <strong>h_now</strong> fingerprints the state of a smart contract as currently represented in the blockchain. Finally, <strong>h_future</strong> is the hash of the state of the smart contract at some further time in the future.</li><li><strong>w</strong> has the state of the smart contract at time <strong>h_now</strong>, plus the intermediary transactions that advance state from <strong>h_now</strong> to <strong>h_future</strong>, plus the parts of the Patricia-Merkle tree required to do light-client verification of the state</li><li><strong>P</strong> returns True if the state corresponding to <strong>h_future</strong> is valid, otherwise it returns False</li></ul><p>zksnarks can be produced for <strong>P</strong> which prove the validity of state changes of a smart contract without revealing either the code of the smart contract or its storage.</p><h3><strong>4) Universal state channels</strong></h3><p>The technique above used to abstract away code and storage from the blockchain (pushing the state offchain, e.g. on IPFS) also allows for batching the state changes that happen between <strong>h_now</strong> and <strong>h_future</strong>.<strong> </strong>This construction is effectively a universal state channel. With the exception of the setup and settlement transactions, all activity happens offchain.</p><p>The construction allows for state channels that only store a single hash on the blockchain, and where state changes are enforced on the blockchain with a single zksnark verification.</p><p>You can imagine a blockchain (zEthereum?) which only stores hashes of smart contracts, and where the only opcode is for zksnark verification.</p><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a>family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>To learn more, <a href="https://goo.gl/4ofytp">read our about page</a>, <a href="http://bit.ly/HackernoonFB">like/message us on Facebook</a>, or simply, <a href="https://goo.gl/k7XYbx">tweet/DM @HackerNoon.</a></blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af85e350a93a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/zksnarks-and-blockchain-scalability-af85e350a93a">zksnarks and blockchain scalability</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>