rust-bitcoin-unsafe-fast/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
..
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 Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00
src Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00
tests Modify locktime serde implemenations 2025-06-01 14:07:33 +01:00
CHANGELOG.md BREAKING: Change Psbt serde implementations 2025-05-22 16:41:05 -05:00
Cargo.toml Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00