Target outputs are currently created as `Buffer` types, which `utxo-lib` used to build transactions. `ecash-lib` uses a `Script` class, which is much better.3582
Deprecate `utxo-lib` script compilation and use `ecash-lib`.Target outputs are currently created with `script` key as `Buffer` types, which `utxo-lib` used to build transactions.
`ecash-lib` uses its own `Script` class, which is much better.
Modify functions that create `targetOutputs` with `script` keys (cashtab msgs, airdrops, alias registrations, slp1 txs) so that
- `targetOutput` with `script` key is created with `ecash-lib` native `Script` type, not `Buffer`
- `OP_RETURN` scripts are built using `ecash-lib` instead of `utxo-lib` script compiler
- SLP1 `OP_RETURN` scripts are generated using `ecash-lib` methods and not `slp-mdm` methods
We still cannot fully deprecate `slp-mdm` or `utxo-lib`, as Cashtab uses `BN` from `slp-mdm` in other places (to be deprecated), and `utxo-lib` is still used to sign and verify msgs (to be replaced by ecash-lib).
Need this refactor before we add new tx types to Cashtab, i.e. NFT trading with `ecash-agora`