跳转到主要内容

本地以太坊密钥库管理库

项目描述

eth-accounts

https://img.shields.io/pypi/v/eth-accounts.svg https://img.shields.io/travis/com/AndreMiras/eth-accounts/develop https://coveralls.io/repos/github/AndreMiras/eth-accounts/badge.svg?branch=develop Documentation Status

本地以太坊密钥库管理库

功能

  • 创建和管理本地以太坊账户

  • 账户加密(密码)

  • 可配置的PBKDF2迭代

  • 交易签名(待办)

示例

>>> from eth_accounts.account_utils import AccountUtils
>>>
>>> account_utils = AccountUtils(keystore_dir="/tmp/keystore")
>>> account_utils.new_account(password="strong_password")
<Account(address=0x7f92b97485c361ae50d5f30936fb52abac14fe08, id=None)>
>>> account_utils.get_account_list()
[<Account(address=0x7f92b97485c361ae50d5f30936fb52abac14fe08, id=None)>]
>>> 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()
[]

历史

20191227 (2019-12-27)

新增

  • Coveralls支持

  • AccountUtils.get_by_address()

  • AccountUtils.update_account_password()

20191226 (2019-12-26)

  • 首次发布在PyPI。

项目详情


下载文件

下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。

源代码分发

eth_accounts-20191227.tar.gz (16.5 kB 查看散列)

上传时间 源代码

构建分发

eth_accounts-20191227-py2.py3-none-any.whl (7.1 kB 查看散列)

上传于 Python 2 Python 3

由以下机构支持