I'm not sure why we do not use consensus encoding currently for encoding and decoding scripts to/from hex strings. Many tests include hard coded hex which do not include the length prefix. - Add a pair of encoding functions to encode/decode to/from hex without the length prefix. - Make `to_hex` and `from_hex` expect the length prefix i.e., use consensus encoding. This makes the API easier to use because the various encoding APIs can be use together now eg `consensus::encode_hex` and `ScriptBuf::from_hex`. |
||
---|---|---|
.. | ||
bip32.rs | ||
create-p2wpkh-address.rs | ||
ecdsa-psbt-simple.rs | ||
ecdsa-psbt.rs | ||
handshake.rs | ||
io.rs | ||
script.rs | ||
sighash.rs | ||
sign-tx-segwit-v0.rs | ||
sign-tx-taproot.rs | ||
taproot-psbt-simple.rs | ||
taproot-psbt.rs |