Skip to content

Commit

Permalink
xmr: KeccakXmrArchive simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Oct 2, 2018
1 parent 69bbf5f commit 4199943
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/apps/monero/xmr/sub/keccak_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ def ctx(self):
def get_digest(self):
return self.kwriter.get_digest()

def refresh(self, ctx=None):
if ctx is None:
ctx = self.kwriter.ctx()
self.kwriter = get_keccak_writer(ctx=ctx)

def _ar(self, xser=None):
if self.keeping and self.ar:
return self.ar
Expand Down Expand Up @@ -47,14 +42,6 @@ def uint(self, i, width):
ar = self._ar(None)
ar.uint(i, width=width)

def field(self, elem=None, elem_type=None, params=None, xser=None):
ar = self._ar(xser)
return ar.field(elem, elem_type, params)

def message_field(self, msg, field, fvalue=None, xser=None):
ar = self._ar(xser)
return ar.message_field(msg, field, fvalue)

def container_size(
self, container_len=None, container_type=None, params=None, xser=None
):
Expand Down

0 comments on commit 4199943

Please sign in to comment.