15.0.0 • Published 4 months ago

@chainsafe/libp2p-noise v15.0.0

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

js-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

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

Warning: Even though this package works in browser, it will bundle around 600Kb (200Kb gzipped) of code

https://bundlephobia.com/result?p=@chainsafe/libp2p-noise@latest

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({
  connectionEncryption: [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

Contribute

Feel free to join in. All welcome. Open an issue!

npm.io

License

Licensed under either of

@hoprnet/hopr-core@lodestar/beacon-node@conun-global/web3.storage@infinitebrahmanuniverse/nolb-_chai@everything-registry/sub-chunk-164ipfs-nodejs-chaintalk-utilsjs-cmnctrjs-cmnctraheliaipfs-coreipdwjs-wakukiwistandlibcollalibp2p-daemonrivalz-client-node-librivalz-client-nodeodulofficiaimpeditpeer-climtcrawleemt-libp2pmtxp2pmetapointmoonbase-jsrivalz-client-librivalz-node-clirivalz-node-client@dcdn/clientthld-explorer-components@libp2p/amino-dht-bootstrapper@libp2p/webrtc@libp2p/multidim-interop@libp2p/webtransport@peer-ai/peer-ai@phala/runtime-bridge-walkiezkdatabase@functionland/borg@functionland/box@functionland/fula@futureverse/sylo-protocol-sdk@questflow/deworker-cli@sarcophagus-org/sarcophagus-v2-sdk@sarcophagus-org/sarcophagus-v2-sdk-client@satellite-im/iridium@savid/libp2p-peeper@savid/libp2p-pest@libertynet/core@lh-labs/eridanus-connection@mdip/ipfs-core@fluencelabs/js-client@fluencelabs/js-peer@fluencelabs/connectionsimiliqueinventoresk-chain@nabladelta/lambdadeltawagglewalletdrop@dstanesc/ipfs-core-store-access@dwn-protocol/dwn@dwn-protocol/id-sdk@helia/cli-utils@eridanus-network/connection@eridanus-network/js-core.peer@heirtrust/heirtrust-sdk@abaxx/sdk@0xvaibhav/libp2p-events@0xvaibhav/libp2p-events-client@waku/create@waku/staging@waku/sdk@veramo/libp2p-client@veramo/libp2p-utils@veramo/libp2p-utils-browser@aztec/p2p@windingtree/sdk@windingtree/sdk-client@windingtree/sdk-node@windingtree/sdk-server@aldea/mocknet@blockless/browser-node@canvas-js/core@soketi/p2p@badaimweeb/js-protov2@autismjs/protocol@constl/ipa@dao-xyz/libp2p-webrtcaxon-webtorrent@drtc/relay@drtc/relay-node@drtc/tests@drtc/bootstrap@drtc/bootstrap-node@drtc/create@djack-sdk/network@djack-sdk/signal@douganderson444/ipfs-core@dreamcatcher-tech/interblockchatternet-lib
15.0.0

4 months ago

14.1.0

5 months ago

13.0.5

5 months ago

14.0.0

5 months ago

13.0.4

5 months ago

13.0.2

6 months ago

13.0.3

6 months ago

13.0.0

9 months ago

13.0.1

8 months ago

12.0.2

10 months ago

12.0.0

12 months ago

12.0.1

12 months ago

11.0.4

1 year ago

11.0.2

1 year ago

11.0.1

1 year ago

11.0.0

1 year ago

10.0.0

2 years ago

10.1.0

1 year ago

10.0.1

1 year ago

10.2.0

1 year ago

8.0.2

2 years ago

9.0.0

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

6.2.0

2 years ago

7.0.0

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

5.0.3

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.1.1

2 years ago

4.1.2

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago