See https://github.com/bitcoindevkit/bdk/pull/1152#issuecomment-1753088941
See #1152 (comment)