Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Bitcoin Peers Connection

Peer connection and transport

crates.io Docs CC0 1.0 Universal Licensed Rustc Version 1.63.0+

About

Connection attempts to manage the life-cycle and state of a bitcoin p2p peer connection.

  • Connection // High level interface to establish and manage a connection to a bitcoin peer. This includes transport selection (v1 or v2) and upgrading a connection's state based on the implicit feature negotiation (e.g. SendAddrV2). The caller's interface is a simple send or receive NetworkMessage. Check out the example for usage.
  • Transport // Low level interface for the encryption and serialization used in a connection. If you are connecting to nodes with some bespoke I/O implementations, perhaps this is the type for you!