Skip to content

Commit

Permalink
xmr: bp - memory optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 25, 2018
1 parent a10d05a commit 75aa7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/monero/xmr/bulletproof.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,11 +1302,11 @@ def _prove_batch_main(self, V, gamma, aL, aR, hash_cache, logM, logN, M, N):
del (rho, alpha)

# PAPER LINES 54-57
l = vector_add(l0, vector_scalar(l1, x), l0)
l = vector_add(l0, KeyVEval(len(l1), lambda i, d: sc_mul(d, l1[i], x)), l0)
del (l1, sL)
self.gc(19)

r = vector_add(r0, vector_scalar(r1, x), r0)
r = vector_add(r0, vector_scalar(r1, x, r1), r0)
t = inner_product(l, r)
del (r1)
self.gc(19)
Expand Down

0 comments on commit 75aa7de

Please sign in to comment.