See https://github.com/bitcoindevkit/bdk/pull/1065#discussion_r1297385695
See #1065 (comment)