_Originally posted by @Kixunil in https://github.com/rust-bitcoin/rust-bitcoin/pull/718#discussion_r780714240_