Upgrade confini
This commit is contained in:
parent
cdd1c58c51
commit
86c0180335
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,3 +2,6 @@ __pycache__
|
|||||||
*.pyc
|
*.pyc
|
||||||
venv
|
venv
|
||||||
.venv
|
.venv
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
*.egg-info
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
* 0.2.6
|
||||||
|
- Upgrade confini
|
||||||
* 0.2.5
|
* 0.2.5
|
||||||
- Add default env override
|
- Add default env override
|
||||||
- Do not create middleware if ipc no set
|
- Do not create middleware if ipc no set
|
||||||
|
18
README.md
18
README.md
@ -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:
|
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.
|
* 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".
|
* 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.
|
* 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.
|
* 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
|
### Scripts
|
||||||
|
|
||||||
Two scripts are currently available:
|
When installed with pip/setuptools, this package provides a Unix socket IPC server as `crypto-dev-daemon` implementing the following web3 json-rpc methods:
|
||||||
|
|
||||||
### `crypto-dev-daemon.py`
|
|
||||||
|
|
||||||
An Unix socket IPC server implementing the following web3 json-rpc methods:
|
|
||||||
|
|
||||||
* web3.eth.personal.newAccount
|
* web3.eth.personal.newAccount
|
||||||
* web3.eth.personal.signTransaction
|
* web3.eth.personal.signTransaction
|
||||||
* web3.eth.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
|
### Classes
|
||||||
|
|
||||||
The classes and packages provided are:
|
The classes and packages provided are:
|
||||||
@ -49,9 +41,9 @@ The classes and packages provided are:
|
|||||||
|
|
||||||
## VERSION
|
## 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
|
## LICENSE
|
||||||
|
|
||||||
|
@ -212,7 +212,8 @@ def init():
|
|||||||
signer = ReferenceSigner(db)
|
signer = ReferenceSigner(db)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
#if __name__ == '__main__':
|
||||||
|
def main():
|
||||||
init()
|
init()
|
||||||
arg = None
|
arg = None
|
||||||
try:
|
try:
|
@ -1 +0,0 @@
|
|||||||
crypto-dev-daemon
|
|
10
setup.cfg
10
setup.cfg
@ -1,3 +1,11 @@
|
|||||||
[metadata]
|
[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 = GPLv3
|
||||||
license_file = LICENSE.txt
|
license_files =
|
||||||
|
LICENSE.txt
|
||||||
|
23
setup.py
23
setup.py
@ -1,8 +1,12 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
f = open('README.md', 'r')
|
||||||
|
long_description = f.read()
|
||||||
|
f.close()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="crypto-dev-signer",
|
name="crypto-dev-signer",
|
||||||
version="0.2.5",
|
version="0.2.6",
|
||||||
description="A signer and keystore daemon and library for cryptocurrency software development",
|
description="A signer and keystore daemon and library for cryptocurrency software development",
|
||||||
author="Louis Holbrook",
|
author="Louis Holbrook",
|
||||||
author_email="dev@holbrook.no",
|
author_email="dev@holbrook.no",
|
||||||
@ -11,6 +15,7 @@ setup(
|
|||||||
'crypto_dev_signer.eth.web3ext',
|
'crypto_dev_signer.eth.web3ext',
|
||||||
'crypto_dev_signer.eth',
|
'crypto_dev_signer.eth',
|
||||||
'crypto_dev_signer.keystore',
|
'crypto_dev_signer.keystore',
|
||||||
|
'crypto_dev_signer.runnable',
|
||||||
'crypto_dev_signer',
|
'crypto_dev_signer',
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
@ -21,11 +26,17 @@ setup(
|
|||||||
'pysha3',
|
'pysha3',
|
||||||
'rlp',
|
'rlp',
|
||||||
'json-rpc',
|
'json-rpc',
|
||||||
'confini==0.2.1',
|
'confini==0.2.3',
|
||||||
],
|
],
|
||||||
scripts = [
|
long_description=long_description,
|
||||||
'scripts/crypto-dev-daemon',
|
long_description_content_type='text/markdown',
|
||||||
],
|
#scripts = [
|
||||||
data_files = [('', ['LICENSE.txt'])],
|
# 'scripts/crypto-dev-daemon',
|
||||||
|
# ],
|
||||||
|
entry_points = {
|
||||||
|
'console_scripts': [
|
||||||
|
'crypto-dev-daemon=crypto_dev_signer.runnable.signer:main',
|
||||||
|
],
|
||||||
|
},
|
||||||
url='https://gitlab.com/nolash/crypto-dev-signer',
|
url='https://gitlab.com/nolash/crypto-dev-signer',
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user