diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-06-03 16:46:25 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-06-03 16:46:25 +0530 |
commit | 83af702f1cae043902e23e9358c3e036ddca8d33 (patch) | |
tree | 3b27fa06fd890406224a0cc4e074d9bd9457230d /src/crypto | |
parent | 77c61e738181561979da64a480fe21f70f6fe1f4 (diff) | |
download | wallet-core-83af702f1cae043902e23e9358c3e036ddca8d33.tar.xz |
re-indent with latest version of prettier
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/workers/cryptoImplementation.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/crypto/workers/cryptoImplementation.ts b/src/crypto/workers/cryptoImplementation.ts index dc0452dc1..e0ba24e47 100644 --- a/src/crypto/workers/cryptoImplementation.ts +++ b/src/crypto/workers/cryptoImplementation.ts @@ -65,7 +65,11 @@ import { } from "../talerCrypto"; import { randomBytes } from "../primitives/nacl-fast"; import { kdf } from "../primitives/kdf"; -import { Timestamp, getTimestampNow, timestampTruncateToSecond } from "../../util/time"; +import { + Timestamp, + getTimestampNow, + timestampTruncateToSecond, +} from "../../util/time"; enum SignaturePurpose { RESERVE_WITHDRAW = 1200, @@ -368,7 +372,10 @@ export class CryptoImplementation { for (const ncd of newCoinDenoms.selectedDenoms) { const t = Amounts.add(ncd.denom.value, ncd.denom.feeWithdraw).amount; - valueWithFee = Amounts.add(valueWithFee, Amounts.mult(t, ncd.count).amount).amount; + valueWithFee = Amounts.add( + valueWithFee, + Amounts.mult(t, ncd.count).amount, + ).amount; } // melt fee @@ -406,7 +413,10 @@ export class CryptoImplementation { const coinNumber = planchets.length; const transferPriv = decodeCrock(transferPrivs[i]); const oldCoinPub = decodeCrock(meltCoin.coinPub); - const transferSecret = keyExchangeEcdheEddsa(transferPriv, oldCoinPub); + const transferSecret = keyExchangeEcdheEddsa( + transferPriv, + oldCoinPub, + ); const fresh = setupRefreshPlanchet(transferSecret, coinNumber); const coinPriv = fresh.coinPriv; const coinPub = fresh.coinPub; |