{"_id":"libp2p-peer-id-factory","_rev":"2-545474c7c59314ab6b6187917d077fcb","name":"libp2p-peer-id-factory","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"libp2p-peer-id-factory","version":"0.2.0","description":"IPFS Peer Id implementation in Node.js","type":"module","types":"./dist/src/index.d.ts","exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"}},"typesVersions":{"*":{"src/*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"},"ignorePatterns":["proto.d.ts"]},"scripts":{"pretest":"npm run build","test":"aegir test -f ./dist/test/*.js","test:browser":"aegir test -t browser -f ./dist/test/*.js","test:node":"aegir test -t node -f ./dist/test/*.js","test:electron":"aegir test -t electron-main -f ./dist/test/*.js","lint":"aegir ts -p check && aegir lint","release":"aegir release --docs","release-minor":"aegir release --target node --type minor --docs","release-major":"aegir release --type major --docs","build":"tsc","build:proto":"npm run build:proto:js && npm run build:proto:types","build:proto:js":"pbjs -t static-module -w es6 --es6 -r libp2p-peer-id --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/proto.js ./src/proto.proto","build:proto:types":"pbts -o src/proto.d.ts src/proto.js","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js"},"keywords":["IPFS"],"license":"MIT","engines":{"node":">=15.0.0"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id-factory#readme","devDependencies":{"aegir":"^36.0.1","util":"^0.12.3"},"dependencies":{"libp2p-crypto":"^0.21.0","libp2p-interfaces":"^3.1.0","libp2p-peer-id":"^0.2.0","multiformats":"^9.4.5","protobufjs":"^6.10.2","uint8arrays":"^3.0.0"},"gitHead":"befb411101eae7eb3711405cec0c1b74a2487e33","_id":"libp2p-peer-id-factory@0.2.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"integrity":"sha512-l22T+wQAJUQlYyKLVXmibFYCfj4nECm1FdMx+zRGuXxG2PsNAkyD/59Uphu4IXvhG/uY00VF4mUV2p/Ui6t2og==","shasum":"2a05f85394caaef525cd6b6b553ed8c0e5219855","tarball":"https://registry.npmjs.org/libp2p-peer-id-factory/-/libp2p-peer-id-factory-0.2.0.tgz","fileCount":15,"unpackedSize":39901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0VzcCRA9TVsSAnZWagAAq5UP/2zUlhTg0CCWgtRdRN5j\nXNT1ZgrbS+wl847dx0z0D6GuA3kOgnNLXltdUGwN+kj5/Vj4WwwXBSjvC5O/\n2j0hc0UUPK0dZxH+Nn9gFhz/qnur28OQD+s+n1+LcsJJBXyXKRUcUu6kD+Sq\nmPIDj5JS/0+Pxwo4G4bRJSdirQLuLR9/P2Fx0gdPooAj7icJ22AI4YntHWVp\nQwlKgeC0itYwG0/AW5WYs25kKT8cFx/uaC0Ody/WZxHziJktlu5uYeOHdQ/j\nFuAh8oB9mB7e1ClN4AvhLCG4w9wnGz5OwisAtBzeqhU5egr1fhol5M2uYHQF\nF6JUFXFteSRcCVD8vYX0M/EcxKnnMbJK5rn9pWV4qsZ0y/Rq1i6NMFptmmEh\nUJ4fk6xfHjEwHw8uNICLTsScVmT/PqEwx3uBReLffDXIB2P6mSEwxk/G5b+2\n1L6uX0hxU5CBuEzs9jehENoAiPRevBOKuiodBlgWwooefPgbSOOs0VFEmVE4\nv7vVzNBLo+LqZRXIfCKDelNrdnvUj11cgsO4+REIGA8CtRal/b/97PWjXXtu\nioikLCrpCOLlQUa/Hsr8Z4DGVAB27whPaAcvBWVjWke554kB6Tt4q0crPwEq\nQRcbhKnlnMY/eM+EOFNiDhoxgP6WtZQmitJ+KB7szbh+ZknR0XpWPAhuaWUO\nhscy\r\n=cpyY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBcX6osRUgUMolYvoeaLbJbZl+qXxq51XeTNcp/WROCAiEAglvVLgTVlJSNIoSCY7WV36RfXmcCQ3TIiiGNR9lqXKA="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-peer-id-factory_0.2.0_1641110748565_0.9935286154316854"},"_hasShrinkwrap":false},"0.2.1":{"name":"libp2p-peer-id-factory","version":"0.2.1","description":"IPFS Peer Id implementation in Node.js","type":"module","types":"./dist/src/index.d.ts","exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"}},"typesVersions":{"*":{"src/*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"},"ignorePatterns":["proto.d.ts"]},"scripts":{"pretest":"npm run build","test":"aegir test -f ./dist/test/*.js","test:browser":"aegir test -t browser -f ./dist/test/*.js","test:node":"aegir test -t node -f ./dist/test/*.js","test:electron":"aegir test -t electron-main -f ./dist/test/*.js","lint":"aegir ts -p check && aegir lint","release":"aegir release --docs","release-minor":"aegir release --target node --type minor --docs","release-major":"aegir release --type major --docs","build":"tsc","build:proto":"npm run build:proto:js && npm run build:proto:types","build:proto:js":"pbjs -t static-module -w es6 --es6 -r libp2p-peer-id --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/proto.js ./src/proto.proto","build:proto:types":"pbts -o src/proto.d.ts src/proto.js","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js"},"keywords":["IPFS"],"license":"MIT","engines":{"node":">=15.0.0"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id-factory#readme","devDependencies":{"aegir":"^36.0.1","util":"^0.12.3"},"dependencies":{"libp2p-crypto":"^0.21.0","libp2p-interfaces":"^3.1.1","libp2p-peer-id":"^0.2.0","multiformats":"^9.4.5","protobufjs":"^6.10.2","uint8arrays":"^3.0.0"},"gitHead":"d9c20773f1b391b9f8045ac8e36d75e843e0763a","_id":"libp2p-peer-id-factory@0.2.1","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"integrity":"sha512-oc/rS6f4od45n3lt1seZTHpe07QP1AObLbJHnGOri4tUABM7Vq4EEh6xnAnRy+Yg3KVJl3kyILd6Vv18jLMacw==","shasum":"fa544f0f78de3ed972d323f49e7b14d6dc39fa8f","tarball":"https://registry.npmjs.org/libp2p-peer-id-factory/-/libp2p-peer-id-factory-0.2.1.tgz","fileCount":15,"unpackedSize":39901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0csNCRA9TVsSAnZWagAA+NMP+wToz6J3OOUOHb1QLYxd\nfsggRUJwMU7J1HPVYeeWloN3eBTOkAUYC42MITVxsQlABOSJBTZ7UkZC5GNd\n1fGdeCnGvO5h+oI6WV3eQ5CxQ0rL98r2Lq/dJJf6P5EEnKf5mTBPpJ5q7RbP\n3F64twih1aDU3iS3kZRHEkcWGiABoWEFF3eTh8Phc2MOW1G8yCV44C70Gou2\nhQs4asnbitjXtprcEIc+Ed1VlwFak5UaTsCk81kDeBAlfe4ayRbnGsVM1k0O\napu1nY0vaznXF+2ebBJhZEZFWphZfC23p3grAEEP61vMt1fnL/1eyACWza89\nFymez2RSWhsdgcY+Md25vFQ+O08XWylfqJkF4BUHza6tdps4lqYD1FuSpigF\nysxpzP4rS6ZZzeheIYAl1gsvXO2ipF/sySlOn/V8rdARCNO2slMKumznrV+k\nlTX/lZ72Z4fl4qkGpxCjguQ9Qmu3HDOFPdgyxcwEzsfznHY48mM4GdFkPdPD\nY2IX0pMX4KVAG1dnqK7vLpFoE8GQB4Y2wbjs8w/JX8StO5TiQLvm/Ah/wBDH\nsLpL3xEvS2/EXrSMcPSy+AznzAVSDlhmPvtlydu78MLX4lpJ+JiFgbQiHjW7\n1piXTA4cXZXFOd7vQYNaI1Ni+fKCECltNkNGgQvEvGVOUWrSMRT1O61MA3L8\n4oiz\r\n=1KPM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOqgTnewYfgXmDQKNnLSgpY3VtEm+8Y7sw9aE11AB9hgIgF4C7OSxo87k6OQBjz4hZpJKQ7P8iEf5Ep7cAeAL7WYU="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-peer-id-factory_0.2.1_1641138957789_0.7405215672551"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-02T08:05:48.564Z","0.2.0":"2022-01-02T08:05:48.700Z","modified":"2022-05-07T23:13:37.240Z","0.2.1":"2022-01-02T15:55:57.961Z"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"description":"IPFS Peer Id implementation in Node.js","homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id-factory#readme","keywords":["IPFS"],"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"license":"MIT","readme":"# libp2p-peer-id-factory <!-- omit in toc -->\n\n> create peer-ids in JavaScript\n\n## Table of Contents <!-- omit in toc -->\n\n- [Description](#description)\n- [Example](#example)\n- [Installation](#installation)\n  - [License](#license)\n    - [Contribution](#contribution)\n\n# Description\n\nGenerate, import, and export PeerIDs, for use with [IPFS](https://github.com/ipfs/ipfs).\n\nA Peer ID is the SHA-256 [multihash](https://github.com/multiformats/multihash) of a public key.\n\nThe public key is a base64 encoded string of a protobuf containing an RSA DER buffer. This uses a node buffer to pass the base64 encoded public key protobuf to the multihash for ID generation.\n\n# Example\n\n```JavaScript\nimport { createEd25519PeerId } from 'libp2p-peer-id-factory'\n\nconst peerId = await createEd25519PeerId()\nconsole.log(id.toString())\n```\n\n```bash\n12D3KooWRm8J3iL796zPFi2EtGGtUJn58AG67gcqzMFHZnnsTzqD\n```\n\n# Installation\n\n```console\n$ npm i libp2p-peer-id-factory\n```\n\n## License\n\nLicensed under either of\n\n * Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0)\n * MIT ([LICENSE-MIT](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","readmeFilename":"README.md"}