insecure

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 3 Imported by: 9

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

View Source
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

type Conn = insecure.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

type Transport = insecure.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

func NewWithIdentity(id peer.ID, key ci.PrivKey) *Transport

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL