Documentation ¶
Overview ¶
Package sec provides secure connection and transport interfaces for libp2p.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecureConn ¶
type SecureConn interface { net.Conn network.ConnSecurity }
SecureConn is an authenticated, encrypted connection.
type SecureTransport ¶
type SecureTransport interface { // SecureInbound secures an inbound connection. SecureInbound(ctx context.Context, insecure net.Conn) (SecureConn, error) // SecureOutbound secures an outbound connection. SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (SecureConn, error) }
A SecureTransport turns inbound and outbound unauthenticated, plain-text, native connections into authenticated, encrypted connections.
Click to show internal directories.
Click to hide internal directories.