Skip to content

Commit

Permalink
xmr: PreMlsagHasher pseudo out hashing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Oct 2, 2018
1 parent 49e552d commit 8d827f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/apps/monero/xmr/sub/mlsag_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ def set_pseudo_out(self, out):
raise ValueError("State error")
self.state = 3

# Manual serialization of the KeyV = Container of ECKeys
self.rtcsig_hasher.uvarint(len(out))
for x in out:
self.rtcsig_hasher.buffer(x)
# Manual serialization of the ECKey
self.rtcsig_hasher.buffer(out)

def set_ecdh(self, ecdh):
if self.state != 2 and self.state != 3 and self.state != 4:
Expand Down

0 comments on commit 8d827f4

Please sign in to comment.