HomePhabricator

[Chronik] Add `ColoredTx` to `bitcoinsuite-slp`

Description

[Chronik] Add ColoredTx to bitcoinsuite-slp

Summary:
This implements the coloring step ยง2 of ALP as well as the assignment of outputs of SLP, see the respective specs for details.

ColoredTx::color_tx takes a Tx as input, parses it as SLP or ALP, and assigns tokens to outputs according to the spec.

We keep track of the failed parsing and failed coloring attempts so we can later report them to the user.

Depends on D15030.

Test Plan: cargo -p bitcoinsuite-slp

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15033

Details

Provenance
tobias_ruckAuthored on Dec 22 2023, 00:14
tobias_ruckPushed on Dec 25 2023, 19:19
Reviewer
Restricted Project
Differential Revision
D15033: [Chronik] Add `ColoredTx` to `bitcoinsuite-slp`
Parents
rABCabe90d2043c4: validation: access chainparams via chainstatemanager
Branches
Unknown
Tags
Unknown