{"dist":{"shasum":"f2a22d0546249a30a3d0fcd431bf6b1e8735c6e6","tarball":"https://registry.npmjs.org/libp2p-noise/-/libp2p-noise-2.0.2.tgz","fileCount":50,"integrity":"sha512-sDkMsNqjnv4WO2Y5o7yjcACAcuZjvmONvv/6kT1CX2kLqIh2E2bm6F0D5zfStYlYJoTGiEKrErPtwpSOXeXelQ==","signatures":[{"sig":"MEUCIQCDp1Q0ol8xrYfb0wNBC8LY5dweXJuRL/Z75iDv14cO8AIgODsQjDoXfwtjZMiT4kHxLFEmQJPFBGUQhqU+e7H58/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":986310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDqwKCRA9TVsSAnZWagAAb3YP/jgy9K1OWSlWOkmhFfs1\nu9ySB90hphyfabvz65NsM9iUlJPk4UEiyzf22tc7RSQ5upoOUq9LeO4fNGZp\nycDGQr4rdXf7oCq7/Yp6VI8nk4B3EtQkT5M+ztPQ2op8mJAPFtORldlqIL3s\n5GYiUlLdnVwwoxwu/9/eYLvlvPY7wGHVNLujOaGkmryHHunBiOI2n0UTcYU1\n4Y33wzWgfgwixZwtFxYq7ihRPb52ZgIXHO0TsGKs4coFy+irDh/BSqtYQo5y\nWG/l51b0zCxflDm7trRylMReMZeTx3YQyqhzu6hK56vFzPmS/M3vIWmgDBSM\n81vt6BVywRbIIvJIG9VxkMt5Qh49hlMJ5zs0v8nntzVLCvgvmyJuO7iRLb+q\na4T61QEsFjB6D88l1kRK55CvofIOmd9K9Ruio3snOJM9IBaqTPTHuf++rK7g\nQulprbKOe+NBsGSxwZ56oIejEcL+qz+ouYAz0AL17NVNGl53nZv05vZYbhrv\nvGwwaIdS31GNPw0Z3juWtC0xNiwhMgMhQHgWhoi6jOpY3qaxyQB1M/MnraZU\nGlDNqTIT9zOpo/Ys3rOXVNzevjmw8kUt/9R7wyFhscVazGoNz8qyINCdfAyF\n4FMKAYLC6UEnPi8my8tTorJwaPUTkvhtPw9aJBM21M9LilQMj/bPKnZTWyGd\nhvgl\r\n=Av01\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","name":"libp2p-noise","types":"dist/src/index.d.ts","author":{"name":"NodeFactory","email":"info@nodefactory.io"},"readme":"# js-libp2p-noise\n\n![npm](https://img.shields.io/npm/v/libp2p-noise)\n[![Build Status](https://travis-ci.com/NodeFactoryIo/js-libp2p-noise.svg?branch=master)](https://travis-ci.com/NodeFactoryIo/js-libp2p-noise)\n\n[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](https://libp2p.io/)\n![](https://img.shields.io/github/issues-raw/nodefactoryio/js-libp2p-noise)\n![](https://img.shields.io/github/license/nodefactoryio/js-libp2p-noise)\n![](https://img.shields.io/badge/yarn-%3E%3D1.17.0-orange.svg?style=flat-square)\n![](https://img.shields.io/badge/Node.js-%3E%3D10.19.0-orange.svg?style=flat-square)\n![](https://img.shields.io/badge/browsers-last%202%20versions%2C%20not%20ie%20%3C%3D11-orange)\n[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)\n\n> Noise libp2p handshake for js-libp2p\n\nThis repository contains TypeScript implementation of noise protocol, an encryption protocol used in libp2p.\n\n##### Warning: Even though this package works in browser, it will bundle around 1.5Mb of code \n\n## Usage\n\nInstall with `yarn add libp2p-noise` or `npm i libp2p-noise`.\n\nExample of using default noise configuration and passing it to the libp2p config:\n\n```js\nimport {NOISE, Noise} from \"libp2p-noise\"\n\n\n//custom noise configuration, pass it instead of NOISE instance\nconst noise = new Noise(privateKey, Buffer.alloc(x));\n\nconst libp2p = new Libp2p({\n   modules: {\n     connEncryption: [NOISE],\n   },\n});\n```\n\nWhere parameters for Noise constructor are:\n - *static Noise key* - (optional) existing private Noise static key\n - *early data* - (optional) an early data payload to be sent in handshake messages\n \n\n\n## API\n\nThis module exposes a crypto interface, as defined in the repository [js-interfaces](https://github.com/libp2p/js-interfaces).\n\n[» API Docs](https://github.com/libp2p/js-interfaces/tree/master/src/crypto#api)\n\n\n## Contribute\n\nFeel free to join in. All welcome. Open an issue!\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)\n\n## License\n\n[MIT](LICENSE)\n","license":"MIT","scripts":{"lint":"aegir lint --ts","test":"aegir test --ts --node true","bench":"node benchmarks/benchmark.js","build":"aegir build --ts","clean":"rm -rf dist","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src","lint:fix":"aegir lint --ts --fix","postbuild":"yarn run copy-dts","proto:gen":"pbjs -t static-module -o ./src/proto/payload.js ./src/proto/payload.proto && pbts -o ./src/proto/payload.d.ts ./src/proto/payload.js && yarn run lint --fix","test:node":"aegir test -t node --ts","test:browser":"aegir test -t browser --node true --ts"},"_npmUser":{"name":"mpetrunic","email":"marin@nodefactory.io"},"keywords":["libp2p","noise","crypto"],"deprecated":"This repository is now being maintained by ChainSafe, and can be found at https://github.com/ChainSafe/js-libp2p-noise under @chainsafe/libp2p-noise","repository":{"url":"git+https://github.com/NodeFactoryIo/js-libp2p-noise.git","type":"git"},"description":"![npm](https://img.shields.io/npm/v/libp2p-noise) [![Build Status](https://travis-ci.com/NodeFactoryIo/js-libp2p-noise.svg?branch=master)](https://travis-ci.com/NodeFactoryIo/js-libp2p-noise)","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2019 NodeFactory\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"name":"mpetrunic","email":"marin@nodefactory.io"}],"resolutions":{"bn.js":"4.4.0"},"dependencies":{"debug":"^4.3.1","buffer":"^5.4.3","bcrypto":"^5.3.0","it-pair":"^1.0.0","it-pipe":"^1.1.0","peer-id":"^0.14.0","it-buffer":"^0.1.1","it-pb-rpc":"^0.1.9","protobufjs":"^6.10.1","uint8arrays":"^2.0.5","libp2p-crypto":"^0.19.0","it-length-prefixed":"^3.0.0"},"eslintConfig":{"rules":{"@typescript-eslint/no-unused-vars":"error"},"extends":"ipfs","ignorePatterns":["src/proto/payload.js"]},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","aegir":"30.3.0","mocha":"^8.2.1","sinon":"^9.2.4","@types/bl":"^2.1.0","benchmark":"^2.1.4","copyfiles":"^2.4.1","microtime":"^3.0.0","@types/chai":"^4.2.4","@types/mocha":"^5.2.7","eslint-config-ipfs":"^0.1.0","karma-mocha-webworker":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/libp2p-noise_2.0.2_1611574281410_0.6198683668608611","host":"s3://npm-registry-packages"},"_id":"libp2p-noise@2.0.2","version":"2.0.2"}