libp2ptls

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 2 Imported by: 83

README

DEPRECATION NOTICE

This package has moved into go-libp2p as a sub-package, github.com/libp2p/go-libp2p/p2p/security/tls.

go-libp2p-tls

GoDoc Linux Build Status Code Coverage Discourse posts

go-libp2p's TLS encrypted transport

Package go-libp2p-tls is a libp2p conn security transport. It uses TLS to setup the communication channel.

Install

go-libp2p-tls is a standard Go module which can be installed with:

go get github.com/libp2p/go-libp2p-tls

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the libp2p Code of Conduct.

Want to hack on libp2p?

License

MIT


The last gx published version of this module was: 0.1.0: QmR4qpcxA1UoHg7SZ89hJHYCpfrxToPjH9xSCug1cQeH1M

Documentation

Overview

Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/p2p/security/tls.

Index

Constants

View Source
const ID = "/tls/1.0.0"

ID is the protocol ID (used when negotiating with multistream) Deprecated: use github.com/libp2p/go-libp2p/p2p/security/tls.ID instead.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity = libp2ptls.Identity

Identity is used to secure connections Deprecated: use github.com/libp2p/go-libp2p/p2p/security/tls.Identity instead.

func NewIdentity

func NewIdentity(privKey ic.PrivKey) (*Identity, error)

NewIdentity creates a new identity Deprecated: use github.com/libp2p/go-libp2p/p2p/security/tls.NewIdentity instead.

type Transport

type Transport = libp2ptls.Transport

Transport constructs secure communication sessions for a peer. Deprecated: use github.com/libp2p/go-libp2p/p2p/security/tls.Transport instead.

func New

func New(key ci.PrivKey) (*Transport, error)

New creates a TLS encrypted transport Deprecated: use github.com/libp2p/go-libp2p/p2p/security/tls.New instead.

Jump to

Keyboard shortcuts

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