A simple and private bitcoin exchange
Go to file
2024-06-30 21:28:08 +00:00
.github Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
api Feat: add notifications api endpoint (#1347) 2024-06-27 16:47:23 +00:00
chat fix(coordinator): warning on drf serialializer decimal 2024-04-21 22:09:06 +01:00
control Dev: replace isort, black, flake8 with ruff (#1057) 2024-01-09 01:22:50 +00:00
docker Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
docs Feat: add notifications api endpoint (#1347) 2024-06-27 16:47:23 +00:00
fastlane/metadata/en-US Relocate fastlane metadata (#1291) 2024-05-13 15:09:09 +00:00
frontend Fix autocomplete 2024-06-30 23:27:45 +02:00
mobile Disable tor option (#1315) 2024-06-16 22:14:32 +00:00
nodeapp Refactor Webpacks (#1212) 2024-04-03 05:55:42 +00:00
robosats Fix middleware unused AuthenticationFailed (#1339) 2024-06-17 21:15:25 +00:00
scripts Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
tests Feat: add notifications api endpoint (#1347) 2024-06-27 16:47:23 +00:00
web Refactor Webpacks (#1212) 2024-04-03 05:55:42 +00:00
.dockerignore Add googleapis folder to .dockerignore (lighter coordinator image) 2023-04-23 07:46:19 -07:00
.editorconfig Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
.env-sample Feat: add coordinator opt for geoblocked countries (#1258) 2024-04-29 22:58:03 +00:00
.flake8 Fix weird flake8 mismatch of expectations 2023-11-17 13:02:30 +00:00
.gitignore chore: add lightning protobuf files in gitignore (#1342) 2024-06-25 16:38:06 +00:00
.pre-commit-config.yaml Merge branch 'main' into the-federation-layer-v0.6.0 2024-01-22 10:22:33 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-07-23 14:50:31 +00:00
commit_sha Add placeholder commit_sha 2023-05-19 04:45:22 -07:00
CONTRIBUTING_DOCS.md Add docs translation for menus and includes (#1143) 2024-03-03 19:01:26 +00:00
CONTRIBUTING.md Add federation basis and new coordinator form (#793) 2023-08-21 11:30:15 -07:00
devfund_pubkey.json Update devfund node info 2024-01-21 22:09:38 +00:00
docker-compose.yml Refactor contexts and models (#921) 2023-12-02 10:40:59 +00:00
docker-tests.yml Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
Dockerfile chore(coordinator): bump python to 3.12 2024-04-21 21:52:13 +01:00
federation.md Add programatic order size limit to new coordinators 2024-02-08 00:35:14 +00:00
LICENSE Add concept for BTC <> Fiat p2p swap using Lightning. 2022-01-01 07:28:49 -08:00
manage.py Re-format all python code 2022-02-17 11:50:10 -08:00
package-lock.json Add docs translation for menus and includes (#1143) 2024-03-03 19:01:26 +00:00
package.json Add docs translation for menus and includes (#1143) 2024-03-03 19:01:26 +00:00
pyproject.toml Dev: replace isort, black, flake8 with ruff (#1057) 2024-01-09 01:22:50 +00:00
README.md chore: explain monorepo architecture on readme.md 2024-04-20 20:44:16 +01:00
release_notes.md Bump to v0.6.2 2024-05-16 19:42:59 +01:00
requirements_dev.txt fix(coordinator): cannot update_or_create with relate named on django v5 (#1263) 2024-05-05 19:58:18 +00:00
requirements.txt Merge branch 'main' into perf/delete-backend-avatars 2024-06-16 22:53:51 +00:00
setup.md Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
version.json Bump to v0.6.2 2024-05-16 19:42:59 +01:00

RoboSats - Buy and sell Satoshis Privately

Coordinator CI Frontend Build release AGPL-3.0 license Telegram

RoboSats is a simple and private way to exchange bitcoin for national currencies. Robosats simplifies the peer-to-peer user experience and uses lightning hold invoices to minimize custody and trust requirements. The deterministically generated avatars help users stick to best privacy practices.

Try it out!

Always use Tor Browser and .onion for best privacy. The Clearnet URL redirects to a third party Tor2web service. Your privacy cannot be guaranteed to be respected. Use clearnet only to check around the app, never use for trading!

You can use Testnet Bitcoin by going to the Settings page and switching to Testnet

How to use it

https://user-images.githubusercontent.com/90936742/167310017-dc211a05-dd5e-4ef4-b93f-250f80bc5bca.mp4

Written guides

Video guides

How it works

Alice wants to buy satoshis privately:

  1. Alice generates an avatar (AdequateAlice01) using her private random token.
  2. Alice stores safely the token in case she needs to recover AdequateAlice01 in the future.
  3. Alice makes a new order and locks a small hold invoice to publish it (maker bond).
  4. Bob wants to sell satoshis, sees Alice's order in the book and takes it.
  5. Bob scans a small hold invoice as his taker bond. The contract is final.
  6. Bob posts the traded satoshis with a hold invoice. While Alice submits her payout invoice.
  7. On a private chat, Bob tells Alice how to send him fiat.
  8. Alice pays Bob, then they confirm the fiat has been sent and received.
  9. Bob's trade hold invoice is charged and the satoshis are sent to Alice.
  10. Bob and Alice's bonds return automatically, since they complied with the rules.
  11. The bonds would be charged (lost) in case of unilateral cancellation or cheating (lost dispute).

Contribute to the Robotic Satoshis Open Source Project

Check out our Contribution Guide to find how you can make RoboSats great.

RoboSats is a monorepo, arguably a messy one at the moment.

  • The top level is a Django application (the coordinator backend) with apps /api, /control, and /chat. Django settings are in /robosats and /tests has integration tests for the RoboSats backend.
  • The /frontend directory contains the ReactJS client.
  • The /nodeapp directory contains the docker orchestration and utilities for the self-hosted application (Umbrel, StartOS, etc)
  • The /mobile directory contains our React Native app (a wrapper around our ReactJS app in /frontend)
  • The /docs directory has the learn.robosats.com static Jekyll site markdown docs.
  • The /web directory is a light wrapper around our client app /frontend intended to host a RoboSats dex client to be used for the public. We use this one in dex.robosats.com

You can run the whole stack for local development following the instructions in setup.md

Officially mantained docker orchestration for coordinators can be found in the repo robosats-deploy

Developer Rewards

Check out the Developer Rewards Panel for tasks paid in Sats.

Sponsors

Reviews

Inspiration

The concept of a simple custody-minimized lightning exchange with hold invoices is inspired in P2PLNBOT by @grunch

License

The Robotic Satoshis Open Source Project is released under the terms of the AGPL3.0 license. See LICENSE for more details.