M. S. Miller, T. Van Cutsem, and B. Tulloh, “Distributed Electronic Rights in JavaScript,” in Programming Languages and Systems, vol. 7792, M. Felleisen and P. Gardner, Eds. Berlin, Heidelberg: Springer Berlin Heidelberg, 2013, pp. 1–20. doi: 10.1007/978-3-642-37036-6_1.
https://link.springer.com/chapter/10.1007%2F978-3-642-37036-6_1
pdf > **Abstract**. Contracts enable mutually suspicious parties to cooperate safely through the exchange of rights. Smart contracts are programs whose behavior enforces the terms of the contract. This paper shows how such contracts can be specified elegantly and executed safely, given an appropriate distributed, secure, persistent, and ubiquitous computational fabric. JavaScript provides the ubiquity but must be significantly extended to deal with the other aspects. The first part of this paper is a progress report on our efforts to turn JavaScript into this fabric. To demonstrate the suitability of this design, we describe an escrow exchange contract implemented in 42 lines of JavaScript code. **Keywords**: security, distributed objects, object-capabilities, smart contracts.