skip to main content
10.1145/3139337.3139340acmconferencesArticle/Chapter ViewAbstractPublication PagespldiConference Proceedingsconference-collections
research-article
Open Access

Simplicity: A New Language for Blockchains

Published:30 October 2017Publication History

ABSTRACT

Simplicity is a typed, combinator-based, functional language without loops and recursion, designed to be used for crypto-currencies and blockchain applications. It aims to improve upon existing crypto-currency languages, such as Bitcoin Script and Ethereum's EVM, while avoiding some of the problems they face. Simplicity comes with formal denotational semantics defined in Coq, a popular, general purpose software proof assistant. Simplicity also includes operational semantics that are defined with an abstract machine that we call the Bit Machine. The Bit Machine is used as a tool for measuring the computational space and time resources needed to evaluate Simplicity programs. Owing to its Turing incompleteness, Simplicity is amenable to static analysis that can be used to derive upper bounds on the computational resources needed, prior to execution. While Turing incomplete, Simplicity can express any finitary function, which we believe is enough to build useful ``smart contracts'' for blockchain applications.

References

  1. G. Andresen. 2012. BIP16: Pay to Script Hash. Bitcoin Improvement Proposal. (2012). shownotehttps://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki.Google ScholarGoogle Scholar
  2. A. W. Appel. 2015. Verification of a Cryptographic Primitive: `-256. ACM Trans. Program. Lang. Syst. Vol. 37, 2, Article bibinfoarticleno7 (April 2015), bibinfonumpages31 pages.1007/978--1--4471--3215--8_12Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. J. Lau 2016. BIP114: Merkelized Abstract Syntax Tree. Bitcoin Improvement Proposal. (2016). shownotehttps://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki.Google ScholarGoogle Scholar
  4. X. Leroy 2009. Formal verification of a realistic compiler. Commun. ACM Vol. 52, 7 (2009), 107--115. showURL%http://gallium.inria.fr/ xleroy/publi/compcert-CACM.pdf Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. G. Maxwell. 2011. Zero-Knowledge Contingent Payment. (2011). shownotehttps://en.bitcoin.it/wiki/Zero_Knowledge_Contingent_Payment.Google ScholarGoogle Scholar
  6. S. Nakamoto. 2008. Bitcoin: A peer-to-peer electronic cash system. http://bitcoin.org/bitcoin.pdf. (Nov. 2008).Google ScholarGoogle Scholar
  7. S. Nakamoto. 2010natexlaba. misc changes. https://github.com/bitcoin/bitcoin/commit/4bd188c4383d6e614e18f79dc337fbabe8464c82. (Aug. 2010). shownotehttps://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@131.Google ScholarGoogle Scholar
  8. S. Nakamoto. 2010natexlabb. Re: Transactions and Scripts: DUP HASH160 ... EQUALVERIFY CHECKSIG. https://bitcointalk.org/index.php?topic=195.msg1611#msg1611. (June 2010).Google ScholarGoogle Scholar
  9. National institute of standards and technology 2013. FIPS Pub 186--4 Federal Information Processing Standards Publication Digital Signature Standard (DSS). (2013). showURL%http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.362.5590Google ScholarGoogle Scholar
  10. National institute of standards and technology 2015. FIPS 180--4, Secure Hash Standard, Federal Information Processing Standard (FIPS), Publication 180--4. bibinfotypeTechnical Report. bibinfoinstitutionDEPARTMENT OF COMMERCE. showURL%http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180--4.pdfGoogle ScholarGoogle Scholar
  11. R. O»Connor. 2016. Covenants in Elements Alpha. (2016). shownoteBlog post, https://blockstream.com/2016/11/02/covenants-in-elements-alpha.html.Google ScholarGoogle Scholar
  12. Parity 2017. The Multi-sig Hack: A Postmortem. (July 2017). shownotehttps://blog.parity.io/the-multi-sig-hack-a-postmortem/.Google ScholarGoogle Scholar
  13. M. S. Paterson and M. N. Wegman 1978. Linear unification. J. Comput. System Sci. Vol. 16, 2 (1978), 158 -- 167. showISSN0022-0000 https://doi.org/10.1016/0022-0000(78)90043-0Google ScholarGoogle ScholarCross RefCross Ref
  14. C. P. Schnorr. 1989. Efficient Identification and Signatures for Smart Cards Proceedings of CRYPTO »89.Google ScholarGoogle Scholar
  15. The Coq Development Team. 2016. The Coq Proof Assistant Reference Manual: Version 8.6. https://coq.inria.fr/refman/. (2016).Google ScholarGoogle Scholar
  16. P. Todd 2014. BIP65: OP_CHECKLOCKTIMEVERIFY. Bitcoin Improvement Proposal. (2014). shownotehttps://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki.Google ScholarGoogle Scholar
  17. G. Wood 2014. Ethereum: A Secure Decentralised Generalised Transaction Ledger. (2014). shownotehttp://gavwood.com/paper.pdf.Google ScholarGoogle Scholar
  18. C. Yarvin, P. Monk, A. Dyudin, and R. Pasco. 2016. Urbit: A Solid-State Interpreter. (May 2016). shownotehttp://media.urbit.org/whitepaper.pdf. endthebibliographyGoogle ScholarGoogle Scholar

Index Terms

  1. Simplicity: A New Language for Blockchains

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader