{"id":13827198,"url":"https://github.com/lorenzb/libsubmarine","last_synced_at":"2025-12-30T00:06:40.364Z","repository":{"id":45171140,"uuid":"142362448","full_name":"lorenzb/libsubmarine","owner":"lorenzb","description":"Implementation of a novel practical scheme for submarine commitments","archived":false,"fork":false,"pushed_at":"2022-12-08T01:13:53.000Z","size":141,"stargazers_count":226,"open_issues_count":14,"forks_count":31,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-20T06:34:15.651Z","etag":null,"topics":["ethereum","python","smartcontracts","solidity"],"latest_commit_sha":null,"homepage":"https://libsubmarine.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lorenzb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-25T23:06:32.000Z","updated_at":"2024-11-15T20:34:41.000Z","dependencies_parsed_at":"2023-01-24T04:01:11.653Z","dependency_job_id":null,"html_url":"https://github.com/lorenzb/libsubmarine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lorenzb/libsubmarine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzb%2Flibsubmarine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzb%2Flibsubmarine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzb%2Flibsubmarine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzb%2Flibsubmarine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorenzb","download_url":"https://codeload.github.com/lorenzb/libsubmarine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzb%2Flibsubmarine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264386265,"owners_count":23599969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","python","smartcontracts","solidity"],"created_at":"2024-08-04T09:01:51.954Z","updated_at":"2025-12-30T00:06:40.354Z","avatar_url":"https://github.com/lorenzb.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"42f9e068b6511bcbb47d6b2b273097da\"\u003e\u003c/a\u003e未分类"],"sub_categories":["\u003ca id=\"3bd67ee9f322e2c85854991c85ed6da0\"\u003e\u003c/a\u003e投毒\u0026\u0026Poisoning"],"readme":"# LibSubmarine\n\n[![Build Status](https://travis-ci.org/lorenzb/libsubmarine.svg?branch=master)](https://travis-ci.org/lorenzb/libsubmarine)\n\n```                 _\n                    | \\\n                     '.|\n     _-   _-    _-  _-||    _-    _-  _-   _-    _-    _-\n       _-    _-   - __||___    _-       _-    _-    _-\n    _-   _-    _-  |   _   |       _-   _-    _-\n      _-    _-    /_) (_) (_\\        _-    _-       _-\n              _.-'           `-._      ________       _-\n        _..--`                   `-..'       .'\n    _.-'  o/o                     o/o`-..__.'        ~  ~\n .-'      o|o                     o|o      `.._.  // ~  ~\n `-._     o|o                     o|o        |||\u003c|||~  ~\n     `-.__o\\o                     o|o       .'-'  \\\\ ~  ~\nLGB       `-.______________________\\_...-``'.       ~  ~\n                                    `._______'.\n```\n-------------------\n\n**A work-in-progress implementation of better submarine sends for Ethereum.**\n\n# Submarine Steps\n\n- `A` User\n- `B` Commit Address (No Private key)\n- `C` Libsubmarine\n- `D` Dapp, Application (e.g Auction, DEX, ICO, etc.)\n- `MPT` Merkle-Patricia Proof of TxCommit Inclusion on-chain\n\n```\n     TxCommit (1)\nA +-------------------\u003e B\n+                       +\n|                       |   TxUnlock (3)\n|                       | (calls unlock)\n|                       v\n+---------------------\u003e C \u003c - - - - - - - - - - - - -+ D\n                         (overload) onSubmarineReveal\n    TxReveal (2)           (query) revealedAndUnlocked(submarineId)\n (call reveal + MPT\n + RLP-encoded TxUnlock)\n                                                        \n```\n\n----------\n# Workflow and API Guide\n\nFor a more in-depth discussion of what the workflow / steps from a user's perspective \nfor a Submarine transaction looks like, refer to WORKFLOW.md.\n\nFor an in-depth discussion of how to incorporate LibSubmarine into your existing application, as well as some software architecture notes, see API.md.\n\n-----------\n# Contract Unit Tests / Examples / Offchain Components\n\nInstall Solc ([Installation guide]( http://solidity.readthedocs.io/en/v0.4.24/installing-solidity.html#binary-packages))\n\nUse pip to install python dependencies (we recommend using a virtualenv with \u003e= python3.6):\n\n```\npip3 install -r requirements.txt\n```\n\nRun the tests:\n```\npython3 test/test_whateverComponent.py\n```\n\nThe tests are particularly useful to see as a reference, since they basically model an end-users interaction with LibSubmarine from start to finish.\n\n-------------\n# Disclaimer\nThis project is a Work in Progress. It has not undergone a formal security audit from an independent 3rd party (though we would like to have that done).\n\nFor a high level discussion around the research of Submarine Sends and some historical implementations, please refer to the blog post: [To Sink Frontrunners, Send in the Submarines](http://hackingdistributed.com/2017/08/28/submarine-sends/).\n\n-----------\n## Authors\n\nLibSubmarine's development was started by the *Submarines* group at the [2018 IC3 Ethereum bootcamp](http://www.initc3.org/events/2018-07-12-IC3-Ethereum-Crypto-Boot-Camp.html), but is now an open source project. Anyone is encouraged to contribute.\n\nIC3 Ethereum Bootcamp \u003c3 2018\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzb%2Flibsubmarine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florenzb%2Flibsubmarine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzb%2Flibsubmarine/lists"}