From fa1c3623f74f1abd58adabfbaf84b859f52ca662 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Sat, 18 Aug 2018 14:18:55 +0200 Subject: [PATCH] xmr: black --- src/apps/monero/protocol/tsx_sign_builder.py | 4 +--- src/apps/monero/xmr/crypto.py | 2 +- src/apps/monero/xmr/ring_ct.py | 4 +++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/monero/protocol/tsx_sign_builder.py b/src/apps/monero/protocol/tsx_sign_builder.py index 6c62d0e61..27976a7bd 100644 --- a/src/apps/monero/protocol/tsx_sign_builder.py +++ b/src/apps/monero/protocol/tsx_sign_builder.py @@ -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") diff --git a/src/apps/monero/xmr/crypto.py b/src/apps/monero/xmr/crypto.py index 1f089ae9f..07e04ef42 100644 --- a/src/apps/monero/xmr/crypto.py +++ b/src/apps/monero/xmr/crypto.py @@ -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): diff --git a/src/apps/monero/xmr/ring_ct.py b/src/apps/monero/xmr/ring_ct.py index 39ce2ce1e..ce155865e 100644 --- a/src/apps/monero/xmr/ring_ct.py +++ b/src/apps/monero/xmr/ring_ct.py @@ -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() @@ -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