{"_id":"@alayanetwork/eth-keyring-controller","_rev":"3-c9672f39a77170567934cdbc17b54b13","name":"@alayanetwork/eth-keyring-controller","dist-tags":{"latest":"6.1.2"},"versions":{"6.1.0":{"name":"@alayanetwork/eth-keyring-controller","version":"6.1.0","description":"A module for managing various keyrings of PlatON accounts, encrypting them, and using them.","main":"index.js","scripts":{"test":"mocha --timeout 10000 --require test/helper.js test/index.js","lint":"eslint . --ext js,json","lint:fix":"eslint . --ext js,json --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/AlayaNetwork/samurai-KeyringController.git"},"keywords":["platon","samurai","accounts","keys"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","bugs":{"url":"https://github.com/AlayaNetwork/samurai-KeyringController/issues"},"homepage":"https://github.com/AlayaNetwork/samurai-KeyringController#readme","devDependencies":{"@babel/core":"^7.8.7","@metamask/eslint-config":"^2.1.0","clone":"^2.1.1","eslint":"^6.8.0","eslint-plugin-import":"^2.20.1","eslint-plugin-json":"^2.1.1","eslint-plugin-mocha":"^6.0.0","ethereumjs-wallet":"^0.6.3","jsdom":"^11.12.0","jsdom-global":"^3.0.2","mocha":"^7.1.2","polyfill-crypto.getrandomvalues":"^1.0.0","sinon":"^7.2.7"},"dependencies":{"bip39":"^2.4.0","bluebird":"^3.5.0","browser-passworder":"^2.0.3","@alayanetwork/eth-hd-keyring":"^3.5.0","@alayanetwork/eth-sig-util":"^2.5.3","@alayanetwork/eth-simple-keyring":"^4.0.0","@alayanetwork/ethereumjs-util":"^5.2.0","loglevel":"^1.5.0","obs-store":"^4.0.3"},"gitHead":"6e77416a4e0c79c054dfe3edfebfd4d670574a29","_id":"@alayanetwork/eth-keyring-controller@6.1.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-v0HDoWB9qekBhuwxWv+maLvT+TS0I01+Nf+d3YC3dwro1e0E0/++virBuMGCJb9Fp/Gmk1IaQWvzByrGJZJdUw==","shasum":"ae2a241db7c00808b3dc8b948cc717bd35942cd2","tarball":"https://registry.npmjs.org/@alayanetwork/eth-keyring-controller/-/eth-keyring-controller-6.1.0.tgz","fileCount":4,"unpackedSize":27156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo2NkCRA9TVsSAnZWagAAV2oQAINlyvJnf5LJIpfhPTqi\nGAZyQq6sIImCat5+vts9yZ6oD0674/gBpk3FLM5ZMxQyzvIEQBNVkvF/3Yjy\n3cx9GJG4BY0UKfXv9N6A9JqB+Y4DswVl44qdYrZNSEti75InC4Zc0dRM15yK\n0paBBJFBQ+wQ1El5MEPHCWGVg2SpVf4LTROi6CyK1zXhXdZ75qF61FpUwyNt\nWrlP94FoWA9J0ot7Tcx+HDTUhHGMCqb0L41UrU6DgQZV0wvwlvtbBvmE2Fjh\n45veawQxcQyCCTtfvHEVuxQK6hkVhNHdhzdYXDweMnddlwqH8jPBKzqTFpqu\n+exyNEXwNDxdKXjBI0wvNfmy3IQVas/LhYRMHKC/KlA4+B1zLwQ+HVnnQRmq\ncaeNTEDZ6TyKwxTA3P5y1YJO5BDa1iEzhMKV1+R5HxmF6LlzBOJ/aTcvO+WK\nBanVtDpId/ewxAoDPEWR1vTlVdVo1+SQMnTIg7QI8i/3Uhn0Ivl8HFtQ1Ur1\n3K+7Foks3x6u9PuGhjMEbqD8aUaq0cUkkC1ecYE/yLc3viUosJNVxMqu9p9B\nOfdIMU7j1d8bPt1FexWl/G9Ma5hpbQN0fCKiTHAmMwPtMbn/2cpAx3m/xT90\nz4heM+M1CaBmOAUbysUWuq5i5WDe0wT8nI9N6PLQcN55L1NW4PNBlVZ32V2a\nr/P0\r\n=4Imm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ55oRJ3Ax/iuqCPb8sQonMwQK92QceOtq54zZ7qgXxQIgIW4hsjRpOXyn27G4fcDnm5vw7Ii5kdLxq6mw6Gy0qXM="}]},"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eth-keyring-controller_6.1.0_1604543331834_0.7368213105885344"},"_hasShrinkwrap":false},"6.1.1":{"name":"@alayanetwork/eth-keyring-controller","version":"6.1.1","description":"A module for managing various keyrings of PlatON accounts, encrypting them, and using them.","main":"index.js","scripts":{"test":"mocha --timeout 10000 --require test/helper.js test/index.js","lint":"eslint . --ext js,json","lint:fix":"eslint . --ext js,json --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/AlayaNetwork/samurai-KeyringController.git"},"keywords":["platon","samurai","accounts","keys"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","bugs":{"url":"https://github.com/AlayaNetwork/samurai-KeyringController/issues"},"homepage":"https://github.com/AlayaNetwork/samurai-KeyringController#readme","devDependencies":{"@babel/core":"^7.8.7","@metamask/eslint-config":"^2.1.0","clone":"^2.1.1","eslint":"^6.8.0","eslint-plugin-import":"^2.20.1","eslint-plugin-json":"^2.1.1","eslint-plugin-mocha":"^6.0.0","ethereumjs-wallet":"^0.6.3","jsdom":"^11.12.0","jsdom-global":"^3.0.2","mocha":"^7.1.2","polyfill-crypto.getrandomvalues":"^1.0.0","sinon":"^7.2.7"},"dependencies":{"bip39":"^2.4.0","bluebird":"^3.5.0","browser-passworder":"^2.0.3","@alayanetwork/eth-hd-keyring":"^3.5.0","@alayanetwork/eth-sig-util":"^2.5.3","@alayanetwork/eth-simple-keyring":"^4.0.0","@alayanetwork/ethereumjs-util":"^5.2.0","loglevel":"^1.5.0","obs-store":"^4.0.3"},"gitHead":"7b1ff16727ea405fced900ad78956ff86414e42c","_id":"@alayanetwork/eth-keyring-controller@6.1.1","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-jxlX/PQsO4u5bFoy5IQNQvI/MpGA2Tfr4T9lE5rddTs6IUD70nWZlEoRdaOBjDUAIW8dxcZO4vLSlTjABiuMvw==","shasum":"09f1c6d7e4bb59d324faa299c3837f56ae5c035b","tarball":"https://registry.npmjs.org/@alayanetwork/eth-keyring-controller/-/eth-keyring-controller-6.1.1.tgz","fileCount":4,"unpackedSize":26960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZtv+CRA9TVsSAnZWagAAu6UP/iUmPMRow4QxaoJ1wo7r\n47gRFbttOo5KXCyoPuiHafOMSJCWmeMZUwIRrxOtaVRvYQlsgdnAARb4d6+6\nKeb0V340meSOuDpK8x2+QLsT5lkZ0V7rHiBMELK1CKAIIoOZnTCfxKK5rL8R\n7CVOyy4pmfz3Bu3CRFjawAAfJmbULGr8cSQoOysffiuQr6OJM2ddu1By0xEB\nOqxevuwLC2GbGb+fC7/fk/9DzexCDDaLCmQAyK6uNmPKerlJRPJUR6NPw8dr\nkW234evgCCWWspsw29fidDYYj66OmwagoolEjXfhcNmIqFp5aojIz3KqdfTq\nl591D3n6H+gAgEhWpAQ3f4shQB3XZTUWuwG4tLUfeG6w2SMbHH6q1BqoMa5X\n/wbRhNlfywSERIFFnojV1afIrhqMerS061Y+n6p1QfrOQ1SiH0XrhZ+yppbi\nChTcXGFaT+FgMbarz2JC0wB5pSXRFJwzNLZUH/SuqKjpG2aPNQbxp3gUc/n/\nl3/+wQgJ6808d9tQbkzJhe+Zapu7bC8UhMqcTB4gKtg05m1LNQl+UoBhPx5D\neEsQR0S2XZb84+HzTKPsgP2EomE5cU9YvgV/p3Why9YvvAU561yol3Uoql3a\nMTrSiAcez743IeUWcCjHFgVQXZyS0gptALX/XVPOusEBqG4EqoAzzuW22ZYU\niW4V\r\n=/Vb9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF35Rrf2LFDloDYrHhSJYVXn/f6QCQmNMkUknh4O3Uz0AiAAkEjWoql1tEbJqYRbpEaoxJgvcsqyYJRR6zpx0PbPYA=="}]},"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eth-keyring-controller_6.1.1_1617353726251_0.5795218445210668"},"_hasShrinkwrap":false},"6.1.2":{"name":"@alayanetwork/eth-keyring-controller","version":"6.1.2","description":"A module for managing various keyrings of PlatON accounts, encrypting them, and using them.","main":"index.js","scripts":{"test":"mocha --timeout 10000 --require test/helper.js test/index.js","lint":"eslint . --ext js,json","lint:fix":"eslint . --ext js,json --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/AlayaNetwork/samurai-KeyringController.git"},"keywords":["platon","samurai","accounts","keys"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","bugs":{"url":"https://github.com/AlayaNetwork/samurai-KeyringController/issues"},"homepage":"https://github.com/AlayaNetwork/samurai-KeyringController#readme","devDependencies":{"@babel/core":"^7.8.7","@metamask/eslint-config":"^2.1.0","clone":"^2.1.1","eslint":"^6.8.0","eslint-plugin-import":"^2.20.1","eslint-plugin-json":"^2.1.1","eslint-plugin-mocha":"^6.0.0","ethereumjs-wallet":"^0.6.3","jsdom":"^11.12.0","jsdom-global":"^3.0.2","mocha":"^7.1.2","polyfill-crypto.getrandomvalues":"^1.0.0","sinon":"^7.2.7"},"dependencies":{"bip39":"^2.4.0","bluebird":"^3.5.0","browser-passworder":"^2.0.3","@alayanetwork/eth-hd-keyring":"^3.5.0","@alayanetwork/eth-sig-util":"^2.5.3","@alayanetwork/eth-simple-keyring":"^4.0.0","@alayanetwork/ethereumjs-util":"^5.2.0","loglevel":"^1.5.0","obs-store":"^4.0.3"},"gitHead":"7b1ff16727ea405fced900ad78956ff86414e42c","_id":"@alayanetwork/eth-keyring-controller@6.1.2","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"integrity":"sha512-tCqiJeBs9XrHb5yuBwWYL0rB9+XF2//WIVFd4XpxhYrtVmWFHbQaYFXRGXeLTgEPjcxd3ZooR4qSeEf2KAom+w==","shasum":"bb57cfd2fb8057effb3085ea806cf3874271d508","tarball":"https://registry.npmjs.org/@alayanetwork/eth-keyring-controller/-/eth-keyring-controller-6.1.2.tgz","fileCount":4,"unpackedSize":26987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdpRJCRA9TVsSAnZWagAAQNoQAKJNNe9vL5XCoqbcquex\nkeXNwzpV+/IvHXtxs9k74qj9MqNb5+I3fsdjSxjNmvTRiClw15YG1HfdV0sq\nsp1JRxrufhjfOedYy4VDyKe13YtMndMDhElXAXFKC31H05PCpsLIQqixXlEd\nbCc3kWXEWaf2DOoJEouKfhJRWTErtAJ0lVZEWxuCFOKgpa1fDuxAlgOwguW/\np1RFnQEamdcQo/efJFougPU7AjFTDBxdq5G6b8BoU4VkfAzvFIyJ+WudJ8ao\nJJsdPjc0ayiY/zniQcqvGW8Zkq66LwS6wXAAqGWccqgFuH1r4XIGeo2sadoY\nTiMwhj6N9ifeEukrLXTkR7JMj2wzaFx5jOeXiAPUge2qKbujpW54RepZpqDn\nZp53h4VKoQmJQN+v9ev8pnU59j9Bov3XXvfwqloQ4FuCG51yiYeRl+fJZ7ql\nulMKASb++MwWSECcUbE296LePsSAmuMhhygdg64gDm2dDInZLtBndYRYul5F\nFTtH9dsAu+mwuCdubJuSd4LF+3oHJOC2PAPMTaUg2GymFlAEPnw0Xai5/06x\n6S+ug0e3Zk/z3mejsKSMhbFhfnPUqsn+93uPlYzbs1vubEz9jTYpF0PL3daR\nLzDKhwAaOEhafD2pFLZdP5ByAPKP2Xag34lrCxRkH7c6A7oiHJEE/N8JGN7p\nW0E/\r\n=8gA2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChpW6hZwv+5o712fG5Nz9ndNXsTsvBv29tKoowBDVdZQIhALFRjGsPoy/1Bu0NylKD074mHNJL1O9KiTBo4IQGuAGA"}]},"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eth-keyring-controller_6.1.2_1618383944517_0.3730220328909486"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-05T02:28:51.799Z","6.1.0":"2020-11-05T02:28:51.960Z","modified":"2022-04-04T12:33:52.514Z","6.1.1":"2021-04-02T08:55:26.437Z","6.1.2":"2021-04-14T07:05:44.843Z"},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"description":"A module for managing various keyrings of PlatON accounts, encrypting them, and using them.","homepage":"https://github.com/AlayaNetwork/samurai-KeyringController#readme","keywords":["platon","samurai","accounts","keys"],"repository":{"type":"git","url":"git+ssh://git@github.com/AlayaNetwork/samurai-KeyringController.git"},"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"bugs":{"url":"https://github.com/AlayaNetwork/samurai-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"}