<?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 Joe Netti on Medium]]></title>
        <description><![CDATA[Stories by Joe Netti on Medium]]></description>
        <link>https://medium.com/@joenetti?source=rss-794aece24f39------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Exck67WMdflAUiDU.</url>
            <title>Stories by Joe Netti on Medium</title>
            <link>https://medium.com/@joenetti?source=rss-794aece24f39------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:27:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joenetti/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[Zero-sum Schelling Data Oracles]]></title>
            <link>https://medium.com/@joenetti/zero-sum-schelling-data-oracles-cb9c7105c2c0?source=rss-794aece24f39------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb9c7105c2c0</guid>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[schelling]]></category>
            <category><![CDATA[decentralized]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dataoracle]]></category>
            <dc:creator><![CDATA[Joe Netti]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 05:34:01 GMT</pubDate>
            <atom:updated>2024-04-26T15:16:54.520Z</atom:updated>
            <content:encoded><![CDATA[<h3>Abstract</h3><p>Schelling data oracles crowdsource answers to public questions through a Schelling game. This paper focuses on exploring two types of games, one where participants have perfect information and the other where participants have imperfect information. In both models, it is shown that an external payout is required for there to be an incentive to participate — mere redistribution of stake is insufficient. Schelling truth games that are zero sum will not guarantee <em>true</em> answers.</p><h3>Definitions</h3><p>Decentralized Data Oracle: A system that crowdsources answers to public questions. They are useful for resolving prediction markets without relying on a centralized source for truth.</p><p>Schelling Points: Schelling points are choices people make to maximize the likelihood of coordination with others when communication is restricted or taboo (Schelling, 1960). Data oracle designs try to stop coordination with others in the hope that it will make voting truthfully a schelling point (Sztorc, 2015; Vitalik, 2014).</p><h3>Perfect Information Model</h3><p>First we analyze the simplest possible data oracle game with the simplest world assumptions. The game gives positive payouts to majority votes and negative payouts to minority votes.</p><p>Common knowledge assumptions:</p><ol><li>Perfect information</li><li>Bayesian rational</li><li>Communication and precommitment are impossible</li><li>Profit maximizing</li><li>Belief in a truth-schelling point</li><li>High liquidity assumption: A participants vote will <strong>not </strong>change outcome</li></ol><p>Game rules:</p><ol><li>Binary voting options</li><li>Payout C for participants with vote in majority of votes</li><li>Payout -C for participants with vote in minority of votes</li></ol><p>The result of this model is very simple: all participants vote and they all receive C payout. We assume that people vote truthfully (pt. 5) and that everyone has the same information set (pt. 1). Everyone votes the same and everyone’s vote is in the majority, therefore everyone receives C as a payout.</p><p>This above model is simple for a variety of reasons. One question that comes to mind is: “Who funds the payout?” Let’s consider a new model where the participants fund the payout. Consider the following model:</p><p>Common knowledge assumptions:</p><ol><li>All 6 assumptions of first model</li><li>Equal money/stakes across participants (assumption 7)</li></ol><p>Game rules:</p><ol><li>Binary voting options</li><li>Payout for participant i in majority with stake si: (figure 1)</li><li>Payout for participants in minority with stake si : -si</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/50/0*9TYSS96VEdMn6IYR" /><figcaption>figure 1: payout for winners</figcaption></figure><p>Each participant has some amount of money called “stake” that they associate with their vote.</p><p>For simplification, all participants have the same stake (assumption 7). The above model is a “winners take all” scheme where all of the stake of the losing participants gets redistributed to the winners. Since there are only two voting options, there are two pools of stake, one for each voting option. The pool that is larger is called the majority <em>M</em> and the pool that is smaller is called the minority <em>m</em>.</p><p>What is the outcome of such a game? Everyone wants to vote in the majority and there is already assumed to be a “truth-schelling point” (pt. 5). Truth-schelling point is an assumption that everyone else will vote truthfully. This lazy assumption is replaced later in the paper. Since everyone has perfect information (and knows everyone else does), everyone is confident in the truthful answer and is confident everyone else has the same idea of truth. Therefore, everyone votes in the majority and everyone gets no payout. There is no stake/payout to redistribute to the winners because everyone wins. Everyone is indifferent between voting and abstaining. This lackluster outcome illustrates a common theme throughout this paper: “redistribution is insufficient.” An external payout must be present in order to incentivize people to vote in such a model.</p><h3>Imperfect Information Model</h3><p>In our quest to model data oracles, we now attempt to overthrow the perfect information assumption. No participant has the ability to be 100% confident in the truth! Below is an extension of the last model:</p><p>Common knowledge assumptions:</p><ol><li>Imperfect info (altering assumption 1)</li></ol><p>- All relevant information “bits” in universe: U = { b1 … bh }</p><p>- Each participant i has subjective world Wi = {b0 … bg | bj ∈ O } ⊆ U</p><p>- Information bits bj are sampled uniformly random from universe U</p><p>5. Truth-schelling point in n-level base case (altering assumption 5).</p><p>As a Bayesian rationalist, everyone has some confidence for each of the two options, and these confidences must add up to 1. Every participant will vote if and only if they have an expectation of profiting. Profit is calculated twice, once for voting “0” and another for voting “1”, then the larger one is chosen as the final profit. Consider the following profit equations:</p><p>Profit = Gain — Loss therefore:</p><p>Profit = P(in majority)*majority_payout - P(in minority)*minority_payout</p><p>Unfortunately, this equation is impossible to calculate because it is circular. The majority and minority payouts are based on how others will vote, and others will make these same calculations whether to vote. A participant’s majority/minority payout depends on other people’s votes, which depends on other people’s expectations of majority/minority payouts, which depends … ad infinitum. This decision is a recursive algorithm, but the recursion never ends. Therefore, we need to make another assumption so that there is a base case to the algorithm: after R rounds of recursion, people estimate majority/minority shares by assuming that everyone else must vote AND must vote truthfully (5c). This approach is similar to n-level theory (Stahl, 1995).</p><p>An example scenario will make this simulation more concrete. Imagine that there are two choices, “cherry” and “lime.” There is a bag of candy with a very large number of cherry and lime candies in it. The voting set of people observe n candies and do not know the real distribution of candies. However, they do know that everyone else sees the same number of candies that they do and that everyone sees a random sample. After viewing n candies, each person has to try to guess “cherry or lime” and everyone is given the following question: what is the next candy? As in the schelling data oracle game, the winning guess is <strong>not</strong> the next candy that comes out of the bag, for that isn’t even revealed; the winning guess is the one that has &gt;50% of the voted stake. Participants do not have to vote.</p><p>Note that this game is not a traditional prediction market. In a traditional prediction market, winners and losers are determined by a real source of truth (Wolfers 2004). Data oracles aim to create a decentralized source of truth which can be used to resolve prediction markets. Typically data oracles will resolve past events, rather than predict events, like in this candy example. This candy example is useful only because it defines imperfect information in a simple way.</p><p>Let’s hone into the decision-making of one participant named Alice. Alice is shown one candy at time and incrementally updates her prior hypotheses as she observes candies. Her initial hypotheses could look like the following (the default used in the codebase)</p><pre>Hypothesis = {<br>  (0% cherry, 100% lime) → .20,<br>  (25% cherry, 75% lime) → .20,<br>  (50% cherry, 50% lime) → .20,<br>  (75% cherry, 25% lime) → .20,<br>  (100% cherry, 0% lime) → .20 <br>}</pre><p>These hypotheses <em>update</em> through Bayseian inference. Alice applies the following algorithm to determine how she should vote. This algorithm has a base case, which means that it will recurse R times and at the Rth level, Alice assumes that everyone else votes AND votes truthfully. R stands for recursive rounds. N is the number of candies.</p><p>Alice goes through each prior and assumes it to be the state of the candy bag. She asks the question: how will everyone else vote if the state of the candy bag had this distribution? She then goes through each possible observation set: (10 cherries, 0 lime), (9 cherries, 1 lime) … (0 cherry, 10 limes). For each observation set she runs the algorithm with initial priors because the person she is simulating doesn’t know her observations. The algorithm spits out a vote. She calculates how many people vote like this in such a state of the bag by using the binomial distribution and keeps track of the proportion of people who vote cherry and the proportion of people who vote lime (abstain votes don’t need to be kept track of).</p><p>After simulating each possible observation set, Alice sees if there are more people voting cherry or lime. If there are more people voting cherry, she would only make money voting cherry because the majority voters always win. The revenue in such a world is lime_proportion/cherry_proportion because the losers bets are split amongst the winners. This bag state is not certain however, so Alice must scale it with the posterior probability of that hypothesis. Voting lime in such a state would leave Alice with losing everything. This cost of voting lime must also be scaled by the posterior. Scaling by the posterior is how Alice calculates the <em>expected</em> revenue and cost of such a world state. These expectations will be aggregated to calculate profit.</p><p>Alice performs the previous calculations for each hypothesis and keeps track of the revenue and cost for voting cherry or for voting lime. She calculates the profit equations:</p><pre>cherry_profit = cherry_revenue - cherry_cost<br>lime_profit = lime_revenue - lime_cost</pre><p>The final decision is the choice that leads to the most profit. If both choices are negative, Alice will abstain from voting. Below is the pseudocode for such an algorithm:</p><h3>Pseudocode</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PG9U8_3lPRC2fL3U6Kc56Q.png" /></figure><h3>Findings</h3><p>This algorithm is implemented in a repository (<a href="https://github.com/nettijoe96/imperfect-info-data-oracle">https://github.com/nettijoe96/imperfect-info-data-oracle</a>). At R=0, the only observation set that doesn’t vote is (5 cherry, 5 lime) because they do not have any reason to believe that the majority will be cherry or lime. At R=1, everyone votes except for (4 cherry, 6 lime), (5 cherry, 5 lime), and (6 cherry, 4 lime). And this trend continues. At R=2, (3 cherry, 7 lime) and (7 lime, 3 cherry) also don’t vote. Unfortunately, the algorithm is very inefficient and has a time complexity of O(N^R) where N is the number of hypotheses * the size of the observation set. These inefficiencies made it infeasible for me to run the algo with a high R.</p><p>Despite not being able to run the algorithm efficiently, I argue that as R increases, no one votes. Someone only votes if they have reason to believe that they have more information than the average voter. As other voters stop voting, the average voter has increasingly more information, and after enough recursive rounds there are no voters left.</p><h3>Conclusion</h3><p>Schelling truth games under perfect and imperfect information cannot be zero sum. There must be a payout external to the bets made by the players in the game in order to incentivize people to vote. Simple economic reasoning made this conclusion clear in the perfect information game. In the imperfect information game, an example and corresponding decision algorithm was constructed and tested to prove this hypothesis. This proof is fairly narrow and I look to others to generalize this proof to all imperfect information schelling truth games.</p><h3>References</h3><p>Buterin, V. (2014). SchellingCoin: A Minimal-Trust Universal Data Feed. Retrieved from <a href="https://blog.ethereum.org/2014/03/28/schellingcoin-a-minimal-trust-universal-data-feed/">https://blog.ethereum.org/2014/03/28/schellingcoin-a-minimal-trust-universal-data-feed/</a></p><p>Peterson, J., Krug, J., Zultu, M., Williams, A., &amp; Alexander, S. (2018). Augur: a Decentralized Oracle and Prediction Market Platform.</p><p>Peterson, J., Krug, J., Zoltu, M., Williams, A., &amp; Alexander, S. (2019). Augur: a Decentralized Oracle and Prediction Market Platform (v2.0). Retrieved from <a href="https://github.com/AugurProject/whitepaper">https://github.com/AugurProject/whitepaper</a></p><p>Wolfers, J., &amp; Zitzewitz, E. (2004). Prediction Markets. <em>Journal Of Economic Perspectives</em>. Retrieved from <a href="https://www.nber.org/papers/w10504">https://www.nber.org/papers/w10504</a></p><p>Schelling, T. (1960). <em>The Strategy of Conflict</em>. Cambridge, MA: Harvard University Press.</p><p>Stahl, D. O., &amp; Wilson, P. W. (1995). On Players′ Models of Other Players: Theory and Experimental Evidence. <em>Games and Economic Behavior</em>, <em>10</em>(1), 218–254. doi: 10.1006/game.1995.1031</p><p>Sztorc, P. (2015). Truthcoin: Peer-to-Peer Oracle System and Prediction Marketplace. Retrieved from <a href="https://github.com/psztorc/Truthcoin">https://github.com/psztorc/Truthcoin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb9c7105c2c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pietrzak Verifiable Delay Functions]]></title>
            <link>https://medium.com/@joenetti/pietrzak-verifiable-delay-functions-f5683131882b?source=rss-794aece24f39------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5683131882b</guid>
            <category><![CDATA[vdf]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[pow]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Joe Netti]]></dc:creator>
            <pubDate>Tue, 05 May 2020 04:30:58 GMT</pubDate>
            <atom:updated>2020-05-05T05:45:45.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fbis47_OuYf3As1b0ncnA.jpeg" /></figure><p>Verifiable delay functions (VDF) create efficiently verifiable and unique proofs of work. Verifiable Delay Functions are first formally defined by Boneh et. al in the paper “Verifiable Delay Functions.” In this paper they formally define the characteristics of VDFs to have three properties. A VDF computation takes a certain amount of time to compute (“delay”) and there are no efficiency gains from parallelizing the computation. This amount of time is easily parameterizable based on the use case. VDFs must create proofs of work that are efficiently verifiable (“verifiable”). Lastly, each puzzle must have a single deterministic solution (“function”). [1, 2].</p><p>These three features are essential for distinguishing VDFs from prior cryptographic constructions. Bitcoin delay can be seen as a Verifiable Delay (except that can be parallelized). Proofs of Sequential Work (POSW) first introduced in 2013 is a Verifiable Delay that cannot be parallelized [3]. Hash functions are one example of a Verifiable Function (albeit one-way). Time lock puzzles proposed by Shamir in 1996 are Delay functions. Therefore, there is a rich history of constructions that have some features of verifiable functions but not all three features.</p><p>Randomness beacons are one of the most important use cases of VDFs. Alice and Bob can agree on a source and a difficulty for the VDF and agree to use the result of the VDF as randomness in the future. Imagine a lottery in a blockchain system. Participants put money into a pot and one of their stake-weighted identities is chosen at a specified date. Traditionally the way to do this is to choose the block hash as a source of randomness at a specified height. However, these allow for grinding and block withholding attacks where blocks can be chosen or withheld if they have a hash that would result in a desired outcome for the block-producer in a game that relies on its randomness. This is impossible to do with a VDF if a recent block is chosen as the starting data.</p><p>Before diving into the Pietrzak construction [4], we give here a brief outline of the rest of the paper. First, we describe the timelock puzzle [5] because it is foundational to the Pietrzak construction. Next, we split the Pietrzak construction into two parts: interactive and non-interactive. The construction is easier to understand because it doesn’t require “compressing” the proof and it doesn’t require understanding Fiat-Shamir transforming for turning non-interactive proofs into interactive proofs. Lastly we briefly mention other constructions.</p><h3>Timelock puzzles</h3><p>Timelock puzzles were proposed in 1996 and their purpose is to “encrypt messages to the future” [5]. Alice can encrypt a message M and broadcast it publically along with some public parameters. Anyone can perform a series of sequential computations on the public parameters to retrieve the decryption key. The primitives for this construction are Blum-Blum-Shub generator and RSA factoring (large composite n=pq).</p><p>Alice wants to create a timelock puzzle to encrypt a message M. She chooses the amount of time to encrypt the message, two random primes p and q, and a random key K. Alice also needs an accurate expectation for the number of squares-per-second of a decrypter — she should probably overestimate this to be safe. She encrypts the message using K and then encrypts the K using the following method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*bvsmT6FWpCFHS5M0UGAj1A.png" /></figure><p>Here is where the magic happens. Bob must do t square operations to get the second term while Alice only has to raise x^e. e is much smaller than 2^T. He simply subtracts the second term from Ck and finds the key K. With the key he can decrypt the message! Note that Alice selects T =time*squares_per_second and x is random.</p><h3>Pietzak Construction</h3><p>Timelock puzzles require all decrypters to run the entire computation because there is no proof of computation. Note also that Timelock puzzles are deterministic because they are squared in a field and the output is unpredictable based on the Blum-Blum-Shub randomness generator. These properties cover the “delay”, “function”, and “unpredictable” aspects of VDFs. The Pietrzak construction extends timelock puzzles and adds the last missing component: “verifiability” [5].</p><p>Consider two parties P (prover) and V (verifier). The prover is running the computation and proving it interactively to the verifier. Note that this construction requires a trusted setup where p,q are not known otherwise the prover does not have to do the full computation because the group size is known (like how encrypter in time-lock puzzles mod by ϕ(n)).</p><p>First the prover calculates y = x^(2T)by doing T sequential squares. The Verifier saves some information for making the proof calculation more efficient, this is discussed in a later section. This protocol works if the initial x is generated randomly.</p><p>After y is calculated, then the prover and verifier interact as follows [4]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*gYnS4TuiN6dc9L04PAwWBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*U63bJXZkhVv1AbC8BkfqDg.png" /><figcaption>pg. 8</figcaption></figure><p>This algorithm repeats with new x, y, and T values until T=1. There are a few key points that will help you understand this protocol. First, notice how we are proving the squares between “halvings” of T. For example, in the first iteration, we prove the result at T/2 squares, which is the first half of the computation. Afterwards, we prove at ¾ of the computation, then ⅞ and so on. We keep halving until there is only one square left. When there is one square left, the algorithm is actually at T=1 and the verifier computes that last square. Therefore we will have log2(T) rounds in the algorithm.</p><p>Next, notice that x` updates each round. Since x` != x (except for the first round), the prover cannot simply set μ to the values that the Prover saved while computing y. The prover has to use many saved values and do additional computations. Computing μi = {μ1 , … μs} requires 2^s values and requires 2^s exponentiations. Here is an example of how to calculate μ3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*KCVNB-aSikntlLhEbBXOxw.png" /><figcaption>pg. 18</figcaption></figure><p>Notice, x` and y` share the same relationship that x and y except T` =T/2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*8Ioe8Ra9n01qwm1V0gVsiw.png" /></figure><p>Essentially the halving protocol is growing x` faster than y` until</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/1*jIzWGHF1SvEnykZE_rLYGg.png" /></figure><h3>Non-interactive Protocol</h3><p>Any interactive public-coin protocol can be turned into a non-interactive trusted setup protocol using the Fiat Shamir Heuristic. To make the Pietrzak VDF non-interactive, simply each random number as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*43MSfc5pooRZUZbZS3ryWw.png" /><figcaption>pg. 16</figcaption></figure><h3>References</h3><p>[1] Boneh, D., Bonneau, J., Bünz, B., &amp; Fisch, B. (2018, August). Verifiable delay functions. In <em>Annual international cryptology conference</em> (pp. 757–788). Springer, Cham. <a href="https://eprint.iacr.org/2018/601.pdf">https://eprint.iacr.org/2018/601.pdf</a>.</p><p>[2] Bonneau. (2019, November). Exploring VDFs with Joseph Bonneau. Zero Knowledge Podcast <a href="https://www.zeroknowledge.fm/103">https://www.zeroknowledge.fm/103</a>.</p><p>[3] Mahmoody, M., Moran, T., &amp; Vadhan, S. (2013, January). Publicly verifiable proofs of sequential work. In <em>Proceedings of the 4th conference on Innovations in Theoretical Computer Science</em> (pp. 373–388). <a href="https://eprint.iacr.org/2011/553.pdf">https://eprint.iacr.org/2011/553.pdf</a>.</p><p>[4] Pietrzak, K. (2018). Simple verifiable delay functions. In <em>10th innovations in theoretical computer science conference (itcs 2019)</em>. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik. <a href="https://eprint.iacr.org/2018/627.pdf">https://eprint.iacr.org/2018/627.pdf</a>.</p><p>[5] Rivest, R. L., Shamir, A., &amp; Wagner, D. A. (1996). Time-lock puzzles and timed-release crypto. <a href="https://people.csail.mit.edu/rivest/pubs/RSW96.pdf">https://people.csail.mit.edu/rivest/pubs/RSW96.pdf</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5683131882b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Incentivizing full nodes through Fastlanes: a thought experiment]]></title>
            <link>https://medium.com/@joenetti/incentivizing-full-nodes-through-fastlanes-a-thought-experiment-69b67165b3b4?source=rss-794aece24f39------2</link>
            <guid isPermaLink="false">https://medium.com/p/69b67165b3b4</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[full-node]]></category>
            <dc:creator><![CDATA[Joe Netti]]></dc:creator>
            <pubDate>Mon, 23 Jul 2018 01:20:38 GMT</pubDate>
            <atom:updated>2018-07-23T13:21:21.428Z</atom:updated>
            <content:encoded><![CDATA[<p>This short article proposes and analyzes <em>fastlanes</em>: a mechanism to incentivize full nodes. It concludes with why this mechanism likely will not work.</p><p>Fastlanes try to incentivize the operation of full nodes by providing non-monetary rewards to full nodes. Non-monetary in this sense means that the reward is not transferable. A fastlane reward, as the name suggests, is the ability to send a transaction (within a set amount of bytes) for free, and the miner still gets paid for putting the fastlane transaction in the block. Fastlanes are rewarded to addresses when a solution to a secondary POW system is found. The secondary POW system uses a transaction and an address as inputs. The details proposed in this paper are surely not optimal implementations of fastlanes.</p><p>Despite fastlanes not being able to be sold, they still have economic value. Fastlanes decrease the transaction fees to 0 for a given transaction (that is less than X bytes in size). The value of a hash when used for fastlane POW is less than the value of a hash for any cryptocurrency POW:</p><p>payoutFastlane * P(ValidFastlane) &lt; payoutBlock * P(ValidBlock)</p><p>The feasibility of the above probability is discussed more in section: Problems With Fastlanes.</p><h3>Fastlane POW</h3><p>A solution to the following two equations wins a fastlane:</p><p>hash(signature(scrypt(publicKey))||transaction) &lt; fastlaneTarget</p><p>where fastlane is only a valid fastlane in a block if</p><p>scrypt(publicKey) &lt; publicKeyTarget</p><p>The public key is put through a POW function because we want to incentive nodes to use different transactions not different public/private key pairs. Scrypt is chosen over a hash because scrypt is memory intensive. Hash could also be chosen, but scrypt is more asic resistant than hashes — the variance of the speed of a calculating a hash is larger over the set of mining hardware. The variance aspect is important because winners of fastlanes should be fairly distributed among full nodes. Scrypt is also chosen because memory speeds are more positively correlated to disk-read speeds than are memory speeds are to hashing speeds. In order to incentivize nodes to change transactions rather than change public keys, the solving POW with public_key_target must take longer than a disk-reading and loading into RAM a new public key. If reading a disk ranged between 2–100 times longer then a scrypt function then the public_key_target would have to be at least 7 leading 0’s so that it was more than 100 times harder to make a new valid public key than it was to use a different transaction.</p><p>Note: the reason that the script(publicKey) is signed by the private key (associated with the public key) is because otherwise fastlanes could be generated for people by powerful miners and there would be a fastlane market.</p><h3>Data and Blockchain Representation</h3><p>Fastlanes as a data structure are a (public key, transaction) pair and a signature of that hash of that pair. There are a few different ways to represent fastlanes on a blockchain. One way is for a fastlane to be attached to a valid transaction. If a node Alice that mines a fastlane wants to send money to Bob, Alice creates a new transaction referencing an unspent transaction output and includes the fastlane in the outputs. The fastlane will give the miner of the block the average transaction fee of all the transactions in the block.</p><p>Another way to represent a fastlane is to treat it as a separate transaction entirely. When a fastlane is found, it is added to the blockchain immediately (after N blocks, the fastlane becomes invalid if not added to the blockchain). Then to spend use the fastlane, a node will reference in the inputs as in the first example. The difference from the first example is that in this second case is that the fastlane is on the blockchain immediately and therefore difficulty adjustments to fastlane_target can be calculated more accurately. The cost is more data on the blockchain: a fastlane transaction + signature + another signature to spend the fastlane.</p><h3>Problems with Fastlanes</h3><h4>Malicious Full Nodes</h4><p>Full nodes have a perverse incentive to stop sharing valid blocks because they are in competition with everyone other full node in finding fastlanes. Full nodes have an advantage in earning fastlanes if they have more transactions than their competing full nodes do.</p><h4>Fastlanes Lack Rational Incentive</h4><p>Fastlanes rely on the inequality:</p><p>payoutFastlane * P(ValidFastlane) &lt; payoutBlock * P(ValidBlock).</p><p>This inequality is needed to keep miners putting computer power into mining. However, if this inequality is satisfied, then rational full nodes should want to put any hash power they have into mining because it has a higher expected value. This is a serious problem with fastlanes, and may kill the idea entirely.</p><h4>Slower consensus times</h4><p>Even if nodes do not withhold the sharing of blocks until a fastlane is found, they might still slow down block propagation by checking for fastlanes at the same time as the consensus check is done. When a block is received, the full node will perform N*T operations (where N=amount of acceptable public keys they have and T is transactions) after checking the validity of each transaction.</p><h4>Manipulating fastlane rewards</h4><p>Miners choose what transactions to put in blocks. Unless it is mandatory to put at least X fastlanes in every block, there needs to be a mechanism that incentivizes miners to put fastlanes in blocks that cannot be manipulated.</p><p>Here is a naive method of fastlane implementation and how it could be manipulated by miners. Say fastlanes created new coins that paid miners the average fee in the block + some small amount of coin. This would surely incentivize miners to put fastlanes in a block. However, it would also incentivize them to create dummy transactions with very high fees so that any fastlane transactions in the block create an absurd amount of new coin.</p><p>Another naive approach is:</p><p>new coins created per block = mining reward +(fastlanes in block * (average transaction fee in last N blocks + small number))</p><p>Even if “small number” could be defined in the code in a way that cannot be manipulated and is consistent with price swings of the currency, a miner could simply use his computing power to generate thousands of fastlanes, fill the block, with fastlanes and reap large rewards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69b67165b3b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>