{"name":"ed25519-hd-key","version":"0.5.0","keywords":["ed25519","bip32","slip-0010","crypto","trezor"],"author":{"name":"Aleksey Popov"},"license":"GPL-3","_id":"ed25519-hd-key@0.5.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":"24893bb29c96351538eccce7f36347891025193d","tarball":"http://registry-npm.ywwl.com/ed25519-hd-key/download/ed25519-hd-key-0.5.0.tgz","integrity":"sha512-9qdp38VgtyLHSV3k2ZUZblQAYlnYsS3h0bpkY6dLLutaxFdZHXFN3QfsaOomMi2/v+7Wo/halnUsAg9WAkO9+A==","signatures":[{"sig":"MEUCIQCQ3BCzRzD20CtCMV9/O7zy0QUAihuv9ioMPdgvZ0NMXgIgD5iv7XT8CNHkf3/5U7KcO3w07npl5U0IRImQrzw+tkE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2368,"noattachment":false,"key":"/ed25519-hd-key/-/ed25519-hd-key-0.5.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","_from":".","files":["dist/"],"types":"dist/index.d.ts","_shasum":"24893bb29c96351538eccce7f36347891025193d","gitHead":"0f9e7c4275358324dc89681638fad524b6f6030e","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":"3.10.10","description":"BIP-0032 like derivation for ed25519 curve","directories":{},"_nodeVersion":"6.11.1","dependencies":{"bip39":"^2.4.0","js-nacl":"^1.2.2","create-hmac":"^1.1.6"},"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-0.5.0.tgz_1513286788556_0.0896947996225208","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":1513286789422,"_cnpm_publish_time":1513286789422,"dist-tags":{"latest":"2.0.0"}}