rust-bitcoin-unsafe-fast/bitcoin/examples
Tobin C. Harding 706a135de6
bitcoin: Add an example of doing I/O to encode/decode
In an effort to improve the documentation on `bitcoin_io` add an example
in `bitcoin` crate that demonstrates a few things:

- Encode/Decode a `rust-bitcoin` type to/from a stdlib type.
- Encode to a custom type by implementing `bitcoin_io` traits.
- Encode to a foreign custom type by using the `bitcoin_io::bridge::FromStd` wrapper.

Later we can link to this example online in the `bitcoin_io` docs.
2025-01-08 10:18:00 +11:00
..
bip32.rs Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
create-p2wpkh-address.rs Add p2wpkh address creation example 2024-11-27 15:09:14 -06:00
ecdsa-psbt-simple.rs Move Witness to primitives 2024-10-18 14:02:03 +11:00
ecdsa-psbt.rs Introduce Transaction extension traits 2024-10-30 12:28:52 +11:00
handshake.rs Remove unused extern statement 2024-11-27 23:06:55 -06:00
io.rs bitcoin: Add an example of doing I/O to encode/decode 2025-01-08 10:18:00 +11:00
sighash.rs Make capitalization of SegWit uniform in strings 2024-12-17 14:49:01 +00:00
sign-tx-segwit-v0.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
sign-tx-taproot.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
taproot-psbt-simple.rs Move Witness to primitives 2024-10-18 14:02:03 +11:00
taproot-psbt.rs Add from_int_btc group of functions 2024-11-02 10:19:03 +11:00