Documentation ¶
Overview ¶
Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/sec/insecure.
Package insecure provides an insecure, unencrypted implementation of the the SecureConn and SecureTransport interfaces.
Recommended only for testing and other non-production usage.
Index ¶
Constants ¶
const ID = insecure.ID
ID is the multistream-select protocol ID that should be used when identifying this security transport. Deprecated: use github.com/libp2p/go-libp2p/core/sec/insecure.ID instead
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is the connection type returned by the insecure transport. Deprecated: use github.com/libp2p/go-libp2p/core/sec/insecure.Conn instead
type Transport ¶
Transport is a no-op stream security transport. It provides no security and simply mocks the security methods. Identity methods return the local peer's ID and private key, and whatever the remote peer presents as their ID and public key. No authentication of the remote identity is performed. Deprecated: use github.com/libp2p/go-libp2p/core/sec/insecure.Transport instead
func NewWithIdentity ¶ added in v0.1.0
NewWithIdentity constructs a new insecure transport. The provided private key is stored and returned from LocalPrivateKey to satisfy the SecureTransport interface, and the public key is sent to remote peers. No security is provided. Deprecated: use github.com/libp2p/go-libp2p/core/sec/insecure.NewWithIdentity instead