stacks-network / sbtc-developer-release

sBTC primitives, signer components, helper tools
https://sbtc.tech
MIT License
1.98k stars 23 forks source link

[stacks-signer] Convert a list of commit BTC txs and their RevealInfo into a corresponding single BTC OP RETURN transaction #372

Open jferrant opened 11 months ago

jferrant commented 11 months ago

Description

Create a function that consolidates a batch of pending deposits into a single BTC OP RETURN transaction that takes all pending deposits as inputs as well as the wallet utxo as an input, consolidating them into a single output utxo (the new allet utxo)

Context

Users currently deposit into the system only via OP DROP. These OP DROP transactions should be revealed either through a revealer service OR through a challenge stx transaction with the appropriate info. Signers must be able to construct a corresponding BTC OP RETURN transaction that fulfills the deposit request and simultaneously consolidates their input utxos with the wallet utxo into a single output utxo.

Acceptance Criteria