Remove rlp from signer method names
This commit is contained in:
parent
397f240b6c
commit
af7a16aa32
@ -40,15 +40,18 @@ class ReferenceSigner(Signer):
|
|||||||
return z
|
return z
|
||||||
|
|
||||||
|
|
||||||
def sign_transaction_to_rlp(self, tx, password=None):
|
def sign_transaction_to_wire(self, tx, password=None):
|
||||||
chain_id = int.from_bytes(tx.v, byteorder='big')
|
chain_id = int.from_bytes(tx.v, byteorder='big')
|
||||||
sig = self.sign_transaction(tx, password)
|
sig = self.sign_transaction(tx, password)
|
||||||
tx.apply_signature(chain_id, sig)
|
tx.apply_signature(chain_id, sig)
|
||||||
return tx.rlp_serialize()
|
return tx.rlp_serialize()
|
||||||
|
|
||||||
|
|
||||||
def sign_ethereum_message(self, address, message, password=None):
|
def sign_transaction_to_rlp(self, tx, password=None):
|
||||||
|
return self.sign_transaction_to_wire(tx, password=password)
|
||||||
|
|
||||||
|
|
||||||
|
def sign_message(self, address, message, password=None):
|
||||||
#k = keys.PrivateKey(self.keyGetter.get(address, password))
|
#k = keys.PrivateKey(self.keyGetter.get(address, password))
|
||||||
#z = keys.ecdsa_sign(message_hash=g, private_key=k)
|
#z = keys.ecdsa_sign(message_hash=g, private_key=k)
|
||||||
if type(message).__name__ == 'str':
|
if type(message).__name__ == 'str':
|
||||||
@ -71,6 +74,10 @@ class ReferenceSigner(Signer):
|
|||||||
return z
|
return z
|
||||||
|
|
||||||
|
|
||||||
|
def sign_ethereum_message(self, address, message, password=None):
|
||||||
|
return self.sign_message(address, message, password=None)
|
||||||
|
|
||||||
|
|
||||||
# TODO: generic sign should be moved to non-eth context
|
# TODO: generic sign should be moved to non-eth context
|
||||||
def sign_pure(self, address, message, password=None):
|
def sign_pure(self, address, message, password=None):
|
||||||
pk = coincurve.PrivateKey(secret=self.keyGetter.get(address, password))
|
pk = coincurve.PrivateKey(secret=self.keyGetter.get(address, password))
|
||||||
|
2
setup.py
2
setup.py
@ -33,7 +33,7 @@ f.close()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="crypto-dev-signer",
|
name="crypto-dev-signer",
|
||||||
version="0.4.14rc1",
|
version="0.4.15a1",
|
||||||
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user