npm.io
3.1.13 • Published yesterday

@libp2p/tls

Licence
Apache-2.0 OR MIT
Version
3.1.13
Deps
0
Vulns
0
Weekly
0
Stars
2.6K

@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
  connectionEncrypters: [
    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.