From d7e9dab48950414a06c1cf2aadf4285528a6ef7e Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Fri, 17 Aug 2018 04:11:13 +0200 Subject: [PATCH] xmr: bp - KeyVEval fix --- src/apps/monero/xmr/bulletproof.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/apps/monero/xmr/bulletproof.py b/src/apps/monero/xmr/bulletproof.py index 075f88d52..92a7a8012 100644 --- a/src/apps/monero/xmr/bulletproof.py +++ b/src/apps/monero/xmr/bulletproof.py @@ -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) @@ -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):