See https://github.com/bitcoindevkit/bdk/pull/1064#discussion_r1329414295
See #1064 (comment)