sbtc-developer-release icon indicating copy to clipboard operation
sbtc-developer-release copied to clipboard

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

Open jferrant opened this issue 2 years ago • 0 comments

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

  • Unit tests in place to test the successful deserialization of an OP DROP transaction/Reveal Info into a valid OP RETURN BTC transaction

jferrant avatar Nov 08 '23 19:11 jferrant