HomePhabricator

[ecash-lib] Add `UnsignedTx` and `UnsignedTxInput`

Description

[ecash-lib] Add UnsignedTx and UnsignedTxInput

Summary:
This allows building the sighash preimages required for signing inputs.

We use UnsignedTx to precompute the hashes required for building the preimages, in case we need to sign a lot of inputs.

Only BIP143 sighash preimages are implemented, but not LEGACY; they aren't available on eCash since UAHF. Implementing it might be useful if we want to allow people to use ecash-lib on Dogecoin.

Depends on D15954 and D15952.

Test Plan: npm run test && npm run build

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Tue, Apr 16, 23:22
tobias_ruckPushed on Thu, Apr 18, 23:17
Reviewer
Restricted Project
Differential Revision
D15956: [ecash-lib] Add `UnsignedTx` and `UnsignedTxInput`
Parents
rABCd8314b5704b6: [Cashtab] Start reward countdown automatically after claiming rewards
Branches
Unknown
Tags
Unknown