Upgrade confini

This commit is contained in:
nolash 2020-10-18 10:32:23 +02:00
parent cdd1c58c51
commit 86c0180335
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
7 changed files with 38 additions and 22 deletions

3
.gitignore vendored
View File

@ -2,3 +2,6 @@ __pycache__
*.pyc
venv
.venv
build
dist
*.egg-info

View File

@ -1,3 +1,5 @@
* 0.2.6
- Upgrade confini
* 0.2.5
- Add default env override
- Do not create middleware if ipc no set

View File

@ -1,9 +1,9 @@
# CIC PLATFORM SIGNER
# CRYPTO DEV SIGNER
This package is written because at the time no good solution seemed to exist for solving the following combined requirements and issues:
* A service has custody of its users' private keys.
* The are a large number of private keys involved (tens of thousands minimum).
* The are a large number of private keys involved (hundreds of thousands and up).
* Need to sign transactions conforming to EIP-155, with the ability to arbitrarily specify the "chain id".
* Do not want to store the keys inside an ethereum node, especially not the one connected to the network.
* Want to use the "standard" web3 JSON-RPC interface, so that the component can be easily replaced later.
@ -14,20 +14,12 @@ This package is written because at the time no good solution seemed to exist for
### Scripts
Two scripts are currently available:
### `crypto-dev-daemon.py`
An Unix socket IPC server implementing the following web3 json-rpc methods:
When installed with pip/setuptools, this package provides a Unix socket IPC server as `crypto-dev-daemon` implementing the following web3 json-rpc methods:
* web3.eth.personal.newAccount
* web3.eth.personal.signTransaction
* web3.eth.signTransaction
### `web3_middleware.py`
Demonstrates use of the IPC server as middleware for handling calls to the web3 json-rpc methods provided by the daemon.
### Classes
The classes and packages provided are:
@ -49,9 +41,9 @@ The classes and packages provided are:
## VERSION
This software is in alpha state and very brittle.
This software is in alpha state.
Current version is 0.1.0
Current version is 0.2.5
## LICENSE

View File

@ -212,7 +212,8 @@ def init():
signer = ReferenceSigner(db)
if __name__ == '__main__':
#if __name__ == '__main__':
def main():
init()
arg = None
try:

View File

@ -1 +0,0 @@
crypto-dev-daemon

View File

@ -1,3 +1,11 @@
[metadata]
classifiers =
Programming Language :: Python :: 3
Operating System :: OS Independent
Development Status :: 3 - Alpha
Intended Audience :: Developers
Topic :: Software Development :: Libraries
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
license = GPLv3
license_file = LICENSE.txt
license_files =
LICENSE.txt

View File

@ -1,8 +1,12 @@
from setuptools import setup
f = open('README.md', 'r')
long_description = f.read()
f.close()
setup(
name="crypto-dev-signer",
version="0.2.5",
version="0.2.6",
description="A signer and keystore daemon and library for cryptocurrency software development",
author="Louis Holbrook",
author_email="dev@holbrook.no",
@ -11,6 +15,7 @@ setup(
'crypto_dev_signer.eth.web3ext',
'crypto_dev_signer.eth',
'crypto_dev_signer.keystore',
'crypto_dev_signer.runnable',
'crypto_dev_signer',
],
install_requires=[
@ -21,11 +26,17 @@ setup(
'pysha3',
'rlp',
'json-rpc',
'confini==0.2.1',
'confini==0.2.3',
],
scripts = [
'scripts/crypto-dev-daemon',
long_description=long_description,
long_description_content_type='text/markdown',
#scripts = [
# 'scripts/crypto-dev-daemon',
# ],
entry_points = {
'console_scripts': [
'crypto-dev-daemon=crypto_dev_signer.runnable.signer:main',
],
data_files = [('', ['LICENSE.txt'])],
},
url='https://gitlab.com/nolash/crypto-dev-signer',
)