Documentation ¶
Index ¶
Constants ¶
const ID = "/plaintext/1.0.0"
ID is the multistream-select protocol ID that should be used when identifying this security transport.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is the connection type returned by the insecure transport.
func (*Conn) LocalPrivateKey ¶
LocalPrivateKey returns nil. This connection is not secure.
func (*Conn) RemotePeer ¶
RemotePeer returns the remote peer ID if we initiated the dial. Otherwise, it returns "" (because this connection isn't actually secure).
func (*Conn) RemotePublicKey ¶
RemotePublicKey returns nil. This connection is not secure
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a no-op stream security transport. It provides no security and simply wraps connections in blank
func (*Transport) LocalPrivateKey ¶
LocalPrivateKey returns nil. This transport is not secure.
func (*Transport) SecureInbound ¶
SecureInbound *pretends to secure* an outbound connection to the given peer.