Pulled this out of #850 so we can close that issue with #858. ref: https://github.com/rust-bitcoin/rust-secp256k1/issues/850#issuecomment-3280292622