{"name":"ethereumjs-wallet","version":"1.0.1","description":"Utilities for handling Ethereum keys","main":"dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"ethereumjs-config-build","prepublishOnly":"","docs:build":"typedoc --out docs --mode file --readme none --theme markdown --mdEngine github --excludeNotExported src","coverage":"ethereumjs-config-coverage","format":"ethereumjs-config-format","format:fix":"ethereumjs-config-format-fix","lint":"ethereumjs-config-lint","lint:fix":"ethereumjs-config-lint-fix","test":"npm run build && nyc --reporter=lcov mocha --require ts-node/register --require source-map-support/register ./test/**/*.ts","test:browser":"karma start karma.conf.js","tsc":"ethereumjs-config-tsc","tslint":"ethereumjs-config-tslint","tslint:fix":"ethereumjs-config-tslint-fix"},"husky":{"hooks":{"pre-push":"npm run lint"}},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-wallet.git"},"keywords":["ethereum","wallets","keys"],"author":{"name":"Alex Beregszaszi","email":"alex@rtfs.hu"},"license":"MIT","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-wallet/issues"},"homepage":"https://github.com/ethereumjs/ethereumjs-wallet","dependencies":{"aes-js":"^3.1.1","bs58check":"^2.1.2","ethereum-cryptography":"^0.1.3","ethereumjs-util":"^7.0.2","randombytes":"^2.0.6","scrypt-js":"^3.0.1","utf8":"^3.0.0","uuid":"^3.3.2"},"devDependencies":{"@ethereumjs/config-nyc":"^1.1.1","@ethereumjs/config-prettier":"^1.1.1","@ethereumjs/config-tsc":"^1.1.1","@ethereumjs/config-tslint":"^1.1.1","@types/bn.js":"^4.11.5","@types/lodash.zip":"^4.2.6","@types/mocha":"^5.2.7","@types/node":"^12.0.10","ethers":"^4.0.33","husky":"^2.1.0","karma":"^5.0.2","karma-chrome-launcher":"^2.0.0","karma-firefox-launcher":"^1.0.0","karma-mocha":"^2.0.0","karma-typescript":"^5.0.2","lodash.zip":"^4.2.0","mocha":"^7.1.2","nyc":"^15.0.1","prettier":"^1.15.3","source-map-support":"^0.5.12","ts-node":"^8.9.1","tslint":"^5.12.0","typedoc":"^0.14.2","typedoc-plugin-markdown":"^1.2.0","typescript":"^3.8.3","typestrict":"^1.0.2"},"gitHead":"0d81c40d57f5a599eaee1159c29fdb0e1f94a771","_id":"ethereumjs-wallet@1.0.1","_nodeVersion":"12.15.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3Z5g1hG1das0JWU6cQ9HWWTY2nt9nXCcwj7eXVNAHKbo00XAZO8+NHlwdgXDWrL0SXVQMvTWN8Q/82DRH/JhPw==","shasum":"664a4bcacfc1291ca2703de066df1178938dba1c","tarball":"http://registry-npm.ywwl.com/ethereumjs-wallet/download/ethereumjs-wallet-1.0.1.tgz","fileCount":13,"unpackedSize":84785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbKkFCRA9TVsSAnZWagAA5/sP/jeSbCSxcDwGiH70LBMd\nph9WFdTM6wKNhUIvfLFqG4qD1MUDgIQSs5b1OUWIcnIumftlIGYI5P1JE2Bc\n8DN1Wnqp9eh9kO2s8IKhWyHM1yEfZL+m5h5mmerp052gJ+ec8Sa0DtswRzGx\nDuuRudlV1FL0vZlVAKv+IZEFsI3qD2U3j8Ue+DRbKrONNvLPN3wfqqA/HYuW\nUsDotIATHrYDakvp2RwFtGufHwdTvFjLg9TxmnfzncJhlD8LalZZtKruHXel\n+f7Yxy3Arvk3047QeVi4/WK9a97R5+1hojDORAj3lPLfWPBuTIQwZoSqmxqO\noyTW+SsAvr93MGJCF1HeotihgzIX4Tjop3XZpTZbdt527+0ixUqesUN84sCs\nyHw7Zkn6/Co2AUJ1sdYlZHuERC5/NlV8QSe0I678/HLXoYgY0EVry6atdceK\nstQts1ViSJiuoZ3mrdCZj3fDwyW8mRzKM4ho+puGf8pNtHtVATR6cvAXsDfE\n+zzGVqKPr98yDaLOBsIg5Ybn5+H/F3vg5Rab5hSMTS2eoAWxREz57VnD1RX3\n3BMB6a/oJmq1OydmbNNBnRjMqRECRNGaENiMxJhlA9i/0BSk4Wf+RGbghL0f\ncJ2zZzhdZQrh+7j5C8ePM8fAyhwSwDO0tf3rzKMB+lHjmudoVu3S2o6w4V7s\ng4GX\r\n=xyVV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEnC4AWIeSEgQS6/3WFOF3zZVM5kKCayDj1/YmyJfs56AiAqW5eKtg7VJezlSm4grZs44AUXoPOPZfQE7xJuJ7HH7Q=="}],"size":21832,"noattachment":false,"key":"/ethereumjs-wallet/-/ethereumjs-wallet-1.0.1.tgz"},"maintainers":[{"name":"axic","email":"alex@rtfs.hu"},{"name":"holgerd77","email":"Holger.Drewes@gmail.com"}],"_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereumjs-wallet_1.0.1_1600956676819_0.3664204660383339"},"_hasShrinkwrap":false,"readme":"# ethereumjs-wallet\n\n[![NPM Package][npm-badge]][npm-link]\n[![Actions Status][actions-badge]][actions-link]\n[![Coverage Status][coverage-badge]][coverage-link]\n[![Discord][discord-badge]][discord-link]\n\nA lightweight wallet implementation. At the moment it supports key creation and conversion between various formats.\n\nIt is complemented by the following packages:\n\n- [@ethereumjs/tx](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/tx) to sign transactions\n- [ethereumjs-icap](https://github.com/ethereumjs/ethereumjs-icap) to manipulate ICAP addresses\n- [store.js](https://github.com/marcuswestin/store.js) to use browser storage\n\nMotivations are:\n\n- be lightweight\n- work in a browser\n- use a single, maintained version of crypto library (and that should be in line with [`ethereumjs-util`](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/util) and `@ethereumjs/tx`)\n- support import/export between various wallet formats\n- support BIP32 HD keys\n\nFeatures not supported:\n\n- signing transactions\n- managing storage (neither in node.js or the browser)\n\n## Wallet API\n\nFor information about the Wallet's API, please go to [./docs/classes/wallet.md](./docs/classes/wallet.md).\n\nYou can import the `Wallet` class like this\n\nNode.js / ES5:\n\n```js\nconst Wallet = require('ethereumjs-wallet').default\n```\n\nESM / TypeScript:\n\n```js\nimport Wallet from 'ethereumjs-wallet'\n```\n\n## Thirdparty API\n\nImporting various third party wallets is possible through the `thirdparty` submodule:\n\nNode.js / ES5:\n\n```js\nconst { thirdparty } = require('ethereumjs-wallet')\n```\n\nESM / TypeScript:\n\n```js\nimport { thirdparty } from 'ethereumjs-wallet'\n```\n\nPlease go to [./docs/README.md](./docs/README.md) for more info.\n\n## HD Wallet API\n\nTo use BIP32 HD wallets, first include the `hdkey` submodule:\n\nNode.js / ES5:\n\n```js\nconst { hdkey } = require('ethereumjs-wallet')\n```\n\nESM / TypeScript:\n\n```js\nimport { hdkey } from 'ethereumjs-wallet'\n```\n\nPlease go to [./docs/classes/ethereumhdkey.md](./docs/classes/ethereumhdkey.md) for more info.\n\n## Provider Engine\n\nProvider Engine is\n[not very actively maintained](https://github.com/MetaMask/web3-provider-engine#web3-providerengine)\nand support has been removed along `v1.0.0` release, see\nissue [#115](https://github.com/ethereumjs/ethereumjs-wallet/issues/115) for context.\n\nYou can use the the old `src/provider-engine.ts` code (see associated PR) as some boilerplate\nfor your own integration if needed.\n\n## Remarks about `toV3`\n\nThe `options` is an optional object hash, where all the serialization parameters can be fine tuned:\n\n- uuid - UUID. One is randomly generated.\n- salt - Random salt for the `kdf`. Size must match the requirements of the KDF (key derivation function). Random number generated via `crypto.getRandomBytes` if nothing is supplied.\n- iv - Initialization vector for the `cipher`. Size must match the requirements of the cipher. Random number generated via `crypto.getRandomBytes` if nothing is supplied.\n- kdf - The key derivation function, see below.\n- dklen - Derived key length. For certain `cipher` settings, this must match the block sizes of those.\n- cipher - The cipher to use. Names must match those of supported by `OpenSSL`, e.g. `aes-128-ctr` or `aes-128-cbc`.\n\nDepending on the `kdf` selected, the following options are available too.\n\nFor `pbkdf2`:\n\n- `c` - Number of iterations. Defaults to 262144.\n- `prf` - The only supported (and default) value is `hmac-sha256`. So no point changing it.\n\nFor `scrypt`:\n\n- `n` - Iteration count. Defaults to 262144.\n- `r` - Block size for the underlying hash. Defaults to 8.\n- `p` - Parallelization factor. Defaults to 1.\n\nThe following settings are favoured by the Go Ethereum implementation and we default to the same:\n\n- `kdf`: `scrypt`\n- `dklen`: `32`\n- `n`: `262144`\n- `r`: `8`\n- `p`: `1`\n- `cipher`: `aes-128-ctr`\n\n# EthereumJS\n\nSee our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices.\n\nIf you want to join for work or do improvements on the libraries have a look at our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html).\n\n## License\n\nMIT License\n\nCopyright (C) 2016 Alex Beregszaszi\n\n[actions-badge]: https://github.com/ethereumjs/ethereumjs-wallet/workflows/Build/badge.svg\n[actions-link]: https://github.com/ethereumjs/ethereumjs-wallet/actions\n[coverage-badge]: https://img.shields.io/coveralls/ethereumjs/ethereumjs-wallet.svg\n[coverage-link]: https://coveralls.io/r/ethereumjs/ethereumjs-wallet\n[discord-badge]: https://img.shields.io/static/v1?logo=discord&label=discord&message=Join&color=blue\n[discord-link]: https://discord.gg/TNwARpR\n[npm-badge]: https://img.shields.io/npm/v/ethereumjs-wallet.svg\n[npm-link]: https://www.npmjs.org/package/ethereumjs-wallet\n","publish_time":1600956677010,"deprecated":"New package name format for new versions: @ethereumjs/wallet. Please update.","_cnpm_publish_time":1600956677010,"dist-tags":{"latest":"1.0.2","v065":"0.6.5"}}