{"name":"@libp2p/crypto","version":"1.0.13","keywords":["IPFS","crypto","libp2p","rsa","secp256k1"],"license":"Apache-2.0 OR MIT","_id":"@libp2p/crypto@1.0.13","homepage":"https://github.com/libp2p/js-libp2p-crypto#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p-crypto/issues"},"dist":{"shasum":"e558fd9f497f21bba434a1f24364fc4816ea3208","tarball":"http://registry-npm.ywwl.com/@libp2p/crypto/download/@libp2p/crypto-1.0.13.tgz","fileCount":176,"integrity":"sha512-BI6Z+xzZXIdcUzvHkGyTnYjV+PHFc5CUvwjxKEtFwWJ9InG0fogJiZtNg3LDMd5LcVGkA1i8ySaNZYmfYGaUUw==","signatures":[{"sig":"MEYCIQCGAMXOi7h2XdpjFM/CbbV+k4pMFxuoAhMlRUGdheMsXgIhALVegEGz2mvetub49/fRB8wKG+lINhD39xomqk2BNves","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":476590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCv8WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojbw//To80hDBJKZsk/lglg6MdvHOdMtrXBUT6LSYJghrZOlzjXv2w\r\nbLx6Yy3tKmcb+Yx/g3zoN+uWCQOC1Zk4Hss8lv1fYhQRe1K1s/CA5SDwGpjH\r\nMi4kDhH52zOsKaj+qesq6TnBZYQ4asOSgvvqHFzZuwHubZprQxuDdaCnFTAe\r\nfNYpm1mCxUA/vFinvUts6JLza87Bkd6PM5EEsCIdVEb89KK7qt2IN7vnrKRX\r\nkn3jA5OChIoh2NtBUTDEULLt0VuBbfzCU5BNCBpPk84TJpSx2W95s0rIzAk0\r\nRbYIg3/Gu4akp7PdeOSmGJggEEyNvzhU6LCK0uvoGczLSa9rESyzZGVAFnPy\r\n6VrHYPQfOqGVlCTQwrrqqjxbvFQtHRR4AZdB3pgRXy3EUpMUlVEiHrftzL7X\r\nkVQaeXgpBD1BhJW9F/z1EmqTPLLyvMfOpwor+TenKDjmY20HRY3K7zqJsr1/\r\n1EcCdOBj9JRdizf8LOoO72GYl0ztCy9tFpaJndI9ERVHh55iiCIzTA03AkaV\r\nDb+LA6B7Uhqrma+2THNxMCGwOmDxsYKAi9Bsx+XCNKLp31W9dS3BUEDy0YD7\r\nfAyCDvHGF4O5Dyem5U0iIiyPw7UYuz9gvHphVK8VY91et2yOEkf2XubZhPIJ\r\naV5qUGl9PJ/PSTDGhw7gqb1g6DJ7I0rXIVs=\r\n=6W8L\r\n-----END PGP SIGNATURE-----\r\n","size":120880,"noattachment":false,"key":"/@libp2p/crypto/-/@libp2p/crypto-1.0.13.tgz"},"type":"module","types":"./dist/src/index.d.ts","browser":{"./dist/src/keys/rsa.js":"./dist/src/keys/rsa-browser.js","./dist/src/keys/ecdh.js":"./dist/src/keys/ecdh-browser.js","./dist/src/hmac/index.js":"./dist/src/hmac/index-browser.js","./dist/src/aes/ciphers.js":"./dist/src/aes/ciphers-browser.js","./dist/src/keys/ed25519.js":"./dist/src/keys/ed25519-browser.js","./dist/src/ciphers/aes-gcm.js":"./dist/src/ciphers/aes-gcm.browser.js"},"engines":{"npm":">=7.0.0","node":">=16.0.0"},"exports":{".":{"types":"./src/index.d.ts","import":"./dist/src/index.js"},"./aes":{"types":"./dist/src/aes/index.d.ts","import":"./dist/src/aes/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"},"./ciphers":{"types":"./dist/src/ciphers/index.d.ts","import":"./dist/src/ciphers/index.js"}},"gitHead":"5a3b5f6d54def8a375f4dc3ed556401dfce76689","release":{"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"release":"major","breaking":true},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"],"branches":["master"]},"scripts":{"docs":"aegir docs","lint":"aegir lint","test":"aegir test","build":"aegir build","clean":"aegir clean","release":"aegir release","generate":"protons ./src/keys/keys.proto","dep-check":"aegir dep-check -i protons","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","test:chrome-webworker":"aegir test -t webworker","test:firefox-webworker":"aegir test -t webworker -- --browser firefox"},"_npmUser":{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@protocol.ai"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p-crypto.git","type":"git"},"_npmVersion":"8.19.4","description":"Crypto primitives for libp2p","directories":{},"_nodeVersion":"18.14.2","dependencies":{"node-forge":"^1.1.0","uint8arrays":"^4.0.2","multiformats":"^11.0.0","@noble/ed25519":"^1.6.0","uint8arraylist":"^2.4.3","protons-runtime":"^4.0.1","@noble/secp256k1":"^1.5.4","@libp2p/interfaces":"^3.2.0","@libp2p/interface-keys":"^1.0.2"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"},"ignorePatterns":["src/*.d.ts"]},"typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"_hasShrinkwrap":false,"devDependencies":{"util":"^0.12.5","aegir":"^38.1.2","benchmark":"^2.1.4","@types/mocha":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/crypto_1.0.13_1678442262465_0.5956291472759248","host":"s3://npm-registry-packages"},"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":1678442262630,"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"}],"_cnpm_publish_time":1678442262630,"dist-tags":{"latest":"5.2.0","next":"5.2.0-228942556"}}