Add setup.py, rename server script

This commit is contained in:
nolash
2020-08-08 10:45:37 +02:00
parent 472e2f04fc
commit 51f076ba2a
6 changed files with 43 additions and 24 deletions

View File

@@ -1,7 +1,9 @@
# standard imports
import logging
import base64
import os
# third-party imports
from cryptography.fernet import Fernet
import psycopg2
from psycopg2 import sql
@@ -9,6 +11,7 @@ from eth_keys import KeyAPI
from eth_keys.backends import NativeECCBackend
import sha3
# local imports
from common import strip_hex_prefix
from keystore.interface import Keystore
@@ -18,15 +21,10 @@ logging.basicConfig(level=logging.DEBUG)
logg = logging.getLogger(__file__)
def to_bytes(x):
return x.encode('utf-8')
class ReferenceKeystore(Keystore):
schema = [

View File

@@ -1,12 +1,16 @@
# standard imports
import logging
import binascii
# third-party imports
from rlp import encode as rlp_encode
# local imports
from common import strip_hex_prefix, add_hex_prefix
logg = logging.getLogger(__name__)
class Transaction:
def rlp_serialize(self):

View File

@@ -1,3 +1,4 @@
# standard imports
import logging
import re
import socket