Module @libp2p/tls

Example

import { createLibp2p } from 'libp2p'
import { tls } from '@libp2p/tls'

const node = await createLibp2p({
// ...other options
connectionEncryption: [
tls()
]
})

@libp2p/tls

libp2p.io Discuss codecov CI

A connection encrypter that uses TLS 1.3

About

Implements the spec at https://github.com/libp2p/specs/blob/master/tls/tls.md

Example

import { createLibp2p } from 'libp2p'
import { tls } from '@libp2p/tls'

const node = await createLibp2p({
// ...other options
connectionEncryption: [
tls()
]
})

Install

$ npm i @libp2p/tls

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Index

Interfaces

Variables

Functions