chainlib-eth

Ethereum implementation of the chainlib interface
Log | Files | Refs | README | LICENSE

commit ab8c510fa0462072a85c3c6b9a0312e91c615fd0
parent dbc046d946272f54f512d7a84b6db2581552538f
Author: Louis Holbrook <accounts-gitlab@holbrook.no>
Date:   Mon, 18 Oct 2021 10:07:03 +0000

refactor: Normalize signature verification

Diffstat:
Mchainlib/eth/unittest/base.py | 4+++-
Mrequirements.txt | 2+-
Msetup.cfg | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/chainlib/eth/unittest/base.py b/chainlib/eth/unittest/base.py @@ -5,6 +5,7 @@ import logging # external imports import eth_tester import coincurve +from chainlib.encode import TxHexNormalizer from chainlib.connection import ( RPCConnection, error_parser, @@ -184,7 +185,8 @@ class TestRPCConnection(RPCConnection): pk_bytes = self.backend.keystore.get(tx.sender) pk = coincurve.PrivateKey(secret=pk_bytes) result_address = private_key_to_address(pk) - assert strip_0x(result_address) == strip_0x(tx.sender) + tx_normalize = TxHexNormalizer() + assert tx_normalize.wallet_address(strip_0x(result_address)) == tx_normalize.wallet_address(strip_0x(tx.sender)) def sign_transaction(self, tx, passphrase=''): diff --git a/requirements.txt b/requirements.txt @@ -3,5 +3,5 @@ pysha3==1.0.2 hexathon~=0.0.1a8 websocket-client==0.57.0 potaahto~=0.0.1a1 -chainlib==0.0.9a10 +chainlib==0.0.9rc1 confini>=0.4.1a1,<0.5.0 diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.0.9a13 +version = 0.0.9rc3 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no