{"_id":"@dexon-foundation/dexon-keyring-controller","_rev":"2-99dfa9ce29282fdbb804acfd67b3e637","name":"@dexon-foundation/dexon-keyring-controller","dist-tags":{"latest":"4.0.0"},"versions":{"4.0.0":{"name":"@dexon-foundation/dexon-keyring-controller","version":"4.0.0","description":"A module for managing various keyrings of DEXON accounts, encrypting them, and using them.","main":"index.js","scripts":{"test":"mocha --require test/helper.js test/index.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/MetaMask/KeyringController.git"},"keywords":["DEXON","DekuSan","accounts","keys"],"author":{"name":"Hsuan Lee"},"license":"ISC","bugs":{"url":"https://github.com/MetaMask/KeyringController/issues"},"homepage":"https://github.com/MetaMask/KeyringController#readme","devDependencies":{"clone":"^2.1.1","eslint-plugin-mocha":"^4.11.0","jsdom":"^11.2.0","jsdom-global":"^3.0.2","mocha":"^5.2.0","mocha-sinon":"^2.0.0","polyfill-crypto.getrandomvalues":"^1.0.0","sinon":"^3.3.0"},"dependencies":{"bip39":"^2.4.0","bluebird":"^3.5.0","browser-passworder":"^2.0.3","eth-hd-keyring":"^2.0.0","eth-sig-util":"^1.4.0","eth-simple-keyring":"^2.0.0","ethereumjs-util":"^5.1.2","loglevel":"^1.5.0","obs-store":"^2.4.1","promise-filter":"^1.1.0"},"gitHead":"b3ee762ca5a558a26afda7c0ffba02836f6efc1e","_id":"@dexon-foundation/dexon-keyring-controller@4.0.0","_npmVersion":"6.4.0","_nodeVersion":"8.11.3","_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"dist":{"integrity":"sha512-i3SvD6wgLMtR8SBzD3/W0k8RofTLB2+NcEF4cglAGpSQZ4daeJtjkv6UrnxmC8HeyG5Rsid5ifd0LV2JtdZTbw==","shasum":"141a9eea688061bc40595dba9f395b439279dd93","tarball":"https://registry.npmjs.org/@dexon-foundation/dexon-keyring-controller/-/dexon-keyring-controller-4.0.0.tgz","fileCount":12,"unpackedSize":40449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcB3cFCRA9TVsSAnZWagAAaAEP/2yDHa6xXLgvqo890xhK\nUUSwffBLgwBKXjI12fdl45JJSTCabliVnmSKe5FRZG73YNT8dkI3r2bbl1kP\nKVg3WovHf5kKaxVbLrfpGef3NiCrUTYOa3EazuKPNw6+OmbIkDKaW0rDroZj\nadnA9o7/tMiWBe5SdJzF1/BocxC6IpljvrJaxaEXn3EB4aOcVhefg7lO0DIF\nQKOLRfEZZoRc9OBkG5ps7s5grsiGmUtPp0XQcqn0l7lrAbdyG99FHfQYncFO\nSrPhGEp3QXhAOHguQOM64jgnE8vByTyzTRrfWAF30L/g3+XMz9ym0c6IpOrq\nH8lSErVnbBlg8ECFFKqui6EaacmAGy7zlfqPKtD35bYtbl0Rbjxo6xgz6G75\n8b20fH/G0cyihTL2y9cII5cvLAboPVgXH28timCAXig23YmIxAvT4XX8tPSm\nQv/54Gd3I6MrvuHxaul0DT6RICtzH5YUZW0VnZV51OJF0KRK4nV8R88FrSUM\ndPheXO32tXm4HI3BpSRGHXF25PupVWM8t5R8myoE2EhXY+yCeW9LSQZViUKO\n6dJXknfT2ry1O1dNELCGMm3/hYVfxUWFMO+f5O8UyOpRxfn8jotAYYForPuq\nFGXyLYHo5Flhuk0cJTM5PSH/zyin47Pu+Fum6dhrXLE05z5AcS78PlaDfRr9\ny9Hq\r\n=jpie\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGc7lCy5O8wZQGyr4Tjx16TpfS8dix2m2EOUaCTggsauAiBuFpyGz0W0IDAjBxP7Vsc9bN/68eYDB6y+yQY0JxS9Tg=="}]},"maintainers":[{"name":"cobinhood-dev","email":"dev@cobinhood.com"},{"name":"boczeratul","email":"boczeratul@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexon-keyring-controller_4.0.0_1543993092716_0.7629614097476689"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-05T06:58:12.549Z","4.0.0":"2018-12-05T06:58:12.939Z","modified":"2022-04-05T04:12:31.768Z"},"maintainers":[{"email":"chaoweichiu@gmail.com","name":"chaoweichiu"},{"email":"dev@cobinhood.com","name":"cobinhood-dev"},{"email":"boczeratul@gmail.com","name":"boczeratul"}],"description":"A module for managing various keyrings of DEXON accounts, encrypting them, and using them.","homepage":"https://github.com/MetaMask/KeyringController#readme","keywords":["DEXON","DekuSan","accounts","keys"],"repository":{"type":"git","url":"git+ssh://git@github.com/MetaMask/KeyringController.git"},"author":{"name":"Hsuan Lee"},"bugs":{"url":"https://github.com/MetaMask/KeyringController/issues"},"license":"ISC","readme":"# Eth Keyring Controller [![CircleCI](https://circleci.com/gh/MetaMask/KeyringController.svg?style=svg)](https://circleci.com/gh/MetaMask/KeyringController)\n\nA module for managing groups of Ethereum accounts called \"Keyrings\", defined originally for MetaMask's multiple-account-type feature.\n\nTo add new account types to a `KeyringController`, just make sure it follows [The Keyring Class Protocol](./docs/keyring.md).\n\nThe KeyringController has three main responsibilities:\n- Initializing & using (signing with) groups of Ethereum accounts (\"keyrings\").\n- Keeping track of local nicknames for those individual accounts.\n- Providing password-encryption persisting & restoring of secret information.\n\n## Installation\n\n`npm install eth-keyring-controller --save`\n\n## Usage\n\n```javascript\nconst KeyringController = require('eth-keyring-controller')\nconst SimpleKeyring = require('eth-simple-keyring')\n\nconst keyringController = new KeyringController({\n  keyringTypes: [SimpleKeyring], // optional array of types to support.\n  initState: initState.KeyringController, // Last emitted persisted state.\n  encryptor: { // An optional object for defining encryption schemes:\n               // Defaults to Browser-native SubtleCrypto.\n    encrypt (password, object) {\n      return new Promise('encrypted!')\n    },\n    decrypt (password, encryptedString) {\n      return new Promise({ foo: 'bar' })\n    },\n  },\n})\n\n// The KeyringController is also an event emitter:\nthis.keyringController.on('newAccount', (address) => {\n  console.log(`New account created: ${address}`)\n})\nthis.keyringController.on('removedAccount', handleThat)\n```\n\n## Methods\n\nCurrently the methods are heavily commented in [the source code](./index.js), so it's the best place to look until we aggregate it here as well.\n\n","readmeFilename":"README.md"}