Skip to content

Commit

Permalink
xmr: hash wrapper not needed in writer
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 13, 2018
1 parent fefdb83 commit 4a496bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/monero/xmr/sub/keccak_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4a496bb

Please sign in to comment.