Expand description
BIP 324 encrypted transport for exchanging Bitcoin P2P messages. Much like TLS, a connection begins by exchanging ephimeral elliptic curve public keys and performing a Diffie-Hellman handshake. Thereafter, each participant derives shared session secrets, and may freely exchange encrypted messages. Under the new V2 specification, messages are encoded slightly differently than V1. Read more about the specification.
Modules§
- Serialize and deserialize V2 messages over the wire.
Structs§
- A point on the curve used to complete the handshake.
- Handshake state-machine to establish the secret material in the communication channel.
- Encrypt and decrypt messages with a peer.
- Read packets off of a byte stream from a peer.
- Prepare messages to be sent over a byte stream.
- A message or decoy packet from a connected peer.
- All keys derived from the ECDH.
Enums§
- Errors encountered throughout the lifetime of a V2 connection.
- The cryptocurrency network to act on.
- Your role in the handshake.