On Blockchain Metatransactions

On Blockchain Metatransactions

On Blockchain Metatransactions Istvan´ Andras´ Seres Department of Computer Algebra, Eotv¨ os¨ Lorand´ University Email: [email protected] Abstract—In cryptocurrencies, transaction fees are typically observe that this exclusivity leads to several challenges: exclusively paid in the native platform currency. This restric- Deteriorated User Experience A user that wishes to tion causes a wide range of challenges, such as deteriorated perform a transaction that does not involve , e.g. user experience, mandatory rent payments by decentralized a stablecoin transaction4, such as Tether or DAIC [4], applications, and blockchain community rivalries (e.g., coin- is required to purchase and use to perform the ism). Ideally, in a truly permissionless blockchain, trans- transaction. This results in additionalC usability fric- action fees should be payable in any other cryptocurrency tions and UI complexities, which could be avoided via so-called metatransactions. In this paper, we formalize if transaction fees could be paid directly via another ∗ metatransactions, review existing ideas, and describe novel currency . C metatransaction design approaches. Under the assumption Mandatory Rent Every project that builds upon an ex- P of sufficient market liquidity, we argue that metatransac- isting blockchain is forced to adopt and implicitly pays rent to the holder of . That is becauseC users of tions do not lower the security of cryptocurrency platforms. C However, without changing the underlying blockchain, meta- are required to purchase whenever they want to interactP with . C transaction designs typically increase transaction costs and P reduce the blockchain transaction throughput. Social Coinism A few vocal owners of publicly be- come the advocates of this coin, despiteC the avail- 1. Introduction ability of other potentially more suitable technolo- gies and blockchains. Coinism is likely to alienate Cryptocurrencies have attracted significant attention, communities, preventing healthy, productive collab- in part due to their ability to promote neutrality through orations and could ultimately stifle innovation. disintermediation. Their neutrality stems from their typ- To remedy these problems, in this work, we study ically permissionless nature: anyone is allowed to join the options available to replace the currency of an and leave the network at any time, while their cen- already deployed blockchain with one or severalC alterna- sorship resilience protects individuals from potentially tive currencies, and consider the implications. We adopt overreaching entities. Another aspect of neutrality is the the blockchain community jargon metatranscations as inherent ability to fork an open-source blockchain, i.e. denoting transactions that pay fees to miners or other to clone one blockchain into two independent versions, intermediaries in a currency other than . Summarizing, if e.g. the blockchain community’s vision diverges. This we provide the following contributions withinC this work: freedom, however, comes at a price. Instead of unifying • We review an existing fee delegation scheme that efforts, we have witnessed an explosion in the number supports the payment of transaction fees in currencies of blockchains and cryptocurrency tokens that compete other than a native blockchain currency . rather than collaborate. This competition naturally arises • We formalize the notion of metatransactionsC and as many blockchains have the same objective; to become present two novel designs, one miner-based and one the predominant decentralised platform for asset transfers off the chain scheme. and decentralised application hosting. • We discuss the implications of metatransactions and While competition in open-source projects and their show how an adversary may perform a hostile ability to fork are not new phenomena (see e.g. Linux), blockchain takeover with metatransactions. We argue arXiv:2004.08094v1 [cs.CY] 17 Apr 2020 in the context of blockchains, financial incentives exacer- that metatransactions do not affect the blockchain’s bate competition. We count historically about 900 Linux security under assumptions of market liquidity. distributions1 within the last 28 years, and the last 10 years have brought to fruition circa 900 blockchain coins The rest of the paper is organized as follows. Section 2 and about 1400 blockchain tokens2 deployed on existing presents pertinent background on smart contract enabled blockchains. blockchains. In Section 3 we formally define metatrans- All blockchains we are aware of rely on one native actions and present an existing fee delegation design, currency . e.g. serves as the currency to pay transaction while Section 4 shows two new metatransaction schemes. fees to minersC C and may be minted when creating a block. Section 5 compares these two metatransaction protocols. Typically, no other currency ∗ is eligible to replace Section 6 analyses the economic and security implications in this special function. IndeedC some blockchain creatorsC of introducing metatransactions into a blockchain system. openly criticise the use of alternative currencies3. We We highlight related work in Section 7 and point out possible extensions as future directions in Section 8. 1. Source: https://distrowatch.com/ 2. Source: https://coinmarketcap.com/coins/views/all/ 4. Stablecoins are typically less volatile coins that are, for example, 3. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md pegged to a fiat currency. 2. Background 3. Metatransactions In this section, we provide a system model and for- Blockchains enable the construction of append-only malize metatransactions. We also review existing fee del- immutable ledger maintained by a distributed network of egation schemes. Informally, a metatransaction is a (set nodes [33]. The majority of current systems [33], [42] of) transaction(s) that allows paying transaction fees in a rely on a random leader election process as part of their currency other than the native blockchain currency . consensus mechanism. An elected participant decides on C the current state transition: a set of transactions altering the ledger state, arranged in a so called block. For ex- 3.1. System Model ample, in Proof-of-Work (PoW) blockchains, the leader is the first participant to solve a computationally expensive In the following, we describe our system model, func- puzzle [33]. For a thorough background on Bitcoin and tionalities and threat model for metatransactions. blockchain, we refer the reader to a systematization of knowledge [7]. Smart contract enabled blockchains allow 3.1.1. Actors. The following actors may be involved in a to encode programmable logic which may execute trans- metatransaction: actions and manipulate cryptocurrency amounts. Contract • Sender: a blockchain user with an asymmetric key pair code is typically executed in a Virtual Machine (VM), which issues metatransactions. which is a quasi-Turing complete execution environment • Receiver: a receiver of a metatransaction. executing bytecode. The number of computational steps • Relayer: a metatransaction design might involve one a transaction can perform in the VM is bounded to deter or more non-trusted intermediaries that assist in the denial-of-service (DoS) attacks [34]. transaction processing. A crucial aspect of a smart contract VM is the fee • Smart contract: a contract to enforce the metatrans- mechanism. Every VM opcode costs a certain fee which action protocol logic, e.g., to reimburse miners and/or should ideally be proportional to the computational com- intermediaries for their services. plexity of that opcode. There typically exist a “base” • Miner: choose to accept (meta)transactions within a transaction fee representing the minimum transaction fee5. mined block. Note that due to the halting problem [40] one cannot anticipate the required fees of smart contract execution 3.1.2. Informal Functionality. A metatransaction pro- and therefore typically define a maximum fee. Once this tocol enables a sender to issue and pay for blockchain transactions without using , the native currency of the maximum is reached, the execution is terminated. To the C best of our knowledge, we are not aware of a blockchain blockchain. that natively supports the payment of transaction fees in a different currency than the native blockchain currency. 3.1.3. Communication model. We assume broadcast transactions in the P2P network are delivered with a Off-Chain Transactions For use cases such as micro- maximum delay under the bounded synchronous commu- payments, on-chain transaction fees and confirmation time nication setting [2]. Furthermore, we assume all actors latencies represent significant practical obstacles. Payment can access and read the current head of the blockchain channels allow parties to exchange transactions locally, i.e. to verify if transactions are appended to the blockchain. not broadcasting them to the network, and rather update a We remark that these are standard assumptions in the local balance sheet. The blockchain is only utilized as a re- blockchain literature [3], [18]. course for channel initiations, disputes and closures. This permits payment channel participants to send payments 3.1.4. Threat model. We assume that the cryptographic without on-chain fees and short confirmation times. We primitives of the blockchain hosting the smart contract refer the reader to a systematization of knowledge [22] are secure. Furthermore, we assume the adversary cannot for an overview of off-chain constructions. corrupt

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    11 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us