diba-io / bitmask-core

Core functionality for the BitMask wallet
https://bitmask.app
Other
93 stars 21 forks source link

`bitmaskd` RGB20 Swaps Backend #405

Open cryptoquick opened 8 months ago

cryptoquick commented 8 months ago
  1. Server operator deploys a docker container that's configured with their mnemonic seed, a contract genesis, and a fixed price in either BTC or USD.
  2. bitmaskd has a simple HTML webpage that displays a form with an input for an RGB invoice and a way to copy the contract genesis.
  3. User submits their invoice, which can either specify the token, or be a wildcard invoice.
  4. They get redirected to a page with an address to send Bitcoin to.
  5. We add that to our mempool monitor and create a websocket to the frontend to show when we get payment.
  6. Once a payment is initiated, we create a swap transaction that spends the payment using fees from the payment, and then immediately provide the txid. If their tx gets mined, their swap tx gets mined, too.
lastdof commented 8 months ago

I need that so much for PePe for the community . That will make me win so much hours of manual transfert of assets ( with errors , certainly) . I'm very happy to see that kind of service on bitmaskd.. Maybe there's other services as well ...