Crate bip324

source ·
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§

Enums§

  • Errors encountered throughout the lifetime of a V2 connection.
  • The cryptocurrency network to act on.
  • Your role in the handshake.