16.1.3 • Published 8 months ago

@chainsafe/libp2p-noise v16.1.3

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
8 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-componentsipfs-nodejs-cmnctrajs-cmnctrjs-ds-crdtjs-wakuipfs_model_manager_jsipfs-coreipdwhelialibp2p_kit_jslibp2p-tslibp2p-daemonlibcollakiwistand@waku/sdk@waku/staging@waku/create@windingtree/sdk-server@windingtree/sdk@windingtree/sdk-client@windingtree/sdk-node@turbo-ing/edge-v0@ts-drp/network@topology-foundation/network@veramo/libp2p-client@veramo/libp2p-utils@veramo/libp2p-utils-browseraxon-webtorrentchatternet-libchaintalk-utilsdaguladecontactdebeem-utilsdebeem-libdebeem-p2p-relaydenetwork-libdenetwork-utilsrivalz-client-node-librivalz-client-nodejs-chaintalk-utilschaintalk-libchaintalk-relaydenetwork-relay@bpx-chain/synapse-sdkwebpeerjszkdatabasemt-libp2pmtxp2pmtcrawleemoonbase-jsmetapointp4podulofficiaimpeditpipe-protocolpeer-cliplugin-payairivalz-node-clientrivalz-client-libsk-chainsimiliqueinventore@eridanus-network/connection@eridanus-network/js-core.peer@fatduckai/ai@fluencelabs/js-client@fluencelabs/js-peer@fluencelabs/connection@heirtrust/heirtrust-sdk@helia/cli-utils@hoprnet/hopr-core@functionland/borg@functionland/box@functionland/fula@futureverse/sylo-protocol-sdk@krypton-js/sdk@libp2p/amino-dht-bootstrapper@libertynet/core@libp2p/webrtc@libp2p/multidim-interop@lh-labs/eridanus-connection@libp2p/webtransport@le-space/voyager@lodestar/beacon-node@nhtio/p2pbus@olptools/node@phala/runtime-bridge-walkie@peer-ai/peer-ai@othentic/othentic-cli@othentic/othentic-cli-sepolia@abaxx/sdk@0xvaibhav/libp2p-events@0xvaibhav/libp2p-events-client@aldea/mocknet
16.1.1

8 months ago

16.1.0

9 months ago

16.1.3

8 months ago

16.1.2

8 months ago

16.0.2

10 months ago

16.0.1

11 months ago

16.0.3

10 months ago

15.1.2

1 year ago

16.0.0

1 year ago

15.1.1

1 year ago

15.1.0

1 year ago

15.0.0

2 years 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

3 years ago

12.0.1

3 years ago

11.0.4

3 years ago

11.0.2

3 years ago

11.0.1

3 years ago

11.0.0

3 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

4 years ago

7.0.0

4 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

5.0.3

4 years ago

6.1.0

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

6.1.1

4 years ago

4.1.2

4 years ago

5.0.2

4 years ago

5.0.1

4 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