From 4a496bb7b5098fec1823dc733346dd2d562ddba3 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Thu, 13 Sep 2018 11:56:45 +0200 Subject: [PATCH] xmr: hash wrapper not needed in writer --- src/apps/monero/xmr/sub/keccak_hasher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/monero/xmr/sub/keccak_hasher.py b/src/apps/monero/xmr/sub/keccak_hasher.py index d28ef947a..27cb98c02 100644 --- a/src/apps/monero/xmr/sub/keccak_hasher.py +++ b/src/apps/monero/xmr/sub/keccak_hasher.py @@ -93,8 +93,8 @@ def get_digest(self, *args) -> bytes: return self.hasher.digest(*args) def ctx(self): - return self.hasher.ctx + return self.hasher def get_keccak_writer(ctx=None): - return AHashWriter(HashWrapper(crypto.get_keccak() if ctx is None else ctx)) + return AHashWriter(crypto.get_keccak() if ctx is None else ctx)