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
Unit tests in place to test the successful deserialization of an OP DROP transaction/Reveal Info into a valid OP RETURN BTC transaction
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