@libp2p/tls
v2.0.11
Published
A connection encrypter that uses TLS 1.3
Downloads
17,754
Keywords
Readme
@libp2p/tls
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
connectionEncrypters: [
tls()
]
})
Install
$ npm i @libp2p/tls
API Docs
License
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
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.