A connection encrypter that uses TLS 1.3
Implements the spec at https://github.com/libp2p/specs/blob/master/tls/tls.md
import { createLibp2p } from 'libp2p'
import { tls } from '@libp2p/tls'
const node = await createLibp2p({
// ...other options
connectionEncrypters: [
tls()
]
})
$ npm i @libp2p/tls
Licensed under either of
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.
Implements the spec at https://github.com/libp2p/specs/blob/master/tls/tls.md
Example