Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
xmr: PreMlsagHasher state load/save removed
Browse files Browse the repository at this point in the history
- not needed, state not serialized anymore
  • Loading branch information
ph4r05 committed Oct 2, 2018
1 parent d5f43fa commit d8a0928
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/apps/monero/xmr/sub/mlsag_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,6 @@ def __init__(self, state=None):
else:
self.rtcsig_hasher = KeccakXmrArchive()

def state_save(self):
return (
self.is_simple,
self.state,
self.kc_master.ctx,
self.rsig_hasher,
self.rtcsig_hasher.ctx() if self.rtcsig_hasher else None,
)

def state_load(self, x):
from apps.monero.xmr.sub.keccak_hasher import KeccakXmrArchive

self.is_simple = x[0]
self.state = x[1]
self.kc_master = x[2]
self.rsig_hasher = x[3]
if x[4]:
self.rtcsig_hasher = KeccakXmrArchive(x[4])
else:
self.rtcsig_hasher = None

def init(self, is_simple):
if self.state != 0:
raise ValueError("State error")
Expand Down

0 comments on commit d8a0928

Please sign in to comment.