rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 89303c1464
Move witness types to the script module
From BIP 141:

> A scriptPubKey (or redeemScript as defined in BIP16/P2SH) that
> consists of a 1-byte push opcode (for 0 to 16) followed by a data push
> between 2 and 40 bytes gets a new special meaning. The value of the
> first push is called the "version byte". The following byte vector
> pushed is called the "witness program".

`WitnessVersion` and `WitnessProgram` are scriptPubkey concerns and
scriptPubkey is basically synonymous with address so in one way it makes
sense that these types are in `address` however we are in the process of
overhauling the `Address` (and `AddressInner`) types so lets move the
witness stuff to `script` and put it in individual sub-modules.

This move helps simplify the address error type also.

Note please, there are a bunch of formatting changes in here in the
error type that I cannot explain and could not remove.
2023-07-13 09:51:40 +10:00
..
contrib CI: Pin serde_json for MSRV build 2023-07-12 15:50:18 +10:00
embedded embedded: Document how to clean up linker flags 2023-05-26 14:39:14 +10:00
examples Added examples for sighash computations 2023-06-20 02:07:21 -07:00
src Move witness types to the script module 2023-07-13 09:51:40 +10:00
tests Use Amount type for TxOut value field 2023-05-04 17:09:08 +02:00
CHANGELOG.md Add changelo entry for removal of FromHex 2023-05-18 14:18:42 +10:00
Cargo.toml Implement support for `alloc`-free parse errors 2023-06-04 21:15:37 +02:00
build.rs Remove rust_v_1_46 2023-03-23 08:27:10 +11:00