16.0.0 • Published 9 months ago

@chainsafe/libp2p-noise v16.0.0

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
9 months ago

@chainsafe/libp2p-noise

npm npm.io npm.io npm.io License Apache 2.0 License MIT npm.io npm.io npm.io Twitter Discord

Noise libp2p handshake for js-libp2p

About

This repository contains TypeScript implementation of noise protocol, an encryption protocol used in libp2p.

Usage

Install with yarn add @chainsafe/libp2p-noise or npm i @chainsafe/libp2p-noise.

Example of using default noise configuration and passing it to the libp2p config:

import {createLibp2p} from "libp2p"
import {noise} from "@chainsafe/libp2p-noise"

//custom noise configuration, pass it instead of `noise()`
//x25519 private key
const n = noise({ staticNoiseKey });

const libp2p = await createLibp2p({
  connectionEncrypters: [noise()],
  //... other options
})

See the NoiseInit interface for noise configuration options.

API

This module exposes an implementation of the ConnectionEncrypter interface.

Bring your own crypto

You can provide a custom crypto implementation (instead of the default, based on @noble) by adding a crypto field to the init argument passed to the Noise factory.

The implementation must conform to the ICryptoInterface, defined in https://github.com/ChainSafe/js-libp2p-noise/blob/master/src/crypto.ts

Install

$ npm i @chainsafe/libp2p-noise

Browser <script> tag

Loading this module through a script tag will make its exports available as ChainsafeLibp2pNoise in the global namespace.

<script src="https://unpkg.com/@chainsafe/libp2p-noise/dist/index.min.js"></script>

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.

@conun-global/web3.storage@infinitebrahmanuniverse/nolb-_chai@everything-registry/sub-chunk-164electron-forge-react-typescript-boilerplatewagglewalletdropthld-explorer-components@djack-sdk/network@djack-sdk/signal@drtc/bootstrap@drtc/bootstrap-node@drtc/create@drtc/relay@drtc/relay-node@drtc/tests@dreamcatcher-tech/interblock@douganderson444/ipfs-core@blockless/browser-node@canvas-js/gossiplog@rosen-bridge/rosenet-node@rosen-bridge/rosenet-relayipfs-nodejs-cmnctrajs-cmnctrjs-ds-crdtjs-wakuipfs_model_manager_jsipfs-coreipdwrivalz-client-node-librivalz-client-nodejs-chaintalk-utilschaintalk-libchaintalk-relaydenetwork-relay@bpx-chain/synapse-sdk@autismjs/protocol@aldea/mocknet@badaimweeb/js-protov2@aztec/p2p@carmel/core@carmel/node@byzanlink-bundler/node@0xvaibhav/libp2p-events@0xvaibhav/libp2p-events-client@abaxx/sdk@dcdn/client@deworker/deworker-cli@dao-xyz/libp2p-webrtc@constl/ipawebpeerjszkdatabase@dstanesc/ipfs-core-store-access@heirtrust/heirtrust-sdk@helia/cli-utils@fluencelabs/connection@fluencelabs/js-client@fluencelabs/js-peer@hoprnet/hopr-core@functionland/borg@functionland/box@functionland/fula@futureverse/sylo-protocol-sdk@krypton-js/sdk@lodestar/beacon-node@libertynet/core@libp2p/amino-dht-bootstrapper@libp2p/webrtc@libp2p/webtransport@lh-labs/eridanus-connection@libp2p/multidim-interop@nabladelta/lambdadelta@eridanus-network/connection@eridanus-network/js-core.peer@mdip/ipfs-core@dwn-protocol/id-sdk@dwn-protocol/dwn@olptools/node@questflow/deworker-cli@satellite-im/iridium@savid/libp2p-peeper@savid/libp2p-pest@sarcophagus-org/sarcophagus-v2-sdk@sarcophagus-org/sarcophagus-v2-sdk-client@phala/runtime-bridge-walkie@othentic/othentic-cli@peer-ai/peer-ai@soketi/p2pmt-libp2pmtxp2pmtcrawleemoonbase-jsmetapointp4podulofficiaimpeditpipe-protocolpeer-cliplugin-payairivalz-node-client
15.1.2

10 months ago

16.0.0

9 months ago

15.1.1

10 months ago

15.1.0

12 months ago

15.0.0

1 year ago

14.1.0

2 years ago

13.0.5

2 years ago

14.0.0

2 years ago

13.0.4

2 years ago

13.0.2

2 years ago

13.0.3

2 years ago

13.0.0

2 years ago

13.0.1

2 years ago

12.0.2

2 years ago

12.0.0

2 years ago

12.0.1

2 years ago

11.0.4

2 years ago

11.0.2

2 years ago

11.0.1

2 years ago

11.0.0

2 years ago

10.0.0

3 years ago

10.1.0

3 years ago

10.0.1

3 years ago

10.2.0

3 years ago

8.0.2

3 years ago

9.0.0

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

6.2.0

3 years ago

7.0.0

3 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

5.0.3

3 years ago

6.1.0

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

6.1.1

3 years ago

4.1.2

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago