{"name":"@libp2p/crypto","version":"5.0.1","description":"Crypto primitives for libp2p","license":"Apache-2.0 OR MIT","homepage":"https://github.com/libp2p/js-libp2p/tree/main/packages/crypto#readme","repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p/issues"},"publishConfig":{"access":"public","provenance":true},"keywords":["IPFS","crypto","libp2p","rsa","secp256k1"],"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./src/index.d.ts","import":"./dist/src/index.js"},"./ciphers":{"types":"./dist/src/ciphers/index.d.ts","import":"./dist/src/ciphers/index.js"},"./hmac":{"types":"./dist/src/hmac/index.d.ts","import":"./dist/src/hmac/index.js"},"./keys":{"types":"./dist/src/keys/index.d.ts","import":"./dist/src/keys/index.js"},"./webcrypto":{"types":"./dist/src/webcrypto/index.d.ts","import":"./dist/src/webcrypto/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check","doc-check":"aegir doc-check","build":"aegir build","test":"aegir test","test:chrome":"aegir test -t browser","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:webkit":"aegir test -t browser -- --browser webkit","test:node":"aegir test -t node --cov","test:electron-main":"aegir test -t electron-main","generate":"protons ./src/keys/keys.proto"},"dependencies":{"@libp2p/interface":"^2.0.1","@noble/curves":"^1.4.0","@noble/hashes":"^1.4.0","asn1js":"^3.0.5","multiformats":"^13.1.0","protons-runtime":"^5.4.0","uint8arraylist":"^2.4.8","uint8arrays":"^5.1.0"},"devDependencies":{"@types/mocha":"^10.0.6","aegir":"^44.0.1","benchmark":"^2.1.4","protons":"^7.5.0"},"browser":{"./dist/src/ciphers/aes-gcm.js":"./dist/src/ciphers/aes-gcm.browser.js","./dist/src/hmac/index.js":"./dist/src/hmac/index.browser.js","./dist/src/keys/ecdh/index.js":"./dist/src/keys/ecdh/index.browser.js","./dist/src/keys/ed25519/index.js":"./dist/src/keys/ed25519/index.browser.js","./dist/src/keys/rsa/index.js":"./dist/src/keys/rsa/index.browser.js","./dist/src/keys/secp256k1/index.js":"./dist/src/keys/secp256k1/index.browser.js","./dist/src/webcrypto/webcrypto.js":"./dist/src/webcrypto/webcrypto.browser.js"},"sideEffects":false,"_id":"@libp2p/crypto@5.0.1","gitHead":"62ce7b29e1f7b8ebdcd00c25a099fecfec335197","_nodeVersion":"20.17.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-j7X4ISdWHnIJh752bl70z+3R4LdB8xftFU0ShOuuHg9ETTViHa3O0AK5v1HxyaSXE/uhXhfwjVH3vxn8ECQl/A==","shasum":"1cab80febd95d1393e1dd8ec4596f48a9eb85ffa","tarball":"http://registry-npm.ywwl.com/@libp2p/crypto/download/@libp2p/crypto-5.0.1.tgz","fileCount":176,"unpackedSize":380153,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@libp2p%2fcrypto@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAYhVkMdmZ93KYehLseRAoQRjZkBrme/Ujjhtu3bVEkQIgCG2LK2SnDCi6FQUIsGpNos9C3zfxZ2YLLGn0h8meml4="}],"size":94486,"noattachment":false,"key":"/@libp2p/crypto/-/@libp2p/crypto-5.0.1.tgz"},"_npmUser":{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@ipfs.tech"},"directories":{},"maintainers":[{"name":"jacobheun","email":"jacobheun@gmail.com"},{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@ipfs.tech"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"daviddias","email":"mail@daviddias.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto_5.0.1_1726140549993_0.8251212588026691"},"_hasShrinkwrap":false,"readme":"# @libp2p/crypto\n\n[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)\n[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)\n[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)\n\n> Crypto primitives for libp2p\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nThe `libp2p-crypto` library depends on the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) in the browser. Web Crypto is available in all modern browsers, however browsers restrict its usage to [Secure Contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).\n\n*This means you will not be able to use some `@libp2p/crypto` functions in the browser when the page is served over HTTP.*\n\nTo enable the Web Crypto API and allow `@libp2p/crypto` to work fully, please serve your page over HTTPS.\n\n# Install\n\n```console\n$ npm i @libp2p/crypto\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `Libp2pCrypto` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@libp2p/crypto/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://libp2p.github.io/js-libp2p/modules/_libp2p_crypto.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless 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.\n","publish_time":1726140550280,"_cnpm_publish_time":1726140550280,"dist-tags":{"latest":"5.2.0","next":"5.2.0-228942556"}}