diba-io / bitmask-core

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

Support to Batch Operations #398

Closed crisdut closed 1 year ago

crisdut commented 1 year ago

Description

This PR intent supports to RBF and Batch Operations.

How to works

The BMC will always check for pending transitions related to a specific wallet (RGB20, RGB21, etc..). If have, the BMC retrieves the invoices of the previous RGB transitions and will generate a new PSBT and consignment file(s), consolidating all previous changes in new one. Another feature implemented is strict consignments. This flag allows us to create consignment files per invoice, so we can send it to each user, who only knows about the state that interests them, without exposing other allocations.

We will use RGB Proxy to control the distribution of new files to users.

~11/21/23: This PR is in draft, as the addition of the proxy and integration will be done in another PR, to facilitate review;~

Closes #304