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

Commit

Permalink
xmr: bp - mem clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 24, 2018
1 parent 18b0348 commit 31c9ca2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/apps/monero/xmr/bulletproof.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,8 @@ def _prove_batch_main(self, V, gamma, aL, aR, hash_cache, logM, logN, M, N):
hadamard(r0, yMN, dst=r0)
vector_add(r0, zero_twos, dst=r0)
del (zero_twos)
self.gc(16)

r1 = hadamard(yMN, sR)
del (yMN, sR)
self.gc(16)
Expand Down Expand Up @@ -1273,9 +1275,12 @@ def _prove_batch_main(self, V, gamma, aL, aR, hash_cache, logM, logN, M, N):

# PAPER LINES 54-57
l = vector_add(l0, vector_scalar(l1, x), l0)
del (l1, sL)
self.gc(19)

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

# PAPER LINES 32-33
Expand Down

0 comments on commit 31c9ca2

Please sign in to comment.