See: https://github.com/bitcoindevkit/bdk/blob/82f9caddabecc3a52ba38ecc2e345e365d3b7d42/crates/bdk/src/wallet/signer.rs#L911