{
  "id": "2016/451",
  "url": "https://opencryptology.org/2016/451",
  "original_url": "https://eprint.iacr.org/2016/451",
  "title": "Efficient Zero-Knowledge Contingent Payments in Cryptocurrencies Without Scripts",
  "authors": [
    "Wacław Banasik",
    "Stefan Dziembowski",
    "Daniel Malinowski"
  ],
  "affiliations": null,
  "abstract": "One of the most promising innovations offered by the cryptographic currencies (like Bitcoin) are the so-called \\emph{smart contracts}, which can be viewed as financial agreements between mutually distrusting participants. Their execution is enforced by the mechanics of the currency, and typically has monetary consequences for the parties. The rules of these contracts are written in the form of so-called ``scripts'', which are pieces of code in some ``scripting language''. Although smart contracts are believed to have a huge potential, for the moment they are not widely used in practice.  In particular, most of Bitcoin miners allow only to post standard transactions (i.e.: those without the non-trivial scripts) on the blockchain. As a result, it is currently very hard to create non-trivial smart contracts in Bitcoin.\n\nMotivated by this, we address the following question: ``is it possible to create non-trivial efficient smart contracts using the standard transactions only?'' We answer this question affirmatively, by constructing efficient Zero-Knowledge Contingent Payment protocol for a large class of NP-relations. This includes the relations for which efficient sigma protocols exist. In particular, our protocol can be used to sell a factorization $(p,q)$ of an RSA modulus $n=pq$, which is an example that we implemented and tested its efficiency in practice.\n\nAs another example of the ``smart contract without scripts'' we show how our techniques can be used to implement the contract called ``trading across chains''.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Zero-Knowledge Contingent Payments in Cryptocurrencies Without Scripts” by Wacław Banasik, Stefan Dziembowski, Daniel Malinowski, Cryptology ePrint Archive, Paper 2016/451, https://eprint.iacr.org/2016/451. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-05-10T08:59:34Z",
    "updated": "2016-07-13T12:59:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/451.pdf",
    "sha256": "3b0f75526b95e37d6af221f49f40bc49641e2e3458dca38cf3b818e93c278669",
    "size": 449793,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/451/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/451.pdf",
      "size": 449793,
      "sha256": "3b0f75526b95e37d6af221f49f40bc49641e2e3458dca38cf3b818e93c278669",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2016/451/versions/20160528T133109Z.pdf",
      "captured_at": "2016-05-28T13:31:09Z",
      "label": "copy captured 2016-05-28",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20160528133109id_/http://eprint.iacr.org:80/2016/451.pdf",
      "size": 448120,
      "sha256": "aad11045c7e2483424dde79212f36f9126b99e4a7f1bbb0422fd10285c5a5f10",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20210417201049id_/https://eprint.iacr.org/2016/451.pdf",
      "captured_at": "2021-04-17T20:10:49Z",
      "size": 446863
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/451.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 449793
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/451,\n      author = {Wacław Banasik and Stefan Dziembowski and Daniel Malinowski},\n      title = {Efficient Zero-Knowledge Contingent Payments in Cryptocurrencies Without Scripts},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/451},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/451}\n}"
}
