commit 2011ce8bb8747c62416a8190b57e5bf37e8778ab
parent dbc046d946272f54f512d7a84b6db2581552538f
Author: Louis Holbrook <accounts-gitlab@holbrook.no>
Date: Mon, 18 Oct 2021 10:07:03 +0000
Merge branch 'lash/normalize-verify-sig' into 'master'
refactor: Normalize signature verification
See merge request chaintool/chainlib-eth!9
Diffstat:
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