{
  "id": "2018/122",
  "url": "https://opencryptology.org/2018/122",
  "original_url": "https://eprint.iacr.org/2018/122",
  "title": "BitML: A Calculus for Bitcoin Smart Contracts",
  "authors": [
    "Massimo Bartoletti",
    "Roberto Zunino"
  ],
  "affiliations": null,
  "abstract": "We introduce BitML, a domain-specific language for specifying contracts that regulate transfers of bitcoins among participants, without relying on trusted intermediaries. We define a symbolic and a computational model for reasoning about BitML security. In the symbolic model, participants act according to the semantics of BitML, while in the computational model they exchange bitstrings, and read/append transactions on the Bitcoin blockchain. A compiler is provided to translate contracts into standard Bitcoin transactions. Participants can execute a contract by appending these transactions on the Bitcoin blockchain, according to their strategies. We prove the correctness of our compiler, showing that computational attacks on compiled contracts are also observable in the symbolic model.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“BitML: A Calculus for Bitcoin Smart Contracts” by Massimo Bartoletti, Roberto Zunino, Cryptology ePrint Archive, Paper 2018/122, https://eprint.iacr.org/2018/122. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-02-01T01:45:37Z",
    "updated": "2018-10-03T11:22:20Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/122.pdf",
    "sha256": "8e4e117956b72cd99469228856afea11e5ac308b8eb2a9c2d0a0d0bed492fbfc",
    "size": 1007542,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/122/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/122.pdf",
      "size": 1007542,
      "sha256": "8e4e117956b72cd99469228856afea11e5ac308b8eb2a9c2d0a0d0bed492fbfc",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2018/122/versions/20180213T211358Z.pdf",
      "captured_at": "2018-02-13T21:13:58Z",
      "label": "copy captured 2018-02-13",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20180213211358id_/https://eprint.iacr.org/2018/122.pdf",
      "size": 695920,
      "sha256": "2a8be2ab900b050ab540945be9b72ff31978d0e8c3719e772c35afd86141b7d2",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105152718id_/https://eprint.iacr.org/2018/122.pdf",
      "captured_at": "2026-01-05T15:27:18Z",
      "size": 1005843
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/122.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 1007542
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/122,\n      author = {Massimo Bartoletti and Roberto Zunino},\n      title = {BitML: A Calculus for Bitcoin Smart Contracts},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/122},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/122}\n}"
}
