forked from rust-bitcoin/rust-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin#3512: Manually implement
compute_txid
and `compu…
…te_wtxid` 5633b10 Manually implement compute_txid and compute_wtxid (Tobin C. Harding) Pull request description: We would like to move the `Transaction` type over to `primitives` including the `compute_txid` and `compute_wtxid` functions however currently the implementations, as expected, use `Encodable`. Manually implement `Encodable` by hashing all the fields in the correct order. Note we have unit tests already that check the output string of the txid returned so these act as regression tests for this patch. ACKs for top commit: apoelstra: ACK 5633b10; successfully ran local tests; nice Tree-SHA512: 66a955d3d896801cfefe0388aade3a31f22fac5b6da7b996be61f374b93772487c0c203320aaf5165fcef26874564bce375ecb364175b0a01c3008b7ea8db981
- Loading branch information
Showing
1 changed file
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters