rust-bitcoin-unsafe-fast/bitcoin/examples
Tobin C. Harding 4300cf2210
Add p2wpkh and p2wsh signature hash functions
The word "segwit" refers to segwit v0 and taproot but currently we have
`segwit_signature_hash` that is version specific (segwit v0).

- Rename `segwit_encode_signing_data_to` to
  `segwit_v0_encode_signing_data_to`
- Add `p2wpkh_signature_hash` and `p2wsh_signature_hash` functions

We keep the single encode function because the error handling is better
that way.

While we are at it test the bip-143 test vectors against all the
sighash types of wrapped p2wsh.
2023-08-15 11:54:08 +10:00
..
bip32.rs Depend on hex-conservative 2023-07-21 10:59:46 +10:00
ecdsa-psbt.rs Use Amount type for TxOut value field 2023-05-04 17:09:08 +02:00
handshake.rs Move p2p::constants::Network to crate root 2023-08-01 16:46:59 +10:00
sighash.rs Add p2wpkh and p2wsh signature hash functions 2023-08-15 11:54:08 +10:00
taproot-psbt.rs Use from_int_btc function for const context 2023-06-13 11:32:58 +02:00