rust-bitcoin-unsafe-fast/fuzz/fuzz_targets/bitcoin
rustaceanrob d9cf7270eb
Move `bitcoin/p2p` into `p2p`
Moves all of the content from `bitcoin/p2p` into `p2p`.

`TryFrom<Network>` must be implemented for `Network -> Magic` now that
`Network` is a foreign, non-exhaustive type. Ser/de test is updated
accordingly, as well as the `Magic::from_network` constructor, which I
have opted to return an `Option<Self>`. The `TryFrom` implementation
uses a new `UnknownNetworkError(Network)` that mirrors the `Magic ->
Network` error.

The example handshake does not generate a random nonce for the version
message, as there is no `rand` dependency in this crate and the program
only makes a single, user-defined connection.

It appears we can do better than copying and pasting the consensus
encoding macros and functions from `bitcoin` without doing weird
cross-crate macros that require some special knowledge of the crate to
know when they will compile.
2025-06-18 14:11:35 +01:00
..
deser_net_msg.rs Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00
deserialize_address.rs Change T::from_str(s) to s.parse::<T>() in tests 2024-08-28 16:13:03 +01:00
deserialize_block.rs Move Block to primitives 2024-11-15 07:16:21 +11:00
deserialize_prefilled_transaction.rs fuzz: disable tests unless 'cfg(fuzzing)' is passed; update README for reproducing failures 2023-04-27 00:24:53 +00:00
deserialize_psbt.rs 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
deserialize_script.rs Change the internal representation of FeeRate 2025-05-31 07:52:31 +01:00
deserialize_transaction.rs Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
deserialize_witness.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
outpoint_string.rs Change T::from_str(s) to s.parse::<T>() in tests 2024-08-28 16:13:03 +01:00
p2p_address_roundtrip.rs Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00
script_bytes_to_asm_fmt.rs Replace impl blocks with extension traits 2024-08-13 13:14:00 +02:00