{"id":21420202,"url":"https://github.com/ethjs/ethjs-account","last_synced_at":"2025-07-14T06:31:59.882Z","repository":{"id":57230955,"uuid":"75885300","full_name":"ethjs/ethjs-account","owner":"ethjs","description":"A simple Ethereum account utility module.","archived":false,"fork":false,"pushed_at":"2021-09-14T09:27:08.000Z","size":537,"stargazers_count":18,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T14:16:24.329Z","etag":null,"topics":["account","ethereum","generation","management"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-07T23:47:46.000Z","updated_at":"2021-10-29T02:59:33.000Z","dependencies_parsed_at":"2022-09-07T16:12:07.174Z","dependency_job_id":null,"html_url":"https://github.com/ethjs/ethjs-account","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ethjs/ethjs-account","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs-account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs-account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs-account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs-account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethjs","download_url":"https://codeload.github.com/ethjs/ethjs-account/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs-account/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265252583,"owners_count":23735082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account","ethereum","generation","management"],"created_at":"2024-11-22T20:13:19.206Z","updated_at":"2025-07-14T06:31:59.492Z","avatar_url":"https://github.com/ethjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ethjs-account\n\n\u003cdiv\u003e\n  \u003c!-- Dependency Status --\u003e\n  \u003ca href=\"https://david-dm.org/ethjs/ethjs-account\"\u003e\n    \u003cimg src=\"https://david-dm.org/ethjs/ethjs-account.svg\"\n    alt=\"Dependency Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- devDependency Status --\u003e\n  \u003ca href=\"https://david-dm.org/ethjs/ethjs-account#info=devDependencies\"\u003e\n    \u003cimg src=\"https://david-dm.org/ethjs/ethjs-account/dev-status.svg\" alt=\"devDependency Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Build Status --\u003e\n  \u003ca href=\"https://travis-ci.org/ethjs/ethjs-account\"\u003e\n    \u003cimg src=\"https://travis-ci.org/ethjs/ethjs-account.svg\"\n    alt=\"Build Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- NPM Version --\u003e\n  \u003ca href=\"https://www.npmjs.org/package/ethjs-account\"\u003e\n    \u003cimg src=\"http://img.shields.io/npm/v/ethjs-account.svg\"\n    alt=\"NPM version\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Test Coverage --\u003e\n  \u003ca href=\"https://coveralls.io/r/ethjs/ethjs-account\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/github/ethjs/ethjs-account/badge.svg\" alt=\"Test Coverage\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Javascript Style --\u003e\n  \u003ca href=\"http://airbnb.io/javascript/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg\" alt=\"js-airbnb-style\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nA simple Ethereum account utility module.\n\nWarning: if using with React Native, please use a pre-build distribution (i.e. npm run buld -\u003e /dist/..). We will be switching to the Sepcc256k1 module which should resolve this issue.\n\n## Install\n\n```\nnpm install --save ethjs-account\n```\n\n## Usage\n\n```js\nconst generate = require('ethjs-account').generate;\n\nconsole.log(generate('892h@fsdf11ks8sk^2h8s8shfs.jk39hsoi@hohskd'));\n\n/* result\n{\n  address: '0x...',\n  privateKey: '0x...',\n  publicKey: '0x....',\n}\n*/\n```\n\nNote, the address exported is the mix case checksum.\n\n## About\n\nThis module is meant to aid in the management and generation of Ethereum account keys. It is still pending review. Entropy generation is handled by a combination of sha3 hashing, crypto random bytes and provided entropy salt. It is up the developer to ensure good entropy is generated for the accounts.\n\nThis module contains methods to convert private keys into Buffer public keys, and Buffer public keys into Ethereum addresses. The sha3 method is exposed as it is needed for key generation.\n\nSee the `user-guide` for more details on good entropy generation, and other module information.\n\n## Method API\n\n```\ngenerate             \u003cFunction (String) : (Object)\u003e\ngetAddress           \u003cFunction (String) : (String)\u003e\ngetChecksumAddress   \u003cFunction (String) : (String)\u003e\nsha3                 \u003cFunction (String, Boolean) : (String)\u003e\nprivateToPublic      \u003cFunction (String) : (Object)\u003e\npublicToAddress      \u003cFunction (Object) : (String)\u003e\nprivateToAccount     \u003cFunction (String) : (Object)\u003e\n```\n\n## Contributing\n\nPlease help better the ecosystem by submitting issues and pull requests to `ethjs-account`. We need all the help we can get to build the absolute best linting standards and utilities. We follow the AirBNB linting standard and the unix philosophy.\n\n## Guides\n\nYou'll find more detailed information on using `ethjs-account` and tailoring it to your needs in our guides:\n\n- [User guide](docs/user-guide.md) - Usage, configuration, FAQ and complementary tools.\n- [Developer guide](docs/developer-guide.md) - Contributing to `ethjs-account` and writing your own code and coverage.\n\n## Help out\n\nThere is always a lot of work to do, and will have many rules to maintain. So please help out in any way that you can:\n\n- Create, enhance, and debug ethjs rules (see our guide to [\"Working on rules\"](./github/CONTRIBUTING.md)).\n- Improve documentation.\n- Chime in on any open issue or pull request.\n- Open new issues about your ideas for making `ethjs-account` better, and pull requests to show us how your idea works.\n- Add new tests to *absolutely anything*.\n- Create or contribute to ecosystem tools.\n- Spread the word!\n\nPlease consult our [Code of Conduct](CODE_OF_CONDUCT.md) docs before helping out.\n\nWe communicate via [issues](https://github.com/ethjs/ethjs-account/issues) and [pull requests](https://github.com/ethjs/ethjs-account/pulls).\n\n## Important documents\n\n- [Changelog](CHANGELOG.md)\n- [Code of Conduct](CODE_OF_CONDUCT.md)\n- [License](https://raw.githubusercontent.com/ethjs/ethjs-account/master/LICENSE)\n\n## Licence\n\nThis project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson/2014 Richard Moore. For more information see LICENSE.md.\n\n```\nThe MIT License (MIT)\n \nCopyright (c) 2016 Nick Dodson\nCopyright (c) 2014 Richard Moore\n \nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n## Original Port Checksum/getAddress Author\n\nRichard Moore \u003cme@ricmoo.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethjs%2Fethjs-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethjs%2Fethjs-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethjs%2Fethjs-account/lists"}