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

Commit

Permalink
xmr: black
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 18, 2018
1 parent 3f3e31f commit fa1c362
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/apps/monero/protocol/tsx_sign_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,7 @@ async def range_proof(self, idx, dest_pub_key, amount, amount_key):
)

# Incremental hashing
await self.full_message_hasher.rsig_val(
rsig, self.use_bulletproof, raw=True
)
await self.full_message_hasher.rsig_val(rsig, self.use_bulletproof, raw=True)

gc.collect()
self._log_trace("rproof")
Expand Down
2 changes: 1 addition & 1 deletion src/apps/monero/xmr/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def keccak_hash_into(r, inp):
Hashesh input in one call
:return:
"""
return tcry.xmr_fast_hash(r,inp)
return tcry.xmr_fast_hash(r, inp)


def keccak_2hash(inp):
Expand Down
4 changes: 3 additions & 1 deletion src/apps/monero/xmr/ring_ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

def prove_range_bp(amount, last_mask=None):
from apps.monero.xmr import bulletproof as bp

bpi = bp.BulletProofBuilder()

mask = crypto.random_scalar()
Expand All @@ -22,7 +23,8 @@ def prove_range_bp(amount, last_mask=None):

gc.collect()
from apps.monero.controller.misc import dump_msg
bp_ser = dump_msg(bp_proof, preallocate=9*32 + 2*6*32 + 64)

bp_ser = dump_msg(bp_proof, preallocate=9 * 32 + 2 * 6 * 32 + 64)
return C, mask, bp_ser


Expand Down

0 comments on commit fa1c362

Please sign in to comment.