{"name":"ed25519-hd-key","version":"1.0.0","keywords":["ed25519","bip32","slip-0010","crypto","trezor"],"author":{"name":"Aleksey Popov"},"license":"GPL-3","_id":"ed25519-hd-key@1.0.0","maintainers":[{"name":"alepop","email":"alepooop@gmail.com"}],"homepage":"https://github.com/alepop/ed25519-hd-key","bugs":{"url":"https://github.com/alepop/ed25519-hd-key/issues"},"dist":{"shasum":"49a7b834cf7ddd65b2a428b2d3b6a924bcc610ea","tarball":"http://registry-npm.ywwl.com/ed25519-hd-key/download/ed25519-hd-key-1.0.0.tgz","fileCount":6,"integrity":"sha512-PbL2RemtcV6UzhJv9lCAFraa3V/M8mxlRJlJeqpaRDtFaHObt43x6nIm8/NMc0Wc70NHee4K9x4V9H5T+MM69Q==","signatures":[{"sig":"MEQCIBTFIMPy7DWc65ZrGIZs0ur71JHeZR+VKK16J3bf+8nDAiB1ORcKYjD20kh0k9QLb/ZIuk5izw/gbUK6YSWYpjT8aA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5421,"size":2400,"noattachment":false,"key":"/ed25519-hd-key/-/ed25519-hd-key-1.0.0.tgz"},"jest":{"globals":{"window":{},"ts-jest":{"tsConfigFile":"./tsconfig.json"}},"verbose":true,"testRegex":"(/spec/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"./node_modules/ts-jest/preprocessor.js"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/index.js","files":["dist/"],"types":"dist/index.d.ts","gitHead":"d8071c734adab35a02a2d8ca05ab5afa2bf6d956","scripts":{"test":"jest","build":"tsc -p ./"},"_npmUser":{"name":"alepop","email":"alepooop@gmail.com"},"repository":{"url":"git://github.com/alepop/ed25519-hd-key.git","type":"git"},"_npmVersion":"5.3.0","description":"BIP-0032 like derivation for ed25519 curve","directories":{},"_nodeVersion":"8.6.0","dependencies":{"bip39":"^2.4.0","js-nacl":"^1.2.2","create-hmac":"^1.1.6"},"_hasShrinkwrap":false,"devDependencies":{"ts-jest":"^21.2.4","jest-cli":"^21.2.1","typescript":"^2.6.2","@types/jest":"^21.1.8","@types/node":"^8.5.1"},"_npmOperationalInternal":{"tmp":"tmp/ed25519-hd-key_1.0.0_1521642162087_0.5141487035117782","host":"s3://npm-registry-packages"},"readme":"[![BuyMeACoffee](https://raw.githubusercontent.com/pachadotdev/buymeacoffee-badges/main/bmc-yellow.svg)](https://www.buymeacoffee.com/alepop)\n[![codecov](https://codecov.io/gh/alepop/ed25519-hd-key/branch/master/graph/badge.svg)](https://codecov.io/gh/alepop/ed25519-hd-key)\n\ned25519 HD Key\n=====\n\nVersion 2.0.0\n------------\n\nI've rebuilt the library from the ground up for version 2.0.0. It now uses `@noble/ed25519` and `@noble/hashes`. These libraries are faster, audited, and cleaner.\n\nIf you need to use `tweetnacl`, you can stick with version 1.3.0.\n\nKey Derivation for `ed25519`\n------------\n\n\n[SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md) - Specification\n\nInstallation\n------------\n\n    npm i --save ed25519-hd-key\n\n\nUsage\n-----\n\n**example:**\n\n```js\nconst { derivePath, getMasterKeyFromSeed, getPublicKey } = require('ed25519-hd-key')\nconst hexSeed = 'fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542';\n\nconst { key, chainCode } = getMasterKeyFromSeed(hexSeed);\nconsole.log(key.toString('hex'))\n// => 2b4be7f19ee27bbf30c667b642d5f4aa69fd169872f8fc3059c08ebae2eb19e7\nconsole.log(chainCode.toString('hex'));\n// => 90046a93de5380a72b5e45010748567d5ea02bbf6522f979e05c0d8d8ca9fffb\n\nconst { key, chainCode} = derivePath(\"m/0'/2147483647'\", hexSeed);\n\nconsole.log(key.toString('hex'))\n// => ea4f5bfe8694d8bb74b7b59404632fd5968b774ed545e810de9c32a4fb4192f4\nconsole.log(chainCode.toString('hex'));\n// => 138f0b2551bcafeca6ff2aa88ba8ed0ed8de070841f0c4ef0165df8181eaad7f\n\nconsole.log(getPublicKey(key).toString('hex'))\n// => 005ba3b9ac6e90e83effcd25ac4e58a1365a9e35a3d3ae5eb07b9e4d90bcf7506d\n```\nTests\n-----\n```\nnpm test\n```\n\nReferences\n----------\n[SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md)\n\n[BIP-0032](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)\n\n[BIP-0044](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)\n","publish_time":1521642162153,"_cnpm_publish_time":1521642162153,"dist-tags":{"latest":"2.0.0"}}