rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding f4bc58dc48
bitcoin: Add a script encoding example
Our encoding/decoding support for scripts is currently a bit convoluted.
Add an example that shows how all the APIs go together.

Note this highlights a potential problem. `to_hex_string` is in
`bitcoin` and therefore has access to consensus encoding but does not
include the length prefix. This means that the output string from
`to_hex_string` cannot be parsed with
`consensus::encode::deserialize_hex` - which is surprising and has lead
to difficulty by at least one user trying to debug.
2025-04-28 13:38:12 +10:00
..
contrib Remove rust-ordered dependency 2025-02-18 13:36:07 +11:00
embedded chore: remove unused cortex-m dependency from embedded Cargo.toml files in bitcoin and hashes modules. 2025-04-05 18:25:41 +08:00
examples bitcoin: Add a script encoding example 2025-04-28 13:38:12 +10:00
src 2025-04-27 automated rustfmt nightly 2025-04-27 01:36:56 +00:00
tests 2025-04-13 automated rustfmt nightly 2025-04-13 02:50:07 +00:00
CHANGELOG.md Merge rust-bitcoin/rust-bitcoin#4292: chore: fix grammatical errors 2025-03-30 15:19:49 +00:00
Cargo.toml bitcoin: Add a script encoding example 2025-04-28 13:38:12 +10:00