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

Commit

Permalink
xmr: bp - KeyVEval fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 17, 2018
1 parent 1523f40 commit d7e9dab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/apps/monero/xmr/bulletproof.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ def aR(self, i, dst=None):
return dst

def aL_vct(self):
return KeyVEval(64, lambda x: self.aL(x))
return KeyVEval(64, lambda x, r: self.aL(x, r))

def aR_vct(self):
return KeyVEval(64, lambda x: self.aR(x))
return KeyVEval(64, lambda x, r: self.aR(x, r))

def _det_mask(self, i, is_sL=True, dst=None):
dst = _ensure_dst_key(dst)
Expand All @@ -615,12 +615,16 @@ def sR(self, i, dst=None):

def sL_vct(self):
return (
KeyVEval(64, lambda x: self.sL(x)) if self.use_det_masks else self.sX_gen()
KeyVEval(64, lambda x, r: self.sL(x, r))
if self.use_det_masks
else self.sX_gen()
)

def sR_vct(self):
return (
KeyVEval(64, lambda x: self.sR(x)) if self.use_det_masks else self.sX_gen()
KeyVEval(64, lambda x, r: self.sR(x, r))
if self.use_det_masks
else self.sX_gen()
)

def sX_gen(self):
Expand Down

0 comments on commit d7e9dab

Please sign in to comment.