<?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 Hanink on Medium]]></title>
        <description><![CDATA[Stories by Joe Hanink on Medium]]></description>
        <link>https://medium.com/@jhanink?source=rss-fed75ff0080c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LNTuNVxns7JPHrU2gshiTA.jpeg</url>
            <title>Stories by Joe Hanink on Medium</title>
            <link>https://medium.com/@jhanink?source=rss-fed75ff0080c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:59:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jhanink/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[Gavin Wood’s Yellow Paper]]></title>
            <link>https://medium.com/@jhanink/gavin-woods-yellow-paper-a4e17423c8d5?source=rss-fed75ff0080c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4e17423c8d5</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Joe Hanink]]></dc:creator>
            <pubDate>Fri, 26 May 2017 07:29:04 GMT</pubDate>
            <atom:updated>2017-05-26T07:29:04.134Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER</blockquote><blockquote>EIP-150 REVISION</blockquote><blockquote>DR. GAVIN WOOD FOUNDER, ETHEREUM &amp; ETHCORE GAVIN@ETHCORE.IO</blockquote><p>Abstract. The blockchain paradigm when coupled with cryptographically-secured transactions has demonstrated its utility through a number of projects, not least Bitcoin. Each such project can be seen as a simple application on a decentralised, but singleton, compute resource. We can call this paradigm a transactional singleton machine with shared-state.</p><p>Ethereum implements this paradigm in a generalised manner. Furthermore it provides a plurality of such resources, each with a distinct state and operating code but able to interact through a message-passing framework with others. We discuss its design, implementation issues, the opportunities it provides and the future hurdles we envisage.</p><p>1. Introduction</p><p>With ubiquitous internet connections in most places of the world, global information transmission has become incredibly cheap. Technology-rooted movements like Bit- coin have demonstrated, through the power of the default, consensus mechanisms and voluntary respect of the social contract that it is possible to use the internet to make a decentralised value-transfer system, shared across the world and virtually free to use. This system can be said to be a very specialised version of a cryptographically se- cure, transaction-based state machine. Follow-up systems such as Namecoin adapted this original “currency appli- cation” of the technology into other applications albeit rather simplistic ones.</p><p>Ethereum is a project which attempts to build the gen- eralised technology; technology on which all transaction- based state machine concepts may be built. Moreover it aims to provide to the end-developer a tightly integrated end-to-end system for building software on a hitherto un- explored compute paradigm in the mainstream: a trustful object messaging compute framework.</p><p>1.1. Driving Factors. There are many goals of this project; one key goal is to facilitate transactions be- tween consenting individuals who would otherwise have no means to trust one another. This may be due to geographical separation, interfacing di culty, or perhaps the incompatibility, incompetence, unwillingness, expense, uncertainty, inconvenience or corruption of existing legal systems. By specifying a state-change system through a rich and unambiguous language, and furthermore archi- tecting a system such that we can reasonably expect that an agreement will be thus enforced autonomously, we can provide a means to this end.</p><p>Dealings in this proposed system would have several attributes not often found in the real world. The incor- ruptibility of judgement, often di cult to find, comes nat- urally from a disinterested algorithmic interpreter. Trans- parency, or being able to see exactly how a state or judge- ment came about through the transaction log and rules or instructional codes, never happens perfectly in human- based systems since natural language is necessarily vague,</p><p>information is often lacking, and plain old prejudices are di cult to shake.</p><p>Overall, I wish to provide a system such that users can be guaranteed that no matter with which other individ- uals, systems or organisations they interact, they can do so with absolute confidence in the possible outcomes and how those outcomes might come about.</p><p>1.2. Previous Work. Buterin [2013a] first proposed the kernel of this work in late November, 2013. Though now evolved in many ways, the key functionality of a block- chain with a Turing-complete language and an e↵ectively unlimited inter-transaction storage capability remains un- changed.</p><p>Dwork and Naor [1992] provided the first work into the usage of a cryptographic proof of computational expendi- ture (“proof-of-work”) as a means of transmitting a value signal over the Internet. The value-signal was utilised here as a spam deterrence mechanism rather than any kind of currency, but critically demonstrated the potential for a basic data channel to carry a strong economic signal, allowing a receiver to make a physical assertion without having to rely upon trust. Back [2002] later produced a system in a similar vein.</p><p>The first example of utilising the proof-of-work as a strong economic signal to secure a currency was by Vish- numurthy et al. [2003]. In this instance, the token was used to keep peer-to-peer file trading in check, ensuring “consumers” be able to make micro-payments to “suppli- ers” for their services. The security model a↵orded by the proof-of-work was augmented with digital signatures and a ledger in order to ensure that the historical record couldn’t be corrupted and that malicious actors could not spoof payment or unjustly complain about service deliv- ery. Five years later, Nakamoto [2008] introduced an- other such proof-of-work-secured value token, somewhat wider in scope. The fruits of this project, Bitcoin, became the first widely adopted global decentralised transaction ledger.</p><p>Other projects built on Bitcoin’s success; the alt-coins introduced numerous other currencies through alteration to the protocol. Some of the best known are Litecoin and Primecoin, discussed by Sprankel [2013]. Other projects sought to take the core value content mechanism of the</p><p>protocol and repurpose it; Aron [2012] discusses, for ex- ample, the Namecoin project which aims to provide a de- centralised name-resolution system.</p><p>Other projects still aim to build upon the Bitcoin net- work itself, leveraging the large amount of value placed in the system and the vast amount of computation that goes into the consensus mechanism. The Mastercoin project, first proposed by Willett [2013], aims to build a richer protocol involving many additional high-level features on top of the Bitcoin protocol through utilisation of a num- ber of auxiliary parts to the core protocol. The Coloured Coins project, proposed by Rosenfeld [2012], takes a sim- ilar but more simplified strategy, embellishing the rules of a transaction in order to break the fungibility of Bit- coin’s base currency and allow the creation and tracking of tokens through a special “chroma-wallet”-protocol-aware piece of software.</p><p>Additional work has been done in the area with discard- ing the decentralisation foundation; Ripple, discussed by Boutellier and Heinzen [2014], has sought to create a “fed- erated” system for currency exchange, e↵ectively creating a new financial clearing system. It has demonstrated that high e ciency gains can be made if the decentralisation premise is discarded.</p><p>Early work on smart contracts has been done by Szabo [1997] and Miller [1997]. Around the 1990s it became clear that algorithmic enforcement of agreements could become a significant force in human cooperation. Though no spe- cific system was proposed to implement such a system, it was proposed that the future of law would be heavily a↵ected by such systems. In this light, Ethereum may be seen as a general implementation of such a crypto-law system.</p><p>2. The Blockchain Paradigm</p><p>Ethereum, taken as a whole, can be viewed as a transaction-based state machine: we begin with a gene- sis state and incrementally execute transactions to morph it into some final state. It is this final state which we ac- cept as the canonical “version” of the world of Ethereum. The state can include such information as account bal- ances, reputations, trust arrangements, data pertaining to information of the physical world; in short, anything that can currently be represented by a computer is admis- sible. Transactions thus represent a valid arc between two states; the ‘valid’ part is important — there exist far more invalid state changes than valid state changes. Invalid state changes might, e.g. be things such as reducing an account balance without an equal and opposite increase elsewhere. A valid state transition is one which comes about through a transaction. Formally:</p><p>(1) t+1 ⌘⌥( t,T)</p><p>where ⌥ is the Ethereum state transition function. In Ethereum, ⌥, together with are considerably more pow- erful then any existing comparable system; ⌥ allows com- ponents to carry out arbitrary computation, while al- lows components to store arbitrary state between trans- actions.</p><p>Transactions are collated into blocks; blocks are chained together using a cryptographic hash as a means of reference. Blocks function as a journal, recording a series of transactions together with the previous block and an</p><p>identifier for the final state (though do not store the final state itself — that would be far too big). They also punc- tuate the transaction series with incentives for nodes to mine. This incentivisation takes place as a state-transition function, adding value to a nominated account.</p><p>Mining is the process of dedicating e↵ort (working) to bolster one series of transactions (a block) over any other potential competitor block. It is achieved thanks to a cryptographically secure proof. This scheme is known as a proof-of-work and is discussed in detail in section 11.5.</p><p>Formally, we expand to:</p><p>(2) t+1 ⌘ (3)B⌘ (4) ⇧( ,B) ⌘</p><p>⇧( t,B)<br> (…, (T0 , T1 , …))<br> ⌦(B, ⌥(⌥( , T0), T1)…)</p><p>Where ⌦ is the block-finalisation state transition func- tion (a function that rewards a nominated party); B is this block, which includes a series of transactions amongst some other components; and ⇧ is the block-level state- transition function.</p><p>This is the basis of the blockchain paradigm, a model that forms the backbone of not only Ethereum, but all de- centralised consensus-based transaction systems to date.</p><p>2.1. Value. In order to incentivise computation within the network, there needs to be an agreed method for trans- mitting value. To address this issue, Ethereum has an in- trinsic currency, Ether, known also as ETH and sometimes referred to by the Old English ̄D. The smallest subdenom- ination of Ether, and thus the one in which all integer val- ues of the currency are counted, is the Wei. One Ether is defined as being 1018 Wei. There exist other subdenomi- nations of Ether:</p><p>Multiplier Name</p><p>100 Wei 1012 Szabo 1015 Finney 1018 Ether</p><p>Throughout the present work, any reference to value, in the context of Ether, currency, a balance or a payment, should be assumed to be counted in Wei.</p><p>2.2. Which History? Since the system is decentralised and all parties have an opportunity to create a new block on some older pre-existing block, the resultant structure is necessarily a tree of blocks. In order to form a consensus as to which path, from root (the genesis block) to leaf (the block containing the most recent transactions) through this tree structure, known as the blockchain, there must be an agreed-upon scheme. If there is ever a disagree- ment between nodes as to which root-to-leaf path down the block tree is the ‘best’ blockchain, then a fork occurs.</p><p>This would mean that past a given point in time (block), multiple states of the system may coexist: some nodes believing one block to contain the canonical transac- tions, other nodes believing some other block to be canoni- cal, potentially containing radically di↵erent or incompat- ible transactions. This is to be avoided at all costs as the uncertainty that would ensue would likely kill all confi- dence in the entire system.</p><p>The scheme we use in order to generate consensus is a simplified version of the GHOST protocol introduced by</p><p>Sompolinsky and Zohar [2013]. This process is described in detail in section 10.</p><p>3. Conventions</p><p>I use a number of typographical conventions for the formal notation, some of which are quite particular to the present work:</p><p>The two sets of highly structured, ‘top-level’, state val- ues, are denoted with bold lowercase Greek letters. They fall into those of world-state, which are denoted (or a variant thereupon) and those of machine-state, μ.</p><p>Functions operating on highly structured values are denoted with an upper-case greek letter, e.g. ⌥, the Ethereum state transition function.</p><p>For most functions, an uppercase letter is used, e.g. C, the general cost function. These may be subscripted to denote specialised variants, e.g. CSSTORE, the cost func- tion for the SSTORE operation. For specialised and possibly externally defined functions, I may format as typewriter text, e.g. the Keccak-256 hash function (as per the winning entry to the SHA-3 contest) is denoted KEC (and generally referred to as plain Keccak). Also KEC512 is referring to the Keccak 512 hash function.</p><p>Tuples are typically denoted with an upper-case letter, e.g. T, is used to denote an Ethereum transaction. This symbol may, if accordingly defined, be subscripted to re- fer to an individual component, e.g. Tn, denotes the nonce of said transaction. The form of the subscript is used to denote its type; e.g. uppercase subscripts refer to tuples with subscriptable components.</p><p>Scalars and fixed-size byte sequences (or, synony- mously, arrays) are denoted with a normal lower-case let- ter, e.g. n is used in the document to denote a transaction nonce. Those with a particularly special meaning may be greek, e.g. , the number of items required on the stack for a given operation.</p><p>Arbitrary-length sequences are typically denoted as a bold lower-case letter, e.g. o is used to denote the byte- sequence given as the output data of a message call. For particularly important values, a bold uppercase letter may be used.</p><p>Throughout, we assume scalars are positive integers and thus belong to the set P. The set of all byte sequences is B, formally defined in Appendix B. If such a set of se- quences is restricted to those of a particular length, it is denoted with a subscript, thus the set of all byte sequences of length 32 is named B32 and the set of all positive in- tegers smaller than 2256 is named P256. This is formally defined in section 4.4.</p><p>Square brackets are used to index into and reference individual components or subsequences of sequences, e.g. μs[0] denotes the first item on the machine’s stack. For subsequences, ellipses are used to specify the intended range, to include elements at both limits, e.g. μm[0..31] denotes the first 32 items of the machine’s memory.</p><p>In the case of the global state , which is a sequence of accounts, themselves tuples, the square brackets are used to reference an individual account.</p><p>When considering variants of existing values, I follow the rule that within a given scope for definition, if we assume that the unmodified ‘input’ value be denoted by the placeholder ⇤ then the modified and utilisable value is denoted as ⇤0, and intermediate values would be ⇤⇤,</p><p>⇤⇤⇤ &amp;c. On very particular occasions, in order to max- imise readability and only if unambiguous in meaning, I may use alpha-numeric subscripts to denote intermediate values, especially those of particular note.</p><p>When considering the use of existing functions, given a function f, the function f⇤ denotes a similar, element- wise version of the function mapping instead between se- quences. It is formally defined in section 4.4.</p><p>I define a number of useful functions throughout. One of the more common is `, which evaluates to the last item in the given sequence:</p><p>(5)</p><p>`(x) ⌘ x[kxk 1]<br> 4. Blocks, State and Transactions</p><p>Having introduced the basic concepts behind Ethereum, we will discuss the meaning of a transaction, a block and the state in more detail.</p><p>4.1. World State. The world state (state), is a map- ping between addresses (160-bit identifiers) and account states (a data structure serialised as RLP, see Appendix B). Though not stored on the blockchain, it is assumed that the implementation will maintain this mapping in a modified Merkle Patricia tree (trie, see Appendix D). The trie requires a simple database backend that maintains a mapping of bytearrays to bytearrays; we name this under- lying database the state database. This has a number of benefits; firstly the root node of this structure is crypto- graphically dependent on all internal data and as such its hash can be used as a secure identity for the entire sys- tem state. Secondly, being an immutable data structure, it allows any previous state (whose root hash is known) to be recalled by simply altering the root hash accordingly. Since we store all such root hashes in the blockchain, we are able to trivially revert to old states.</p><p>The account state comprises the following four fields:</p><p>nonce: A scalar value equal to the number of trans- actions sent from this address or, in the case of accounts with associated code, the number of contract-creations made by this account. For ac- count of address a in state , this would be for- mally denoted [a]n.</p><p>balance: A scalar value equal to the number of Wei owned by this address. Formally denoted [a]b.</p><p>storageRoot: A 256-bit hash of the root node of a Merkle Patricia tree that encodes the storage con- tents of the account (a mapping between 256-bit integer values), encoded into the trie as a map- ping from the Keccak 256-bit hash of the 256-bit integer keys to the RLP-encoded 256-bit integer values. The hash is formally denoted [a]s.</p><p>codeHash: The hash of the EVM code of this account — this is the code that gets executed should this address receive a message call; it is immutable and thus, unlike all other fields, can- not be changed after construction. All such code fragments are contained in the state database un- der their corresponding hashes for later retrieval. This hash is formally denoted [a]c, and thus the code may be denoted as b, given that KEC(b) = [a]c.</p><p>Since I typically wish to refer not to the trie’s root hash but to the underlying set of key/value pairs stored within, I define a convenient equivalence:</p><p>(6) TRIE L⇤I ( [a]s) ⌘ [a]s</p><p>The collapse function for the set of key/value pairs in the trie, L⇤I , is defined as the element-wise transformation of the base function LI , given as:</p><p>gasLimit: A scalar value equal to the maximum amount of gas that should be used in executing this transaction. This is paid up-front, before any computation is done and may not be increased later; formally Tg.</p><p>to: The 160-bit address of the message call’s recipi- ent or, for a contract creation transaction, ?, used here to denote the only member of B0 ; formally Tt.</p><p>value: A scalar value equal to the number of Wei to be transferred to the message call’s recipient or, in the case of contract creation, as an endowment to the newly created account; formally Tv.</p><p>v, r, s: Values corresponding to the signature of the transaction and used to determine the sender of the transaction; formally Tw, Tr and Ts. This is expanded in Appendix F.</p><p>Additionally, a contract creation transaction contains:</p><p>init: An unlimited size byte array specifying the EVM-code for the account initialisation proce- dure, formally Ti.</p><p>init is an EVM-code fragment; it returns the body, a second fragment of code that executes each time the account receives a message call (either through a trans- action or due to the internal execution of code). init is executed only once at account creation and gets discarded immediately thereafter.</p><p>In contrast, a message call transaction contains: data: An unlimited size byte array specifying the</p><p>input data of the message call, formally Td.</p><p>Appendix F specifies the function, S, which maps transactions to the sender, and happens through the ECDSA of the SECP-256k1 curve, using the hash of the transaction (excepting the latter three signature fields) as the datum to sign. For the present we simply assert that the sender of a given transaction T can be represented with S(T).</p><p>It shall be understood that [a]s is not a ‘physical’ member of the account and does not contribute to its later serialisation.</p><p>If the codeHash field is the Keccak-256 hash of the empty string, i.e. [a]c = KEC () , then the node repre- sents a simple account, sometimes referred to as a “non- contract” account.</p><p>Thus we may define a world-state collapse function LS : (9) LS( ) ⌘ {p(a) : [a] 6= ?}<br> where<br> (10) p(a) ⌘ KEC(a),RLP ( [a]n, [a]b, [a]s, [a]c)</p><p>This function, LS, is used alongside the trie function to provide a short identity (hash) of the world state. We assume:</p><p>(11) 8a: [a]=? _ (a2B20 ^ v( [a]))<br> where v is the account validity function:<br> (12) v(x) ⌘ xn 2 P256^xb 2 P256^xs 2 B32^xc 2 B32</p><p>4.2. Homestead. A significant block number for com- patibility with the public network is the block marking the transition between the Frontier and Homestead phases of the platform, which we denote with the symbol NH, de- fined thus</p><p>(13) NH ⌘ 1,150,000<br> The protocol was upgraded at this block, so this symbol</p><p>appears in some equations to account for the changes.</p><p>4.3. The Transaction. A transaction (formally, T) is a single cryptographically-signed instruction constructed by an actor externally to the scope of Ethereum. While is as- sumed that the ultimate external actor will be human in nature, software tools will be used in its construction and dissemination1. There are two types of transactions: those which result in message calls and those which result in the creation of new accounts with associated code (known informally as ‘contract creation’). Both types specify a number of common fields:</p><p>nonce: A scalar value equal to the number of trans- actions sent by the sender; formally Tn.</p><p>gasPrice: A scalar value equal to the number of Wei to be paid per unit of gas for all computa- tion costs incurred as a result of the execution of this transaction; formally Tp.</p><p>(14)<br> LT (T) ⌘</p><p>((Tn,Tp,Tg,Tt,Tv,Ti,Tw,Tr,Ts) (Tn,Tp,Tg,Tt,Tv,Td,Tw,Tr,Ts)</p><p>if Tt = ? otherwise</p><p>Here, we assume all components are interpreted by the RLP as integer values, with the exception of the arbitrary length byte arrays Ti and Td .</p><p>(15) Tn 2P256 ^ Tv 2P256</p><p>^ Tp 2P256 ^ ^ Tr 2 P256 ^ ^ Ti 2 B</p><p>(17)</p><p>Tt 2</p><p>(B20 ifTt6=? B0 otherwise</p><p>Tg 2 P256 ^ Ts 2 P256 ^</p><p>Tw 2 P5 Td 2 B</p><p>where<br> (16) Pn ={P :P 2P^P &lt;2n}</p><p>The address hash Tt is slightly di↵erent: it is either a 20-byte address hash or, in the case of being a contract- creation transaction (and thus formally equal to ?), it is the RLP empty byte-series and thus the member of B0:</p><p>1Notably, such ‘tools’ could ultimately become so causally removed from their human-based initiation — or humans may become so causally-neutral — that there could be a point at which they rightly be considered autonomous agents. e.g. contracts may o↵er bounties to humans for being sent transactions to initiate their execution.</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 5</p><p>4.4. The Block. The block in Ethereum is the collec- tion of relevant pieces of information (known as the block header), H, together with information corresponding to the comprised transactions, T, and a set of other block headers U that are known to have a parent equal to the present block’s parent’s parent (such blocks are known as ommers2). The block header contains several pieces of information:</p><p>parentHash: The Keccak 256-bit hash of the par- ent block’s header, in its entirety; formally Hp. ommersHash: The Keccak 256-bit hash of the om-</p><p>mers list portion of this block; formally Ho. beneficiary: The 160-bit address to which all fees collected from the successful mining of this block</p><p>be transferred; formally Hc.<br> stateRoot: The Keccak 256-bit hash of the root</p><p>node of the state trie, after all transactions are</p><p>executed and finalisations applied; formally Hr. transactionsRoot: TheKeccak256-bithashofthe root node of the trie structure populated with each transaction in the transactions list portion</p><p>of the block; formally Ht.<br> receiptsRoot: The Keccak 256-bit hash of the root</p><p>node of the trie structure populated with the re- ceipts of each transaction in the transactions list portion of the block; formally He.</p><p>logsBloom: The Bloom filter composed from in- dexable information (logger address and log top- ics) contained in each log entry from the receipt of each transaction in the transactions list; formally Hb.</p><p>di culty: A scalar value corresponding to the dif- ficulty level of this block. This can be calculated from the previous block’s di culty level and the timestamp; formally Hd.</p><p>number: A scalar value equal to the number of an- cestor blocks. The genesis block has a number of zero; formally Hi.</p><p>gasLimit: A scalar value equal to the current limit of gas expenditure per block; formally Hl.</p><p>gasUsed: A scalar value equal to the total gas used in transactions in this block; formally Hg.</p><p>timestamp: A scalar value equal to the reasonable output of Unix’s time() at this block’s inception; formally Hs.</p><p>extraData: An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer; formally Hx.</p><p>mixHash: A 256-bit hash which proves combined with the nonce that a su cient amount of compu- tation has been carried out on this block; formally Hm.</p><p>nonce: A 64-bit hash which proves combined with the mix-hash that a su cient amount of compu- tation has been carried out on this block; formally Hn.</p><p>The other two components in the block are simply a list of ommer block headers (of the same format as above) and a series of the transactions. Formally, we can refer to</p><p>a block B:<br> (18) B ⌘ (BH,BT,BU)</p><p>4.4.1. Transaction Receipt. In order to encode informa- tion about a transaction concerning which it may be use- ful to form a zero-knowledge proof, or index and search, we encode a receipt of each transaction containing cer- tain information from concerning its execution. Each re- ceipt, denoted BR[i] for the ith transaction) is placed in an index-keyed trie and the root recorded in the header as He.</p><p>The transaction receipt is a tuple of four items com- prising the post-transaction state, R , the cumulative gas used in the block containing the transaction receipt as of immediately after the transaction has happened, Ru, the set of logs created through execution of the transaction, Rl and the Bloom filter composed from information in those logs, Rb:</p><p>(19) R ⌘ (R ,Ru,Rb,Rl)<br> The function LR trivially prepares a transaction receipt</p><p>for being transformed into an RLP-serialised byte array: (20) LR(R) ⌘ (TRIE(LS(R )),Ru,Rb,Rl)</p><p>thus the post-transaction state, R is encoded into a trie structure, the root of which forms the first item.</p><p>We assert Ru, the cumulative gas used is a positive in- teger and that the logs Bloom, Rb, is a hash of size 2048 bits (256 bytes):</p><p>(21) Ru 2P</p><p>^ Rb 2B256</p><p>The log entries, Rl, is a series of log entries, termed, for example, (O0,O1,…). A log entry, O, is a tuple of a logger’s address, Oa, a series of 32-bytes log topics, Ot and some number of bytes of data, Od:</p><p>(22) O ⌘ (Oa, (Ot0, Ot1, …), Od)<br> (23) Oa 2B20 ^ 8t2Ot :t2B32 ^ Od 2B</p><p>We define the Bloom filter function, M, to reduce a log entry into a single 256-byte hash:</p><p>(24) M(O) ⌘ _ M3:2048(t) t2{Oa }[Ot</p><p>where M3:2048 is a specialised Bloom filter that sets three bits out of 2048, given an arbitrary byte series. It does this through taking the low-order 11 bits of each of the first three pairs of bytes in a Keccak-256 hash of the byte series. Formally:</p><p>(25)M3:2048(x : x 2 B) (26) y</p><p>(27) 8i2{0,2,4} (28) m(x, i)</p><p>⌘ y:y2B256 where: = (0, 0, …, 0) except:</p><p>: Bm(x,i)(y) = 1<br> ⌘ KEC(x)[i, i + 1] mod 2048</p><p>where B is the bit reference function such that Bj(x) equals the bit of index j (indexed from 0) in the byte array x.</p><p>4.4.2. Holistic Validity. We can assert a block’s validity if and only if it satisfies several conditions: it must be in- ternally consistent with the ommer and transaction block hashes and the given transactions BT (as specified in sec 11), when executed in order on the base state (derived from the final state of the parent block), result in a new state of the identity Hr:</p><p>(29)</p><p>4.4.4. Block Header Validity. We define P (BH ) to be the parent block of B, formally:</p><p>(37) P (H) ⌘ B0 : KEC(RLP(BH0 )) = Hp<br> The block number is the parent’s block number incre-</p><p>mented by one:<br> (38) Hi ⌘P(H)Hi +1</p><p>The canonical di culty of a block of header H is de- fined as D(H):</p><p>Hr ⌘<br> Ho ⌘<br> Ht ⌘<br> He ⌘ TRIE({8i &lt; kBRk, i 2 P : p(i, LR(BR[i]))}) ^ Hb ⌘</p><p>TRIE(LS (⇧( , B))) ⇤</p><p>KEC(RLP(LH (BU )))<br> TRIE({8i &lt; kBTk, i 2 P : p(i, LT (BT[i]))})</p><p>(39) D(H)⌘</p><p>where: (40)</p><p>(41)</p><p>(42)</p><p>(43) (44)</p><p>The canonical gas limit Hl of a block of header H must fulfil the relation: P (H )H l ⌫</p><p>Wr2BR rb</p><p>&gt;:<br> &gt;max D0, P (H)H d + x ⇥ &amp;2 + ✏</p><p>( x⌘ P(H)Hd⌫ 2048</p><p>where p(k,v) is simply the pairwise RLP transforma- tion, in this case, the first being the index of the trans- action in the block and the second being the transaction receipt:</p><p>(30) p(k, v) ⌘ RLP(k), RLP(v) Furthermore:</p><p>(31) TRIE(LS ( )) = P (BH )H r</p><p>Thus TRIE(LS ( )) is the root node hash of the Merkle Patricia tree structure containing the key-value pairs of the state with values encoded using RLP, and P (BH ) is the parent block of B, defined directly.</p><p>The values stemming from the computation of transac- tions, specifically the transaction receipts, BR, and that defined through the transactions state-accumulation func- tion, ⇧, are formalised later in section 11.4.</p><p>max D0,P(H)Hd +x⇥&amp;1 +✏ D0 ⌘ 131072</p><p>^ ^ ^</p><p>8 &lt;D0</p><p>if Hi=0<br> if Hi &lt;NH otherwise</p><p>&amp;1⌘ 1 if Hs&lt;P(H)Hs+13 1 otherwise</p><p>&amp;2 ⌘max✓1 Hs P(H)Hs⌫, 99◆ 10</p><p>j bH ÷100000c 2k ✏⌘2i</p><p>f⇤ (x0, x1, …) ⌘ f(x0), f(x1), … <br> The component types are defined thus:</p><p>This mechanism enforces a homeostasis in terms of the time between blocks; a smaller period between the last two blocks results in an increase in the di culty level and thus additional computation required, lengthening the likely next period. Conversely, if the period is too large, the di culty, and expected time to the next block, is reduced.</p><p>The nonce, Hn, must satisfy the relations: 2256</p><p>(49) n6Hd ^m=Hm</p><p>with (n, m) = PoW(Hn, Hn, d).<br> Where Hn is the new block’s header H, but without</p><p>the nonce and mix-hash components, d being the current DAG, a large data set needed to compute the mix-hash, and PoW is the proof-of-work function (see section 11.5): this evaluates to an array with the first item being the mix- hash, to proof that a correct DAG has been used, and the second item being a pseudo-random number cryptograph- ically dependent on H and d. Given an approximately uniform distribution in the range [0,264), the expected time to find a solution is proportional to the di culty, Hd.</p><p>(35) Hp 2 B32 Hr 2 B32</p><p>Hb 2 B256 Hl 2 P Hx 2 B</p><p>^ Ho2B32 ^ ^ Ht2B32 ^ ^ Hd2P ^ ^ Hg2P ^ ^ Hm2B32 ^</p><p>Hc2B20 ^ He2B32 ^ Hi2P^ Hs2P256 ^ Hn2B8</p><p>for any function f</p><p>(45) Hl&lt;P(H)Hl+ 1024 ^</p><p>4.4.3. Serialisation. The function LB and LH are the preparation functions for a block and block header respec- (46) tively. Much like the transaction receipt preparation func-<br> tion LR, we assert the types and order of the structure for<br> when the RLP transformation is required:</p><p>Hl &gt;P(H)H P(H)Hl⌫ ^ l 1024</p><p>(32) LH(H) ⌘ ( Hp,Ho,Hc,Hr,Ht,He,Hb,Hd, Hi,Hl,Hg,Hs,Hx,Hm,Hn )</p><p>(33) LB(B) ⌘ LH(BH),L⇤T (BT),L⇤H(BU)</p><p>With L⇤T and L⇤H being element-wise sequence trans- formations, thus:<br> (34)</p><p>(47)</p><p>relation:<br> (48) Hs&gt;P(H)H</p><p>s</p><p>Hl &gt; 125000<br> Hs is the timestamp of block H and must fulfil the</p><p>where<br> (36) Bn ={B:B2B^kBk=n}</p><p>We now have a rigorous specification for the construc- tion of a formal block structure. The RLP function RLP (see Appendix B) provides the canonical method for trans- forming this structure into a sequence of bytes ready for transmission over the wire or storage locally.</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 7</p><p>This is the foundation of the security of the blockchain and is the fundamental reason why a malicious node can- not propagate newly created blocks that would otherwise overwrite (“rewrite”) history. Because the nonce must satisfy this requirement, and because its satisfaction de- pends on the contents of the block and in turn its com- posed transactions, creating new, valid, blocks is di cult and, over time, requires approximately the total compute power of the trustworthy portion of the mining peers.</p><p>Thus we are able to define the block header validity function V (H):</p><p>they will execute transactions and transactors will be free to canvas these prices in determining what gas price to o↵er. Since there will be a (weighted) distribution of min- imum acceptable gas prices, transactors will necessarily have a trade-o↵ to make between lowering the gas price and maximising the chance that their transaction will be mined in a timely manner.</p><p>6. Transaction Execution</p><p>The execution of a transaction is the most complex part of the Ethereum protocol: it defines the state transition function ⌥. It is assumed that any transactions executed first pass the initial tests of intrinsic validity. These in- clude:</p><p>(1) The transaction is well-formed RLP, with no ad- ditional trailing bytes;</p><p>(2) the transaction signature is valid;<br> (3) the transaction nonce is valid (equivalent to the</p><p>sender account’s current nonce);<br> (4) the gas limit is no smaller than the intrinsic gas,</p><p>g0 , used by the transaction;<br> (5) the sender account balance contains at least the</p><p>cost, v0, required in up-front payment.<br> Formally, we consider the function ⌥, with T being a</p><p>transaction and the state:<br> (59) 0=⌥( ,T)</p><p>Thus 0 is the post-transactional state. We also define ⌥g to evaluate to the amount of gas used in the execution of a transaction and ⌥l to evaluate to the transaction’s accrued log items, both to be formally defined later.</p><p>6.1. Substate. Throughout transaction execution, we accrue certain information that is acted upon immediately following the transaction. We call this transaction sub- state, and represent it as A, which is a tuple:</p><p>(60) A ⌘ (As,Al,Ar)</p><p>The tuple contents include As, the suicide set: a set of accounts that will be discarded following the transac- tion’s completion. Al is the log series: this is a series of archived and indexable ‘checkpoints’ in VM code execu- tion that allow for contract-calls to be easily tracked by onlookers external to the Ethereum world (such as decen- tralised application front-ends). Finally there is Ar, the refund balance, increased through using the SSTORE in- struction in order to reset contract storage to zero from some non-zero value. Though not immediately refunded, it is allowed to partially o↵set the total execution costs.</p><p>For brevity, we define the empty substate A0 to have no suicides, no logs and a zero refund balance:</p><p>(61) A0 ⌘ (?, (), 0)</p><p>6.2. Execution. We define intrinsic gas g0, the amount of gas this transaction requires to be paid prior to execu-</p><p>tion, as follows: (<br> (62) g0⌘ X( Gtxdatazero if i=0</p><p>2256</p><ol><li>(50) V(H) ⌘ n6 Hd ^m=Hm</li><li>(51) Hd=D(H)^</li><li>(52) HgHl^</li></ol><p>^</p><p>P(H)Hl ⌫ (53) Hl&lt;P(H)Hl+ 1024 ^</p><p>P(H)H ⌫ (54) Hl&gt;P(H)Hl l ^</p><p>1024 (55) Hl&gt;125000 ^</p><ol><li>(56) Hs&gt;P(H)Hs ^</li><li>(57) Hi=P(H)Hi+1 ^</li><li>(58) kHxk  32</li></ol><p>where (n, m) = PoW(Hn, Hn, d)<br> Noting additionally that extraData must be at most</p><p>32 bytes.</p><p>5. Gas and Payment</p><p>In order to avoid issues of network abuse and to side- step the inevitable questions stemming from Turing com- pleteness, all programmable computation in Ethereum is subject to fees. The fee schedule is specified in units of gas (see Appendix G for the fees associated with var- ious computation). Thus any given fragment of pro- grammable computation (this includes creating contracts, making message calls, utilising and accessing account stor- age and executing operations on the virtual machine) has a universally agreed cost in terms of gas.</p><p>Every transaction has a specific amount of gas associ- ated with it: gasLimit. This is the amount of gas which is implicitly purchased from the sender’s account balance. The purchase happens at the according gasPrice, also specified in the transaction. The transaction is considered invalid if the account balance cannot support such a pur- chase. It is named gasLimit since any unused gas at the end of the transaction is refunded (at the same rate of pur- chase) to the sender’s account. Gas does not exist outside of the execution of a transaction. Thus for accounts with trusted code associated, a relatively high gas limit may be set and left alone.</p><p>In general, Ether used to purchase gas that is not re- funded is delivered to the beneficiary address, the address of an account typically under the control of the miner. Transactors are free to specify any gasPrice that they wish, however miners are free to ignore transactions as they choose. A higher gas price on a transaction will there- fore cost the sender more in terms of Ether and deliver a greater value to the miner and thus will more likely be selected for inclusion by more miners. Miners, in general, will choose to advertise the minimum gas price for which</p><p>Gtxdatanonzero<br> (63) + Gtxcreate if Tt = ?^Hi NH</p><p>0 otherwise (64) + Gtransaction</p><p>where Ti , Td means the series of bytes of the trans- action’s associated data and initialisation EVM-code, depending on whether the transaction is for contract- creation or message-call. Gtxcreate is added if the transac- tion is contract-creating, but not if a result of EVM-code or before the Homestead transition. G is fully defined in Appendix G.</p><p>The up-front cost v0 is calculated as: (65) v0 ⌘TgTp +Tv</p><p>The validity is determined as:</p><p>from the refund counter, to the sender at the original rate.</p><p>⇤ 0 jTg g0k<br> (72) g ⌘g +min{ 2 ,Ar}</p><p>The total refundable amount is the legitimately remain- ing gas g0, added to Ar, with the latter component being capped up to a maximum of half (rounded down) of the total amount used Tg g0.</p><p>The Ether for the gas is given to the miner, whose ad- dress is specified as the beneficiary of the present block B. So we define the pre-final state ⇤ in terms of the provisional state P :</p><p>(66) S(T) 6= [S(T)] 6= Tn = g0 6 v0 6 Tg 6</p><p>?^<br> ?^ [S(T)]n ^ Tg^ [S(T)]b ^ BHl `(BR)u</p><p>⇤ ⌘ P except ⇤[S(T )]b ⌘ P [S(T )]b + g⇤Tp</p><p>⇤[m]b ⌘ P [m]b + (Tg g⇤)Tp</p><p>Note the final condition; the sum of the transaction’s gas limit, Tg, and the gas utilised in this block prior, given by `(BR)u, must be no greater than the block’s gasLimit, BHl.</p><p>The execution of a valid transaction begins with an irrevocable change made to the state: the nonce of the ac- count of the sender, S(T), is incremented by one and the balance is reduced by part of the up-front cost, Tg Tp . The gas available for the proceeding computation, g, is defined as Tg g0. The computation, whether contract creation or a message call, results in an eventual state (which may legally be equivalent to the current state), the change to which is deterministic and never invalid: there can be no invalid transactions from this point.</p><p>We define the checkpoint state 0:</p><p>(67) (68) (69)</p><p>0 ⌘ except: 0[S(T)]b ⌘ [S(T)]b TgTp</p><p>0[S(T)]n ⌘ [S(T)]n + 1</p><p>Evaluating P from 0 depends on the transaction type; either contract creation or message call; we define the tuple of post-execution provisional state P , remain- ing gas g0 and substate A:<br> (70) 8</p><p>&gt; &gt; &gt; &gt;: ⇤ ( 0 , S ( T ) , T o ,</p><p>( P , g0, A) ⌘ &lt; g,Tp,Tv,Ti,0) &gt;⇥3( 0,S(T),To,</p><p>if Tt =? Tt,Tt,g,Tp,Tv,Tv,Td,0) otherwise</p><p>where g is the amount of gas remaining after deducting the basic amount required to pay for the existence of the transaction:</p><p>(71) g ⌘ Tg g0</p><p>and To is the original transactor, which can di↵er from the sender in the case of a message call or contract creation not directly triggered by a transaction but coming from the execution of EVM-code.</p><p>Note we use ⇥3 to denote the fact that only the first three components of the function’s value are taken; the final represents the message-call’s output value (a byte array) and is unused in the context of transaction evalua- tion.</p><p>After the message call or contract creation is processed, the state is finalised by determining the amount to be re- funded, g⇤ from the remaining gas, g0, plus some allowance</p><p>(73) (74) (75) (76)</p><p>that appear in the suicide list:<br> (77) 0 ⌘ ⇤ except (78) 8i2As : 0[i] ⌘ ?</p><p>And finally, we specify ⌥g, the total gas used in this transaction and ⌥l, the logs created by this transaction:</p><p>(79) ⌥g( ,T) ⌘ Tg g0 (80) ⌥l( ,T) ⌘ Al</p><p>These are used to help define the transaction receipt, discussed later.</p><p>7. Contract Creation</p><p>There are a number of intrinsic parameters used when creating an account: sender (s), original transactor (o), available gas (g), gas price (p), endowment (v) together with an arbitrary length byte array, i, the initialisation EVM code and finally the present depth of the message- call/contract-creation stack (e).</p><p>We define the creation function formally as the func- tion ⇤, which evaluates from these values, together with the state to the tuple containing the new state, remain- ing gas and accrued transaction substate ( 0, g0, A), as in section 6:</p><p>(81) ( 0,g0,A) ⌘ ⇤( ,s,o,g,p,v,i,e)</p><p>The address of the new account is defined as being the rightmost 160 bits of the Keccak hash of the RLP encod- ing of the structure containing only the sender and the nonce. Thus we define the resultant address for the new account a: ⇣ ⇣ ⌘⌘</p><p>(82) a ⌘ B96..255 KEC RLP (s, [s]n 1)</p><p>where KEC is the Keccak 256-bit hash function, RLP is the RLP encoding function, Ba..b(X) evaluates to binary value containing the bits of indices in the range [a,b] of the binary data X and [x] is the address state of x or ? if none exists. Note we use one fewer than the sender’s nonce value; we assert that we have incremented the sender ac- count’s nonce prior to this call, and so the value used is the sender’s nonce at the beginning of the responsible transaction or VM operation.</p><p>The account’s nonce is initially defined as zero, the balance as the value passed, the storage as empty and the code hash as the Keccak 256-bit hash of the empty string;</p><p>m ⌘ BH<br> The final state, 0, is reached after deleting all accounts</p><p>c</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 9 the sender’s balance is also reduced by the value passed. state is allowed to persist. Thus formally, we may specify</p><p>Thus the mutated state becomes ⇤: the resultant state, gas and substate as ( 0,g0,A) where:</p><p>(83) ⇤⌘ except:<br> ⇤ 0 (97)</p><p>(84) [a] ⌘ 0,v+v,TRIE(?),KEC() (85) ⇤[s]b ⌘ [s]b v</p><p>8: ⇤⇤<br> &gt;&lt;0 if =?</p><p>g0⌘ g⇤⇤ if g⇤⇤&lt;c^Hi&lt;NH where v is the account’s pre-existing value, in the event g⇤⇤ c otherwise</p><p>0( &gt;8</p><p>it was previously in existence: (98)</p><p>0 0 if [a]=? &gt; (86) v⌘ &gt;:</p><p>if ⇤⇤=?<br> if g⇤⇤ &lt;c^Hi &lt;NH</p><p>otherwise</p><p>(88) (89) (90) (91) (92) (93) (94) (95)</p><p>Ia ⌘a Io ⌘o Ip ⌘p Id ⌘ () Is ⌘s Iv ⌘v Ib ⌘i Ie ⌘e</p><p>The exception in the determination of 0 dictates that o, the resultant byte sequence from the execution of the initialisation code, specifies the final body code for the newly-created account.</p><p>Note that the intention from block NH onwards (Home- stead) is that the result is either a successfully created new contract with its endowment, or no new contract with no transfer of value. Before Homestead, if there is not enough gas to pay c, an account at the new contract’s address is created, along with all the initialisation side-e↵ects, and the value is transferred, but no contract code is deployed.</p><p>7.1. Subtleties. Note that while the initialisation code is executing, the newly created address exists but with no intrinsic body code. Thus any message call received by it during this time causes no code to be executed. If the initialisation execution ends with a SUICIDE instruction, the matter is moot since the account will be deleted before the transaction is completed. For a normal STOP code, or if the code returned is otherwise empty, then the state is left with a zombie account, and any remaining balance will be locked into the account forever.</p><p>8. Message Call</p><p>In the case of executing a message call, several param- eters are required: sender (s), transaction originator (o), recipient (r), the account whose code is to be executed (c, usually the same as recipient), available gas (g), value (v) and gas price (p) together with an arbitrary length byte array, d, the input data of the call and finally the present depth of the message-call/contract-creation stack (e).</p><p>Aside from evaluating to a new state and transaction substate, message calls also have an extra component — the output data denoted by the byte array o. This is ignored when executing transactions, however message calls can be initiated due to VM-code execution and in this case this information is used.</p><p>Note that we need to di↵erentiate between the value that is to be transferred, v, from the value apparent in the ex- ecution context, v ̃, for the DELEGATECALL instruction.</p><p>We define 1, the first transitional state as the orig- inal state but with the value transferred from sender to recipient:</p><p>(100) 1[r]b ⌘ [r]b + v ^ 1[s]b ⌘ [s]b v</p><p>Throughout the present work, it is assumed that if 1[r] was originally undefined, it will be created as an ac- count with no code or state and zero balance and nonce.</p><p>a parameter, gas, which limits the total amount of com- putation done.</p><p>9.1. Basics. The EVM is a simple stack-based architec- ture. The word size of the machine (and thus size of stack item) is 256-bit. This was chosen to facilitate the Keccak- 256 hash scheme and elliptic-curve computations. The memory model is a simple word-addressed byte array. The stack has a maximum size of 1024. The machine also has an independent storage model; this is similar in concept to the memory but rather than a byte array, it is a word- addressable word array. Unlike memory, which is volatile, storage is non volatile and is maintained as part of the system state. All locations in both storage and memory are well-defined initially as zero.</p><p>The machine does not follow the standard von Neu- mann architecture. Rather than storing program code in generally-accessible memory or storage, it is stored sepa- rately in a virtual ROM interactable only through a spe- cialised instruction.</p><p>The machine can have exceptional execution for sev- eral reasons, including stack underflows and invalid in- structions. Like the out-of-gas (OOG) exception, they do not leave state changes intact. Rather, the machine halts immediately and reports the issue to the execution agent (either the transaction processor or, recursively, the spawning execution environment) which will deal with it separately.</p><p>9.2. Fees Overview. Fees (denominated in gas) are charged under three distinct circumstances, all three as prerequisite to the execution of an operation. The first and most common is the fee intrinsic to the computation of the operation (see Appendix G). Secondly, gas may be deducted in order to form the payment for a subor- dinate message call or contract creation; this forms part of the payment for CREATE, CALL and CALLCODE. Fi- nally, gas may be paid due to an increase in the usage of the memory.</p><p>Over an account’s execution, the total fee for memory- usage payable is proportional to smallest multiple of 32 bytes that are required such that all memory indices (whether for read or write) are included in the range. This is paid for on a just-in-time basis; as such, referencing an area of memory at least 32 bytes greater than any previ- ously indexed memory will certainly result in an additional memory usage fee. Due to this fee it is highly unlikely addresses will ever go above 32-bit bounds. That said, implementations must be able to manage this eventuality.</p><p>Storage fees have a slightly nuanced behaviour — to in- centivise minimisation of the use of storage (which corre- sponds directly to a larger state database on all nodes), the execution fee for an operation that clears an entry in the storage is not only waived, a qualified refund is given; in fact, this refund is e↵ectively paid up-front since the initial usage of a storage location costs substantially more than normal usage.</p><p>See Appendix H for a rigorous definition of the EVM gas cost.</p><p>9.3. Execution Environment. In addition to the sys- tem state , and the remaining gas for computation g, there are several pieces of important information used in</p><p>The account’s associated code (identified as the frag- ment whose Keccak hash is [c]c) is executed according to the execution model (see section 9). Just as with contract creation, if the execution halts in an exceptional fashion (i.e. due to an exhausted gas supply, stack underflow, in- valid jump destination or invalid instruction), then no gas is refunded to the caller and the state is reverted to the point immediately prior to balance transfer (i.e. ).</p><p>(105) 0 ⌘ (106() ⇤⇤,g0,s,o) ⌘</p><p>(⇤⇤<br> if =?</p><p>if r=1 ifr=2 ifr=3 ifr=4 otherwise</p><p>(107)<br> (108)<br> (109)<br> (110)<br> (111)<br> (112)<br> (113)<br> (114)Let KEC(Ib) = [c]c</p><p>Ia ⌘<br> Io ⌘<br> Ip ⌘<br> Id ⌘<br> Is ⌘ Iv⌘v ̃ Ie ⌘ e</p><p>⇤⇤ otherwise &gt;⌅ ( ,g,I)</p><p>8&gt;&lt;<br> &gt;⌅SHA256( 1, g, I)</p><p>&gt; ECREC 1</p><p>⌅RIP160( 1, g, I) &gt;⌅ID( 1, g, I) :⌅( 1,g,I)<br> r</p><p>o p d s</p><p>It is assumed that the client will have stored the pair (KEC(Ib),Ib) at some point prior in order to make the de- termination of Ib feasible.</p><p>As can be seen, there are four exceptions to the usage of the general execution framework ⌅ for evaluation of the message call: these are four so-called ‘precompiled’ con- tracts, meant as a preliminary piece of architecture that may later become native extensions. The four contracts in addresses 1, 2, 3 and 4 execute the elliptic curve public key recovery function, the SHA2 256-bit hash scheme, the RIPEMD 160-bit hash scheme and the identity function respectively.</p><p>Their full formal definition is in Appendix E.</p><p>9. Execution Model</p><p>The execution model specifies how the system state is altered given a series of bytecode instructions and a small tuple of environmental data. This is specified through a formal model of a virtual state machine, known as the Ethereum Virtual Machine (EVM). It is a quasi-Turing- complete machine; the quasi qualification comes from the fact that the computation is intrinsically bounded through</p><p>[r] = ? otherwise</p><p>(116) (117) (118) (119) (120) (121)</p><p>⌅( ,g,I) ⌘ μg ⌘</p><p>μpc ⌘ μm ⌘</p><p>μi ⌘ μs ⌘</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 11</p><p>the execution environment that the execution agent must provide; these are contained in the tuple I:</p><ul><li>Ia, the address of the account which owns the code that is executing.</li><li>Io,thesenderaddressofthetransactionthatorig- inated this execution.</li><li>Ip, the price of gas in the transaction that origi- nated this execution.</li><li>Id, the byte array that is the input data to this execution; if the execution agent is a transaction, this would be the transaction data.</li><li>Is, the address of the account which caused the code to be executing; if the execution agent is a transaction, this would be the transaction sender.</li><li>Iv, the value, in Wei, passed to this account as part of the same procedure as execution; if the execution agent is a transaction, this would be the transaction value.</li><li>Ib, the byte array that is the machine code to be executed.</li><li>IH , the block header of the present block.</li><li>Ie, the depth of the present message-call or contract-creation (i.e. the number of CALLs or</li><li>CREATEs being executed at present).</li><li>The execution model defines the function ⌅, which can compute the resultant state 0, the remaining gas g0, the suicide list s, the log series l, the refunds r and the resul- tant output, o, given these definitions:</li></ul><p>(115) ( 0,g0,s,l,r,o) ⌘ ⌅( ,g,I)</p><p>9.4. Execution Overview. We must now define the ⌅ function. In most practical implementations this will be modelled as an iterative progression of the pair comprising the full system state, and the machine state, μ. For- mally, we define it recursively with a function X. This uses an iterator function O (which defines the result of a single cycle of the state machine) together with functions Z which determines if the present state is an exceptional halting state of the machine and H, specifying the output data of the instruction if and only if the present state is a normal halting state of the machine.</p><p>The empty sequence, denoted (), is not equal to the empty set, denoted ?; this is important when interpreting the output of H, which evaluates to ? when execution is to continue but a series (potentially empty) when execution should halt.</p><p>Note that we must drop the fourth value in the tuple returned by X to correctly evaluate ⌅, hence the subscript X0,1,2,4 .</p><p>X is thus cycled (recursively here, but implementations are generally expected to use a simple iterative loop) until either Z becomes true indicating that the present state is exceptional and that the machine must be halted and any changes discarded or until H becomes a series (rather than the empty set) indicating that the machine has reached a controlled halt.</p><p>9.4.1. Machine State. The machine state μ is defined as the tuple (g,pc,m,i,s) which are the gas available, the program counter pc 2 P256 , the memory contents, the ac- tive number of words in memory (counting continuously from position 0), and the stack contents. The memory contents μm are a series of zeroes of size 2256.</p><p>For the ease of reading, the instruction mnemonics, written in small-caps (e.g. ADD), should be interpreted as their numeric equivalents; the full table of instructions and their specifics is given in Appendix H.</p><p>For the purposes of defining Z, H and O, we define w as the current operation to be executed:</p><p>(Ib[μpc] if μpc &lt; kIbk (125) w ⌘ STOP otherwise</p><p>We also assume the fixed amounts of and ↵, specify- ing the stack items removed and added, both subscript- able on the instruction and an instruction cost function C evaluating to the full cost, in gas, of executing the given instruction.</p><p>9.4.2. Exceptional Halting. The exceptional halting func- tion Z is defined as:</p><p>(126) Z( , μ, I) ⌘ μg&lt;C( ,μ,I)_ w=? _</p><p>kμsk &lt; w _<br> (w 2 {JUMP, JUMPI} ^</p><p>μs[0] 2/ D(Ib)) _ kμsk w +↵w &gt;1024</p><p>This states that the execution is in an exceptional halt- ing state if there is insu cient gas, if the instruction is in- valid (and therefore its subscript is undefined), if there are insu cient stack items, if a JUMP/JUMPI destination is invalid or the new stack size would be larger then 1024. The astute reader will realise that this implies that no in- struction can, through its execution, cause an exceptional halt.</p><p>9.4.3. Jump Destination Validity. We previously used D as the function to determine the set of valid jump desti- nations given the code that is being run. We define this as any position in the code occupied by a JUMPDEST in- struction.</p><p>All such positions must be on valid instruction bound- aries, rather than sitting in the data portion of PUSH operations and must appear within the explicitly defined portion of the code (rather than in the implicitly defined STOP operations that trail it).</p><p>Formally:<br> (127) D(c) ⌘ DJ (c, 0)</p><p>X0,1,2,4 ( , μ, A0, I) g<br> 0<br> (0, 0, …)</p><p>0 ()</p><p>(122) 8&lt; 0 <br> &gt; ?,μ,A ,I,() if Z( ,μ,I)</p><p>X ( ,μ,A,I) ⌘ O( ,μ,A,I)·o if o6=?</p><p>where</p><p>&gt;:X O( , μ, A, I)</p><p>otherwise</p><ol><li>(123) o ⌘ H(μ,I)</li><li>(124) (a,b,c) · d ⌘ (a,b,c,d)</li></ol><p>(130)<br> H(μ, I) ⌘</p><p>8<br> &gt;&lt;&gt;:HRETURN(μ) if w = RETURN</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 12</p><p>where: (128) 8</p><p>&gt;&lt;&gt; { } i f i &gt; | c |<br> DJ(c,i)⌘ {i}[DJ(c,N(i,c[i])) if c[i]=JUMPDEST</p><p>:DJ (c, N (i, c[i])) otherwise<br> where N is the next valid instruction position in the</p><p>arrive at the leaf. This is akin to existing schemes, such as that employed in Bitcoin-derived protocols.</p><p>Since a block header includes the di culty, the header alone is enough to validate the computation done. Any block contributes toward the total computation or total di culty of a chain.</p><p>Thus we define the total di culty of block B recur- sively as:</p><p>( 1 4 1 ) B t ⌘ B t0 + B d (142) B0 ⌘ P(BH)</p><p>As such given a block B, Bt is its total di culty, B0 is its parent block and Bd is its di culty.</p><p>11. Block Finalisation<br> The process of finalising a block involves four stages:</p><p>(1) Validate (or, if mining, determine) ommers;<br> (2) validate (or, if mining, determine) transactions; (3) apply rewards;<br> (4) verify (or, if mining, compute a valid) state and</p><p>nonce.</p><p>11.1. Ommer Validation. The validation of ommer headers means nothing more than verifying that each om- mer header is both a ^valid header and satisfies the rela- tion of Nth-generation ommer to the present block where N  6. The maximum of ommer headers is two. Formally:</p><p>(143) kBUk62 V(U) ^ k(U,P(BH)H,6) U 2BU</p><p>where k denotes the “is-kin” property:</p><p>(144)<br> k(U, H, n) ⌘</p><p>code, skipping the data of a PUSH instruction, if any:<br> ( 1 2 9 ) ( i + w P U S H 1 + 2 i f w 2 [ P U S H 1 , P U S H 3 2 ]</p><p>9.4.4. Normal Halting. The normal halting function H is defined:</p><p>N(i,w)⌘ i+1 otherwise</p><p>()</p><p>?</p><p>if w 2 {STOP, SUICIDE} otherwise</p><p>The data-returning halt operation, RETURN, has a special function HRETURN, defined in Appendix H.</p><p>9.5. The Execution Cycle. Stack items are added or removed from the left-most, lower-indexed portion of the series; all other items remain unchanged:</p><p>(131) (132) (133) (134)</p><p>O ( , μ, A, I) ⌘ ( 0, μ0, A0, I) ⌘ ↵w w</p><p>kμ0sk ⌘ kμsk + 8x 2 [↵w, kμ0sk) : μ0s[x] ⌘ μs[x + ]</p><p>The gas is reduced by the instruction’s gas cost and for most instructions, the program counter increments on each cycle, for the three exceptions, we assume a function J, subscripted by one of two instructions, which evaluates to the according val8ue:</p><p>( 1 3 5 ) μ 0g ⌘ μ g C ( , μ , I )<br> &gt;&lt;&gt;:JJUMP(μ) if w = JUMP</p><p>N (μpc , w)</p><p>In general, we assume the memory, suicide list and sys- tem state don’t change:</p><p>8<br> &gt;&lt;&gt; f a l s e</p><p>(136) μ0pc ⌘ JJUMPI(μ) if</p><p>and s denotes the “is-sibling” property: (145)</p><p>s(U,H)⌘(P(H)=P(U) ^ H6=U ^ U2/B(H)U) where B(H) is the block of the corresponding header H.</p><p>11.2. Transaction Validation. The given gasUsed must correspond faithfully to the transactions listed: BH g , the total gas used in the block, must be equal to the ac- cumulated gas used according to the final transaction:</p><p>(146) BH g = `(R)u</p><p>11.3. Reward Application. The application of rewards</p><p>to a block involves raising the balance of the accounts of</p><p>the beneficiary address of the block and each ommer by a</p><p>certain amount. We raise the block’s beneficiary account</p><p>by Rb; for each ommer, we raise the block’s beneficiary by</p><p>an additional 1 of the block reward and the beneficiary of 32</p><p>the ommer gets rewarded depending on the block number. Formally we define the function ⌦:</p><p>(137) (138) (139) (140)</p><p>μ0m ⌘ μm μ0 ⌘ μ</p><p>A0 ⌘ A</p><p>0 ⌘</p><p>ii</p><p>However, instructions do typically alter one or several components of these values. Altered components listed by instruction are noted in Appendix H, alongside values for ↵ and and a formal description of the gas requirements.</p><p>10. Blocktree to Blockchain<br> The canonical blockchain is a path from root to leaf</p><p>through the entire block tree. In order to have consensus over which path it is, conceptually we identify the path that has had the most computation done upon it, or, the heaviest path. Clearly one factor that helps determine the heaviest path is the block number of the leaf, equivalent to the number of blocks, not counting the unmined genesis block, in the path. The longer the path, the greater the total mining e↵ort that must have been done in order to</p><p>(147) ⌦(B, ) (148) 0[BHc]b (149)8U2BU :</p><p>0[Uc]b</p><p>If there are tween ommers</p><p>⌘ 0 : 0 = except:<br> = [BHc]b+(1+kBUk)Rb</p><p>32</p><p>= [Uc]b +(1+ 1(Ui BHi))Rb 8</p><p>collisions of the beneficiary addresses be- and the block (i.e. two ommers with the</p><p>same beneficiary address or an ommer with the same bene- ficiary address as the present block), additions are applied cumulatively.</p><p>We define the block reward as 5 Ether: (150) Let Rb = 5 ⇥ 1018</p><p>11.4. State &amp; Nonce Validation. We may now define the function, , that maps a block B to its initiation state:</p><p>11.5. Mining Proof-of-Work. The mining proof-of- work (PoW) exists as a cryptographically secure nonce that proves beyond reasonable doubt that a particular amount of computation has been expended in the deter- mination of some token value n. It is utilised to enforce the blockchain security by giving meaning and credence to the notion of di culty (and, by extension, total dif- ficulty). However, since mining new blocks comes with an attached reward, the proof-of-work not only functions as a method of securing confidence that the blockchain will remain canonical into the future, but also as a wealth distribution mechanism.</p><p>For both reasons, there are two important goals of the proof-of-work function; firstly, it should be as accessible as possible to as many people as possible. The requirement of, or reward from, specialised and uncommon hardware should be minimised. This makes the distribution model as open as possible, and, ideally, makes the act of mining a simple swap from electricity to Ether at roughly the same rate for anyone around the world.</p><p>Secondly, it should not be possible to make super-linear profits, and especially not so with a high initial barrier. Such a mechanism allows a well-funded adversary to gain a troublesome amount of the network’s total mining power and as such gives them a super-linear reward (thus skew- ing distribution in their favour) as well as reducing the network security.</p><p>One plague of the Bitcoin world is ASICs. These are specialised pieces of compute hardware that exist only to do a single task. In Bitcoin’s case the task is the SHA256 hash function. While ASICs exist for a proof-of-work func- tion, both goals are placed in jeopardy. Because of this, a proof-of-work function that is ASIC-resistant (i.e. di — cult or economically ine cient to implement in specialised compute hardware) has been identified as the proverbial silver bullet.</p><p>Two directions exist for ASIC resistance; firstly make it sequential memory-hard, i.e. engineer the function such that the determination of the nonce requires a lot of mem- ory and bandwidth such that the memory cannot be used in parallel to discover multiple nonces simultaneously. The second is to make the type of computation it would need to do general-purpose; the meaning of “specialised hard- ware” for a general-purpose task set is, naturally, general purpose hardware and as such commodity desktop com- puters are likely to be pretty close to “specialised hard- ware” for the task. For Ethereum 1.0 we have chosen the first path.</p><p>More formally, the proof-of-work function takes the form of PoW:<br> (160)</p><p>(151) (B) ⌘</p><p>( 0<br> i :TRIE(LS( i)) = P(BH)Hr</p><p>if P(BH)=? otherwise</p><p>Here,TRIE(LS( i)) means the hash of the root node of a trie of state i; it is assumed that implementations will store this in the state database, trivial and e cient since the trie is by nature an immutable data structure.</p><p>And finally define , the block transition function, which maps an incomplete block B to a complete block B0:</p><p>(152) (B) ⌘ B0 : B0 = B⇤</p><p>except:</p><p>0</p><p>2256</p><p>(153) Bn = n: x6<br> (154) Bm0 = m with (x,m) =PoW(Bn⇤ ,n,d)</p><p>Hd<br> (155) B⇤ ⌘ B except: Br⇤ = r(⇧( (B), B))</p><p>With d being a dataset as specified in appendix J.<br> As specified at the beginning of the present work, ⇧ is the state-transition function, which is defined in terms of ⌦, the block finalisation function and ⌥, the transaction-</p><p>evaluation function, both now well-defined.<br> As previously detailed, R[n] , R[n]l and R[n]u are the</p><p>nth corresponding states, logs and cumulative gas used af- ter each transaction (R[n]b, the fourth component in the tuple, has already been defined in terms of the logs). The former is defined simply as the state resulting from apply- ing the corresponding transaction to the state resulting from the previous transaction (or the block’s initial state in the case of the first such transaction):</p><p>( (B)<br> (156) R[n] = ⌥(R[n 1] , BT [n])</p><p>if n&lt;0 otherwise</p><p>In the case of BR[n]u, we take a similar approach defin- ing each item as the gas used in evaluating the correspond- ing transaction summed with the previous item (or zero, if it is the first), giving us a running total:</p><p>8&gt;&lt;&gt;: 0 (157) R[n]u =</p><p>⌥g(R[n 1] ,BT[n]) +R[n 1]u</p><p>i f n &lt; 0 otherwise</p><p>2256 Hd</p><p>l<br> For R[n]l, we utilise the ⌥ function that we conve-</p><p>niently defined in the transaction execution function. (158) R[n]l =⌥l(R[n 1] ,BT[n])</p><p>Finally, we define ⇧ as the new state given the block reward function ⌦ applied to the final transaction’s resul- tant state, `(BR) :</p><p>(159) ⇧( , B) ⌘ ⌦(B, `(R) )</p><p>Thus the complete block-transition mechanism, less PoW, the proof-of-work function is defined.</p><p>m = Hm ^</p><p>n 6</p><p>with (m,n) =PoW(Hn,Hn,d)</p><p>Where Hn is the new block’s header but without the nonce and mix-hash components; Hn is the nonce of the header; d is a large data set needed to compute the mix- Hash and Hd is the new block’s di culty value (i.e. the block di culty from section 10). PoW is the proof-of-work function which evaluates to an array with the first item being the mixHash and the second item being a pseudo- random number cryptographically dependent on H and d. The underlying algorithm is called Ethash and is described below.</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 14</p><p>11.5.1. Ethash. Ethash is the planned PoW algorithm for Ethereum 1.0. It is the latest version of Dagger- Hashimoto, introduced by Buterin [2013b] and Dryja [2014], although it can no longer appropriately be called that since many of the original features of both algorithms have been drastically changed in the last month of research and development. The general route that the algorithm takes is as follows:</p><p>There exists a seed which can be computed for each block by scanning through the block headers up until that point. From the seed, one can compute a pseudorandom cache, Jcacheinit bytes in initial size. Light clients store the cache. From the cache, we can generate a dataset, Jdatasetinit bytes in initial size, with the property that each item in the dataset depends on only a small number of items from the cache. Full clients and miners store the dataset. The dataset grows linearly with time.</p><p>Mining involves grabbing random slices of the dataset and hashing them together. Verification can be done with low memory by using the cache to regenerate the specific pieces of the dataset that you need, so you only need to store the cache. The large dataset is updated once ev- ery Jepoch blocks, so the vast majority of a miner’s e↵ort will be reading the dataset, not making changes to it. The mentioned parameters as well as the algorithm is explained in detail in appendix J.</p><p>12. Implementing Contracts</p><p>There are several patterns of contracts engineering that allow particular useful behaviours; two of these that I will briefly discuss are data feeds and random numbers.</p><p>12.1. Data Feeds. A data feed contract is one which pro- vides a single service: it gives access to information from the external world within Ethereum. The accuracy and timeliness of this information is not guaranteed and it is the task of a secondary contract author — the contract that utilises the data feed — to determine how much trust can be placed in any single data feed.</p><p>The general pattern involves a single contract within Ethereum which, when given a message call, replies with some timely information concerning an external phenom- enon. An example might be the local temperature of New York City. This would be implemented as a contract that returned that value of some known point in storage. Of course this point in storage must be maintained with the correct such temperature, and thus the second part of the pattern would be for an external server to run an Ethereum node, and immediately on discovery of a new block, creates a new valid transaction, sent to the contract, updating said value in storage. The contract’s code would accept such updates only from the identity contained on said server.</p><p>12.2. Random Numbers. Providing random numbers within a deterministic system is, naturally, an impossible task. However, we can approximate with pseudo-random numbers by utilising data which is generally unknowable at the time of transacting. Such data might include the block’s hash, the block’s timestamp and the block’s benefi- ciary address. In order to make it hard for malicious miner to control those values, one should use the BLOCKHASH operation in order to use hashes of the previous 256 blocks as pseudo-random numbers. For a series of such numbers,</p><p>a trivial solution would be to add some constant amount and hashing the result.</p><p>13. Future Directions</p><p>The state database won’t be forced to maintain all past state trie structures into the future. It should maintain an age for each node and eventually discard nodes that are neither recent enough nor checkpoints; checkpoints, or a set of nodes in the database that allow a particular block’s state trie to be traversed, could be used to place a maxi- mum limit on the amount of computation needed in order to retrieve any state throughout the blockchain.</p><p>Blockchain consolidation could be used in order to re- duce the amount of blocks a client would need to download to act as a full, mining, node. A compressed archive of the trie structure at given points in time (perhaps one in every 10,000th block) could be maintained by the peer network, e↵ectively recasting the genesis block. This would reduce the amount to be downloaded to a single archive plus a hard maximum limit of blocks.</p><p>Finally, blockchain compression could perhaps be con- ducted: nodes in state trie that haven’t sent/received a transaction in some constant amount of blocks could be thrown out, reducing both Ether-leakage and the growth of the state database.</p><p>13.1. Scalability. Scalability remains an eternal con- cern. With a generalised state transition function, it be- comes di cult to partition and parallelise transactions to apply the divide-and-conquer strategy. Unaddressed, the dynamic value-range of the system remains essentially fixed and as the average transaction value increases, the less valuable of them become ignored, being economically pointless to include in the main ledger. However, several strategies exist that may potentially be exploited to pro- vide a considerably more scalable protocol.</p><p>Some form of hierarchical structure, achieved by ei- ther consolidating smaller lighter-weight chains into the main block or building the main block through the in- cremental combination and adhesion (through proof-of- work) of smaller transaction sets may allow parallelisa- tion of transaction combination and block-building. Par- allelism could also come from a prioritised set of parallel blockchains, consolidated each block and with duplicate or invalid transactions thrown out accordingly.</p><p>Finally, verifiable computation, if made generally avail- able and e cient enough, may provide a route to allow the proof-of-work to be the verification of final state.</p><p>14. Conclusion</p><p>I have introduced, discussed and formally defined the protocol of Ethereum. Through this protocol the reader may implement a node on the Ethereum network and join others in a decentralised secure social operating system. Contracts may be authored in order to algorithmically specify and autonomously enforce rules of interaction.</p><p>15. Acknowledgements</p><p>Many thanks to Aeron Buchanan for authoring the Homestead revisions, Christoph Jentzsch for authoring the Ethash algorithm and Yoichi Hirai for doing most of the</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 15</p><p>EIP-150 changes. Important maintenance, useful correc- tions and suggestions were provided by a number of oth- ers from the Ethereum DEV organisation and Ethereum community at large including Gustav Simonsson, Pawel Bylica,JuttaSteiner,NickSavers,ViktorTro ́n,Marko Simovic, Giacomo Tazzari and, of course, Vitalik Buterin.</p><p>References</p><p>Jacob Aron. BitCoin software finds new life. New Scien- tist, 213(2847):20, 2012.</p><p>Adam Back. Hashcash — Amortizable Publicly Auditable Cost-Functions. 2002. URL {http://www.hashcash. org/papers/amortizable.pdf}.</p><p>Roman Boutellier and Mareike Heinzen. Pirates, Pioneers, Innovators and Imitators. In Growth Through Innova- tion, pages 85–96. Springer, 2014.</p><p>Vitalik Buterin. Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform. 2013a. URL {http://ethereum.org/ethereum.html}.</p><p>Vitalik Buterin. Dagger: A Memory-Hard to Compute, Memory-Easy to Verify Scrypt Alternative. 2013b. URL {http://vitalik.ca/ethereum/dagger.html}.</p><p>Thaddeus Dryja. Hashimoto: I/O bound proof of work. 2014. URL {https://mirrorx.com/files/hashimoto. pdf}.</p><p>Cynthia Dwork and Moni Naor. Pricing via processing or combatting junk mail. In In 12th Annual International Cryptology Conference, pages 139–147, 1992.</p><p>Phong Vo Glenn Fowler, Landon Curt Noll. FowlerNollVo hash function. 1991. URL</p><pre>{https://en.wikipedia.org/wiki/Fowler%E2%80%</pre><p>93Noll%E2%80%93Vo_hash_function#cite_note-2}. Nils Gura, Arun Patel, Arvinderpal Wander, Hans Eberle, and Sheueling Chang Shantz. Comparing elliptic curve cryptography and RSA on 8-bit CPUs. In Crypto- graphic Hardware and Embedded Systems-CHES 2004,</p><p>pages 119–132. Springer, 2004.<br> Sergio Demian Lerner. Strict Memory Hard Hashing Func-</p><p>tions. 2014. URL {http://www.hashcash.org/papers/</p><p>memohash.pdf}.<br> Mark Miller. The Future of Law. In paper delivered at the</p><p>Extro 3 Conference (August 9), 1997.<br> Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash</p><p>system. Consulted, 1:2012, 2008.<br> Meni Rosenfeld. Overview of Colored Coins. 2012. URL</p><p>{https://bitcoil.co.il/BitcoinX.pdf}.<br> Yonatan Sompolinsky and Aviv Zohar. Accel- erating Bitcoin’s Transaction Processing. Fast Money Grows on Trees, Not Chains, 2013. URL</p><p>{CryptologyePrintArchive,Report2013/881}.</p><p><a href="http://eprint.iacr.org/">http://eprint.iacr.org/.</a><br> Simon Sprankel. Technical Basis of Digital Currencies,</p><p>2013.<br> Nick Szabo. Formalizing and securing relationships on</p><p>public networks. First Monday, 2(9), 1997.<br> Vivek Vishnumurthy, Sangeeth Chandrakumar, and Emin Gn Sirer. Karma: A secure economic framework</p><p>for peer-to-peer resource sharing, 2003.<br> J. R. Willett. MasterCoin Complete Specification. 2013.</p><p>URL {https://github.com/mastercoin-MSC/spec}. Appendix A. Terminology</p><p>External Actor: A person or other entity able to interface to an Ethereum node, but external to the world of Ethereum. It can interact with Ethereum through depositing signed Transactions and inspecting the blockchain and associated state. Has one (or more) intrinsic Accounts.</p><p>Address: A 160-bit code used for identifying Accounts.<br> Account: Accounts have an intrinsic balance and transaction count maintained as part of the Ethereum state.</p><p>They also have some (possibly empty) EVM Code and a (possibly empty) Storage State associated with them. Though homogenous, it makes sense to distinguish between two practical types of account: those with empty associated EVM Code (thus the account balance is controlled, if at all, by some external entity) and those with non-empty associated EVM Code (thus the account represents an Autonomous Object). Each Account has a single Address that identifies it.</p><p>Transaction: A piece of data, signed by an External Actor. It represents either a Message or a new Autonomous Object. Transactions are recorded into each block of the blockchain.</p><p>Autonomous Object: A notional object existent only within the hypothetical state of Ethereum. Has an intrinsic address and thus an associated account; the account will have non-empty associated EVM Code. Incorporated only as the Storage State of that account.</p><p>Storage State: The information particular to a given Account that is maintained between the times that the Account’s associated EVM Code runs.</p><p>Message: Data (as a set of bytes) and Value (specified as Ether) that is passed between two Accounts, either through the deterministic operation of an Autonomous Object or the cryptographically secure signature of the Transaction.</p><p>Message Call: The act of passing a message from one Account to another. If the destination account is associated with non-empty EVM Code, then the VM will be started with the state of said Object and the Message acted upon. If the message sender is an Autonomous Object, then the Call passes any data returned from the VM operation.</p><p>Gas: The fundamental network cost unit. Paid for exclusively by Ether (as of PoC-4), which is converted freely to and from Gas as required. Gas does not exist outside of the internal Ethereum computation engine; its price is set by the Transaction and miners are free to ignore Transactions whose Gas price is too low.</p><p>Contract: Informal term used to mean both a piece of EVM Code that may be associated with an Account or an Autonomous Object.</p><p>Object: Synonym for Autonomous Object.</p><p>(166) (167)</p><p>BE(x) ⌘ (a) · (b,c) · (d,e) =</p><p>n&lt;kbk n=0</p><p>bn ·256</p><p>kbk 1 n</p><p>ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER EIP-150 REVISION 16</p><p>App: An end-user-visible application hosted in the Ethereum Browser.<br> Ethereum Browser: (aka Ethereum Reference Client) A cross-platform GUI of an interface similar to a simplified</p><p>browser (a la Chrome) that is able to host sandboxed applications whose backend is purely on the Ethereum</p><p>protocol.<br> Ethereum Virtual Machine: (aka EVM) The virtual machine that forms the key part of the execution model</p><p>for an Account’s associated EVM Code.<br> Ethereum Runtime Environment: (aka ERE) The environment which is provided to an Autonomous Object</p><p>executing in the EVM. Includes the EVM but also the structure of the world state on which the EVM relies for</p><p>certain I/O instructions including CALL &amp; CREATE.<br> EVM Code: The bytecode that the EVM can natively execute. Used to formally specify the meaning and rami-</p><p>fications of a message to an Account.<br> EVM Assembly: The human-readable form of EVM-code.<br> LLL: TheLisp-likeLow-levelLanguage,ahuman-writablelanguageusedforauthoringsimplecontractsandgeneral</p><p>low-level language toolkit for trans-compiling to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4e17423c8d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Dawn of the Next Generation of the Internet]]></title>
            <link>https://medium.com/@jhanink/the-dawn-of-the-next-generation-of-the-internet-ce2be84aed22?source=rss-fed75ff0080c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce2be84aed22</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Joe Hanink]]></dc:creator>
            <pubDate>Thu, 25 May 2017 08:00:29 GMT</pubDate>
            <atom:updated>2017-05-26T05:58:22.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Blockchain, Crypto Currency, and Smart Contracts - the 3 pillars of Ethereum and the foundation of Web3.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYPMmMjI6jFv2sJeB-FM0Q.jpeg" /></figure><p>The public has a superficial understanding of the Internet 1.0.</p><p>They know it as a network, computers, connections, and devices for online activity such as shopping, social media, work, etc. But they don’t know the protocols of the Internet, what keeps it alive, how people fit into its sustenance. And the public doesn’t really care about that either.</p><p>With Web 2.0, more people find tech talk accessible and acceptable, know about IoT, Alexa, Siri, self-driving cars, drones, VR, Ted Talks, IFTTT, online learning, and so on.</p><p><strong>Blockchain</strong>, <strong>Crypto Currency</strong>, and <strong>Smart Contracts</strong>, the foundations of the new Internet that is rightly being hailed as Web3.0, will be broadly known by their effects.</p><p>This is where we don’t rely on or expect fiat, government, banks, or corporations to have central control over our identity, money, and decisions. These Web3.0 technologies give us a distributed, decentralized platform to bring institutional, transformative change at a scale and pace never seen before.</p><p>These components will re-invent supply chain management, logistics, voting, banking, medical records, data storage, social structures, communications, and organizational entities, and they represent a seismic, exponential evolution as significant as the birth of the internet.</p><p>This is the dawn of an era, the next generation of the internet. It is happening now, it is happening everywhere, and it is unstoppable.</p><p>How do we know that things are afoot?</p><ul><li>China legalized Bitcoin trading</li><li>Bitcoin is now legal tender in Japan</li><li>India has eliminated some fiat denominations to experiment with crypto currency</li><li>The formation of the Enterprise Ethereum Alliance has rallied over a hundred major corporations (including Microsoft, IBM, Samsung, Deloitte, Accenture, Intel, JP Morgan, Merck, Toyota) around Ethereum blockchain to bring identity and fintech solutions into reality</li><li>Hyperledger of the Linux Foundation, and R3 bank consortia are powering up for blockchain R&amp;D</li><li>Bitcoin went ballistic from $1000 to over $2600 in 4 months</li><li>Ether rose from $15 to over $200 in 4 months</li><li>ICOs (initial coin offerings) are crowdfunding new startups every week with many millions of dollars, some of which sell out in hours</li><li>Consensus 2017 Conference brought together all the big players to speak about their projects and plans for 2017 and 2018, including major initiatives such as <a href="https://twitter.com/identity2020">@</a>identity2020 to serve the world’s 2 billion underbanked</li><li>Estonia is bringing health care medical records to the blockchain</li><li>Dubai intends to run their city on the blockchain by 2020</li></ul><p><strong>Crypto Currency</strong> will re-invent money and free us from the death spiral that is the fiat debt economy. Turing complete<strong> Smart Contract </strong>programs will power auto-executing agreements that eliminate intermediaries and make settlements cheaper and faster. <strong>Blockchain</strong> will decentralize and distribute control to realize faster, more accurate, and more secure voting, public records, and increase operational efficiencies that unlock the real power of the internet to all business verticals, financial markets, and government and social spheres.</p><p>Hype and hyperbole abound here and across the internet, but even the universe needed a big bang before the world was formed.</p><p>Good luck to everyone as we face global volatility while things shake out, reshape and reorganize during the most significant and most exciting tech development of our time.</p><p>Let’s thank <strong>Satoshi Nakamoto </strong>(creator of Bitcoin) and <strong>Vitalik Buterin</strong> (inventor of Ethereum) for their roles ushering us into this strange but exciting time.</p><p>Cheers to the fantastic YouTubers who bring us daily news and insight about this rapidly developing space in educational and entertaining ways:</p><blockquote><a href="https://medium.com/u/976431294514">Omar Bham (Crypt0)</a> - <a href="https://www.youtube.com/user/obham001">https://www.youtube.com/user/obham001</a></blockquote><blockquote>Ivan on Tech - <a href="https://www.youtube.com/user/LiljeqvistIvan">https://www.youtube.com/user/LiljeqvistIvan</a></blockquote><blockquote><a href="https://medium.com/u/bcbdb9c5822b">CryptoPortfolio</a> - <a href="https://www.youtube.com/channel/UCI9POyyP-f93JHfkhr2ma2g">https://www.youtube.com/channel/UCI9POyyP-f93JHfkhr2ma2g</a></blockquote><p>ETHEREUM SUBREDDIT - <a href="https://www.reddit.com/r/ethereum/comments/61y5ix/welcome_to_rethereum_the_reddit_front_page_of_the/">https://www.reddit.com/r/ethereum</a></p><p>READ THIS - <a href="https://medium.com/humanizing-the-singularity/by-the-end-of-this-article-youre-going-to-understand-blockchains-in-general-and-ethereum-a-next-e11df6a1d7cf">https://medium.com/humanizing-the-singularity/by-the-end-of-this-article-youre-going-to-understand-blockchains-in-general-and-ethereum-a-next-e11df6a1d7cf</a></p><p>HOT OFF THE PRESS - <a href="https://medium.com/kinfoundation/announcing-kin-a-cryptocurrency-for-an-open-future-98f1da2f498a">https://medium.com/kinfoundation/announcing-kin-a-cryptocurrency-for-an-open-future-98f1da2f498a</a></p><p>DEVCON TWO - <a href="https://vimeo.com/203348073">https://vimeo.com/203348073</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce2be84aed22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Case for Node.js at eBay Advertising]]></title>
            <link>https://medium.com/@jhanink/the-case-for-node-js-at-ebay-advertising-4ef45d849a0c?source=rss-fed75ff0080c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ef45d849a0c</guid>
            <dc:creator><![CDATA[Joe Hanink]]></dc:creator>
            <pubDate>Wed, 18 Dec 2013 20:19:56 GMT</pubDate>
            <atom:updated>2014-04-27T07:23:39.589Z</atom:updated>
            <content:encoded><![CDATA[<h4>Proposal</h4><p>Promote Node.js (Node) to the sanctioned technology stack for external facing applications here at eBay Advertising.</p><p>For our purposes, Node would act as an alternative to Tomcat for some use cases and become the front end server layer for those web applications.</p><p>There exists some philosophical resistance to the use of Node, since Node is Javascript.</p><p>The goal of this document is to help erode the natural FUD about Node and encourage taking a closer look at what it is and why we should get on board.</p><p>As a company, we’ve made the leap with the rest of the industry to incorporating realtime, scalable data stores like redis and aerospike.</p><p>We should similarly advance the rest of the tech stack.</p><h4>Introduction</h4><p>Our web applications tend to use API Services to get data and merge that into templates to render on the web using a combination of HTML, CSS, and Javascript.</p><p>Node runs javascript and is particularly good at efficiently handling the use case of service-backed, data-driven, dynamic web applications.</p><p>While Node is not currently available to developers in the sanctioned technology stack for public facing applications here at eBay Advertising, Operations is receptive to the adoption of new technology provided that it meets sufficient qualifying criteria. The criteria are practical in nature, including a range of value metrics, fitness for purpose, and operational supportability.</p><p>Node usage in the industry and within larger eBay provide some case studies that give credence to the characterizations and value claims to be presented.</p><p>This document will contain a small amount of background and prose hailing the virtues of node, followed by a meat and potatoes effort to make a case for it here at eBay Advertising. This will follow an expository Q/A format.</p><h4>What is Node?</h4><p>Node is a platform built on top of Google’s V8 javascript engine (the js engine in Chrome).</p><blockquote><strong>(</strong><a href="http://en.wikipedia.org/wiki/Node.js">wikipedia</a>)<strong>Node.js </strong>is a software platform that is used to build <a href="http://en.wikipedia.org/wiki/Scalability">scalable</a> network (especially server-side) applications. <em>Node.js </em>utilizes <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> as its scripting language, and achieves high throughput via non-blocking I/O and a single-threaded <a href="http://en.wikipedia.org/wiki/Event-driven_architecture">event</a> loop.</blockquote><blockquote><em>Node.js </em>contains a built-in HTTP server library, making it possible to run a web server without the use of external software, such as <a href="http://en.wikipedia.org/wiki/Apache_%28web_server%29">Apache</a> or <a href="http://en.wikipedia.org/wiki/Lighttpd">Lighttpd</a>, and allowing more control of how the web server works.</blockquote><p>Node is asynchronous and non-blocking by design, allowing it to achieve excellent throughput with massive concurrency using an efficient single threaded event loop.</p><p>In contrast, Tomcat supports the same general purpose but uses the conventional thread-per-connection model. For situations where I/O wait is to be expected for each connection (i.e. web based applications), thread-per-connection is less resource efficient and less performant under load than an evented server (for non CPU-intensive applications).</p><h4>Why Node?</h4><p>Node has excellent performance characteristics for real-time network applications where I/O is a significant portion of overall latency. This is often true for service-backed web apps that need to wait for data from some backend.</p><p>For web-service driven stacks (a common pattern here at eBay Advertising), web application servers will hold two (or more) http connections per client request (to the client browser and to backend services). This makes for two potential I/O wait points that benefit from Node’s async treatment, obviating thread (per connection) pools that waste resources during that I/O wait.</p><p>For bandwidth limited and less reliable network connections (e.g. mobile clients), longer latencies are expected, improving resource usage graphs in Node’s favor.</p><p>Javascript as a language and as a server-side solution is becoming a powerful option to unify the end-to-end web development stack.</p><p>See <a href="http://en.wikipedia.org/wiki/Jeff_Atwood">Atwood’s Law</a></p><blockquote>It states that any application that can be written in <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> will eventually be written in JavaScript.</blockquote><h4>What is the difference between Node and Tomcat</h4><p>Technically, it’s in an improper comparison, since Node is more analagous to the JVM than to Tomcat. For the sake of this discussion, we’ll compare how webservers in Node differ from Tomcat.</p><p>The Node programming paradigm is essentially asynchronous, non-blocking, event-driven Javascript, which is fundamentally different from the usual fare in Tomcat, which is typically synchronous, blocking, and sequential.</p><p>Node is single threaded (one thread watching/handling events from all connections) whereas Tomcat is multi-threaded and can utilize multiple cores.</p><p>That might sound bad for Node, but the use cases for Node are specifically in the realm of I/O bound applications, not CPU-heavy operations. The scaling model for Node is to use multiple processes instead of multiple threads.</p><p>End-to-end Javascript makes it possible for front end devs to write sophisticated server apps in record time. Javascript developers embrace functional programming, a paradigm that makes async callback handling simple and elegant. In other words, it’s easy to write scalable (efficient) network applications in Node.</p><p>Node and the litany of Node modules in the npm (Node Package Manager) registry do things in a way that nicely fits the world of http.</p><p>Again, Tomcat with java gets the job done, but the direction of things for scalable web applications is begging us for native, non-blocking Javascript and JSON support through a convenient, high performance runtime.</p><p>This is the promise and reality of Node.</p><h4>In which layer does Node belong</h4><p>For our service driven web apps, it fits into the role of front end web server, replacing tomcat in the cases where we use tomcat as a thin proxy to API services, and particularly shines in scenarios involving long wait db calls and sketchy network mobile usage scenarios with global reach.</p><p>As it is, our webtier engineers currently expect tomcat, and tomcat has served us well. Tomcat and Java in general is a proven solution for business applications. It is a good fit.</p><p>In time, we may find that Node is an even better fit for our style of web apps, especially those that are more client heavy javascript apps backed by API services that need to accommodate increasingly global, mobile clients.</p><h4>Specific eBay Advertising apps for which Node would be a good fit</h4><p><strong>(1) Event Tracker</strong> — This is the ONLY existing (internal and un-utilized) production Node app here at eBay Advertising.</p><p>See the <a href="https://wiki.ebayadvertising.com/display/spo/Event+Tracker+SPO">wiki page</a>.</p><blockquote>EventTracker is a general purpose ClientSide Event Tracker, i.e. PageView, Mouse Click, Button Press, etc.</blockquote><p><strong>(2) Merchant Account Center (MAC: </strong><a href="http://www.youtube.com/watch?v=ATvD7EvIzCE">http://www.youtube.com/watch?v=ATvD7EvIzCE</a><strong>) </strong>— Originally, we considered Node for the web-tier, but at the time it was forbidden due to unsanctioned status. Node would be a good fit in this case precisely because it fits into the service-driven, high-latency case. The webtier has to wait for API calls to resolve data queries that sometimes take 30 minutes or more. Plus, the redesigned MAC was designed to be heavy Javascript on the client side with a thin webtier proxy. This is best case scenario for Node.</p><p><strong>(3) Sunshine Ads FTL replacement</strong> — Currently, ads are rendered on the server in the publisher API. We have a project to extract FTL templates from API and move that to a javascript-powered client-side solution that will again utilize the API in a service-driven fashion. Node would be a perfect fit for an orchestrating webtier. Furthermore, we expect ads to be viewed on mobile devices as much as desktop browsers. Efficient handling of high latency, testy mobile network connections is a strength of Node.</p><p><strong>(4) SKU-Level Bidding API server</strong> — SLB API provides realtime bid data to clients from a redis db. That’s network calls all the way on both ends.</p><p><strong>(5) PAC and CTD console</strong> — These are both API service driven and should get a boost from Node over tomcat.</p><h3>Case Studies &amp; References</h3><p>Below are case studies and references from within and without eBay.</p><p>Please take a careful look, as they already have real stories to tell, stories from experience that do far better explaining the value of Node than the abstract hand-waving above.</p><h4>1. PayPal’s migration to Node from Java</h4><p><a href="https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/">https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/</a></p><blockquote>All of our consumer facing web applications going forward will be built on node.js.</blockquote><h4>2. eBay’s ql.io Node platform</h4><p><a href="http://www.ebaytechblog.com/2011/11/30/announcing-ql-io/">http://www.ebaytechblog.com/2011/11/30/announcing-ql-io/</a></p><h4>3. eBay’s first large-scale Node application</h4><p><a href="http://www.ebaytechblog.com/2013/05/17/how-we-built-ebays-first-node-js-application/">http://www.ebaytechblog.com/2013/05/17/how-we-built-ebays-first-node-js-application/</a></p><h4>4. LinkedIn Node at scale</h4><p><a href="http://highscalability.com/blog/2012/10/4/linkedin-moved-from-rails-to-node-27-servers-cut-and-up-to-2.html">http://highscalability.com/blog/2012/10/4/linkedin-moved-from-rails-to-node-27-servers-cut-and-up-to-2.html</a></p><p><a href="http://venturebeat.com/2011/08/16/linkedin-node/">http://venturebeat.com/2011/08/16/linkedin-node/</a></p><h4>5. PayPal’s open source framework for Node — Kraken.js</h4><p><a href="http://krakenjs.com/">http://krakenjs.com</a></p><h4>6. Walmart hiring for Node.js devs</h4><blockquote>During the Holiday Season of 2012, 40% of Walmart Global eCommerce traffic came from mobile devices, and that trend is only going to increase. <strong>We are transitioning from our Core Java solution to and end-to-end JavaScript solution utilizing Node.js. When we say node.js, we mean 100% node.</strong> No marketing tricks. We are making a strategic investment in node both internally and in open source with over 20 modules on npm including @hapijs, our node framework. <strong>We’re a Platinum sponsor of NodeConf with about a dozen team members attending this year.</strong></blockquote><h4>7. Quora — Who’s using Node in Production</h4><p><a href="http://www.quora.com/Node-js/What-companies-are-using-Node-js-in-production">http://www.quora.com/Node-js/What-companies-are-using-Node-js-in-production</a></p><p>PayPal:</p><blockquote><strong>We are moving every product &amp; every site within PayPal to Node.</strong> We started the journey by using it as prototyping framework, then at start of this year we hardened it to work with all PayPal systems. We have several of our beta products out live on NodeJS and half dozen other products in flight. By end of 2014 we hope to have all major experiences redesigned, and rewritten on nodejs.<br><strong>NodeJS is a forcing function to completely obliterate the old stack and the old experiences.</strong><br><strong>We are seeing big scale gains, performance boosts and big developer productivity.</strong></blockquote><h4><strong>8. Yahoo’s open source Node project — Mojito</strong></h4><p><a href="http://venturebeat.com/2012/04/02/yahoo-node-open-source-mojito/">http://venturebeat.com/2012/04/02/yahoo-node-open-source-mojito/</a></p><blockquote>JavaScript is the single most widely available programming language today, and that’s something worth taking advantage of.</blockquote><h4>9. eBay’s formal “CubeJS” Node project</h4><p><a href="https://github.scm.corp.ebay.com/cubejs-ebay">https://github.scm.corp.ebay.com/cubejs-ebay</a></p><h4>10. LinkedIn Node performance tips</h4><p><a href="http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-10-performance-tips-linkedin-mobile">http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-10-performance-tips-linkedin-mobile</a></p><h4>11. Six things you should know about Node.js</h4><p><a href="http://www.javaworld.com/article/2079190/scripting-jvm-languages/6-things-you-should-know-about-node-js.html">http://www.javaworld.com/article/2079190/scripting-jvm-languages/6-things-you-should-know-about-node-js.html</a></p><h4>12. Node in the Industry — Quotes</h4><p><a href="http://nodejs.org/industry/">http://nodejs.org/industry/</a></p><blockquote>Node’s evented I/O model freed us from worrying about locking and concurrency issues that are common with multithreaded async I/O.<br><a href="http://www.ebaytechblog.com/2011/11/30/announcing-ql-io/">Subbu Allamarju</a><br>Principal Member, Technical Staff <strong>(eBay)</strong></blockquote><blockquote><strong>On the server side, our entire mobile software stack is completely built in Node</strong>. One reason was scale. The second is Node showed us huge performance gains.<br><a href="http://venturebeat.com/2011/08/16/linkedin-node/">Kiran Prasad</a><br>Director of Engineering, Mobile <strong>(LinkedIn)</strong></blockquote><blockquote>Node.js is the execution core of Manhattan. Allowing developers to build one code base using one language — that is the nirvana for developers.<br><a href="http://developer.yahoo.com/blogs/ydn/posts/2011/11/yahoo-announces-cocktails-%E2%80%93-shaken-not-stirred/">Renaud Waldura</a><br>Sr. Product Manager, Cocktail <strong>(Yahoo)</strong></blockquote><blockquote>Node.js powers our web applications and has allowed our teams to move much faster in bringing their designs to life. We’ve happily embraced the power of JavaScript.<br><a href="https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/">Jeff Harrell</a><br>Director of Engineering <strong>(PayPal)</strong></blockquote><blockquote>Node gives Azure users the first end-to-end JavaScript experience for the development of a whole new class of real-time applications.<br><a href="https://www.windowsazure.com/en-us/develop/nodejs">Claudio Caldato</a><br>Principal Program Manager, Microsoft Open Technologies, Inc. <strong>(Microsoft)</strong></blockquote><blockquote>A news organization must be responsive, both to its readers and to a fast-paced flow of information. Node provides a level of flexibility we haven’t found anywhere else — and enables us to deliver performant apps that can be easily adjusted.<br><a href="http://m.nytimes.com/">Trevor Landau</a><br>Software Engineer, Mobile Web <strong>(The New York Times)</strong></blockquote><blockquote>The simple truth is Node has reinvented the way we create websites. Developers build critical functionality in days, not weeks.<br><a href="http://dowjones.com/">Michael Yormark</a><br>WSJD Product Operations (<strong>DOW JONES</strong>)</blockquote><blockquote>Node allows our team to speak one language throughout the stack: JavaScript. We can use Chrome Inspector to inspect both our frontend and backend code. Magical.<br><a href="http://storify.com/">Xavier Damman</a><br>Cofounder/CEO (<strong>Storify</strong>)</blockquote><h4><strong>13. Javascript is eating the world</strong></h4><p><a href="http://slashdot.org/topic/bi/javascript-is-eating-the-world/">http://slashdot.org/topic/bi/javascript-is-eating-the-world/</a></p><h4>14. Monolithic Node.js (epic)</h4><p><a href="http://www.richardrodger.com/monolithic-nodejs#.UsyJ53mbE5U">http://www.richardrodger.com/monolithic-nodejs#.UsyJ53mbE5U</a></p><h4>15. Node.js Explained (video)</h4><p><a href="http://www.youtube.com/watch?v=L0pjVcIsU6A">http://www.youtube.com/watch?v=L0pjVcIsU6A</a></p><h4>16. Felix’s Node.js Convincing the boss guide</h4><p><a href="http://nodeguide.com/convincing_the_boss.html">http://nodeguide.com/convincing_the_boss.html</a></p><h4><strong>17. ADP and Dow Jones</strong></h4><p><a href="http://www.enterprisetech.com/2014/04/25/adp-dow-jones-help-mainstream-node-js/">http://www.enterprisetech.com/2014/04/25/adp-dow-jones-help-mainstream-node-js/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ef45d849a0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>