]> Untitled Git - bdk/commit
feat(wallet): add TxOrdering::Custom
authorFadedCoder <hello@sohamsen.me>
Sun, 27 Feb 2022 05:49:53 +0000 (11:19 +0530)
committerSteve Myers <steve@notmandatory.org>
Fri, 5 Jul 2024 20:03:05 +0000 (15:03 -0500)
commite5cb7b206619f5f3437e5ee95ed3e53885b745e6
treef52795160fcb9774131d748863cb27a4fe51487c
parent22368ab7b08582614f58a1cd19d6df1996d308e6
feat(wallet): add TxOrdering::Custom

The deterministic sorting of transaction inputs and outputs proposed in
BIP 69 doesn't improve the privacy of transactions as originally
intended. In the search of not spreading bad practices but still provide
flexibility for possible use cases depending on particular order of the
inputs/outpus of a transaction, a new TxOrdering variant has been added
to allow the implementation of these orders through the definition of
comparison functions.

Signed-off-by: Steve Myers <steve@notmandatory.org>
crates/wallet/src/wallet/tx_builder.rs