Skip to content

Commit

Permalink
xmr: bp - memory cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 19, 2018
1 parent 1065abc commit d54b4f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/monero/xmr/bulletproof.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ def prove_s1(self, V, A, S, T1, T2, taux, mu, t, x_ip, y, hash_cache, l, r):
# Originally:
# ip2 = inner_product(self.v_sL, vector_add(hadamard(yN, aR_vpIz), vp2zsq))
hadamard(yN, aR_vpIz, tmp_vct)
self.gc(6)

vector_add(tmp_vct, vp2zsq, tmp_vct)
ip2 = inner_product(self.v_sL, tmp_vct)

Expand Down Expand Up @@ -1040,6 +1042,7 @@ def verify(self, proof):
if i != BP_N - 1:
sc_mul(yinvpow, yinvpow, yinv)
sc_mul(ypow, ypow, y)
self.gc(62)

del g_scalar
del h_scalar
Expand Down

0 comments on commit d54b4f3

Please sign in to comment.