Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andremiras/eth-accounts
Local Ethereum keystore management library
https://github.com/andremiras/eth-accounts
Last synced: about 2 months ago
JSON representation
Local Ethereum keystore management library
- Host: GitHub
- URL: https://github.com/andremiras/eth-accounts
- Owner: AndreMiras
- License: mit
- Created: 2019-12-25T19:30:36.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-11-04T08:08:47.000Z (about 1 year ago)
- Last Synced: 2024-10-27T07:28:49.489Z (about 2 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
============
eth-accounts
============.. image:: https://img.shields.io/pypi/v/eth-accounts.svg
:target: https://pypi.python.org/pypi/eth_accounts.. image:: https://img.shields.io/travis/com/AndreMiras/eth-accounts/develop
:target: https://travis-ci.com/AndreMiras/eth-accounts.. image:: https://coveralls.io/repos/github/AndreMiras/eth-accounts/badge.svg?branch=develop
:target: https://coveralls.io/github/AndreMiras/eth-accounts?branch=develop.. image:: https://readthedocs.org/projects/eth-accounts/badge/?version=latest
:target: https://eth-accounts.readthedocs.io/en/latest/?badge=latest
:alt: Documentation StatusLocal Ethereum keystore management library
* Free software: MIT license
* Documentation: https://eth-accounts.readthedocs.io.Features
--------* Create and manage local Ethereum accounts
* Account encryption (password)
* Configurable PBKDF2 iterations
* Transaction signature (TODO)Example
------->>> from eth_accounts.account_utils import AccountUtils
>>>
>>> account_utils = AccountUtils(keystore_dir="/tmp/keystore")
>>> account_utils.new_account(password="strong_password")>>> account_utils.get_account_list()
[]
>>> account = account_utils.get_account_list()[0]
>>> account.privkey
b'wU\xb1\xd6\xf1,`\x05f\xf1\x93\x04B\x11\x88\xe4i\x9d \xb9z9B\xb4\x9a\x1f\xae\xc4{\xa5\x13\x1f'
>>> account_utils.delete_account(account)
>>> account_utils.get_account_list()
[]