forked from chaintool/funga-eth
Remove misplaced sweep code, bump version
This commit is contained in:
parent
ccacffe962
commit
2cdccd821f
@ -48,6 +48,8 @@ class SQLKeystore(EthKeystore):
|
||||
self.db_session.execute(s)
|
||||
self.db_session.commit()
|
||||
self.symmetric_key = kwargs.get('symmetric_key')
|
||||
self.__rs = None
|
||||
self.__rs_crsr = 0
|
||||
|
||||
|
||||
def __del__(self):
|
||||
@ -72,6 +74,15 @@ class SQLKeystore(EthKeystore):
|
||||
return a
|
||||
|
||||
|
||||
def list(self):
|
||||
s = text('SELECT wallet_address_hex FROM ethereum')
|
||||
self.__rs = self.db_session.execute(s)
|
||||
addresses = []
|
||||
for r in self.__rs:
|
||||
addresses.append(r)
|
||||
return addresses
|
||||
|
||||
|
||||
def import_key(self, pk, password=None):
|
||||
address_hex = private_key_to_address(pk)
|
||||
address_hex_clean = strip_0x(address_hex).lower()
|
||||
|
@ -2,8 +2,8 @@ cryptography==3.2.1
|
||||
pysha3==1.0.2
|
||||
rlp==2.0.1
|
||||
json-rpc==1.13.0
|
||||
confini>=0.3.6rc3,<0.5.0
|
||||
confini~=0.5.1
|
||||
coincurve==15.0.0
|
||||
hexathon~=0.0.1a7
|
||||
hexathon~=0.1.0
|
||||
pycryptodome==3.10.1
|
||||
funga>=0.5.1a1,<0.6.0
|
||||
funga==0.5.1
|
||||
|
@ -5,6 +5,7 @@ classifiers =
|
||||
Development Status :: 3 - Alpha
|
||||
Intended Audience :: Developers
|
||||
Topic :: Software Development :: Libraries
|
||||
Environment :: Console
|
||||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
license = GPLv3
|
||||
license_files =
|
||||
|
Loading…
Reference in New Issue
Block a user