diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-08 20:29:47 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-08 20:29:47 +0530 |
commit | 6c0be1cc956ce57fdc13509113448fe702b43da9 (patch) | |
tree | 15bd098eaf36230d597dafe3ada4d1dba3a0242a /packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts | |
parent | 043a5f89fe020bbb55170a9fc355c3d699ad8761 (diff) | |
download | wallet-core-6c0be1cc956ce57fdc13509113448fe702b43da9.tar.xz |
DB cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts index 4195ebded..c39ebb44a 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts @@ -29,7 +29,7 @@ import { CoinRecord, DenominationRecord, - RefreshPlanchetRecord, + RefreshPlanchet, RefreshSessionRecord, TipPlanchet, WireFee, @@ -385,7 +385,7 @@ export class CryptoImplementation { const transferPubs: string[] = []; const transferPrivs: string[] = []; - const planchetsForGammas: RefreshPlanchetRecord[][] = []; + const planchetsForGammas: RefreshPlanchet[][] = []; for (let i = 0; i < kappa; i++) { const transferKeyPair = createEcdheKeyPair(); @@ -405,7 +405,7 @@ export class CryptoImplementation { sessionHc.update(amountToBuffer(valueWithFee)); for (let i = 0; i < kappa; i++) { - const planchets: RefreshPlanchetRecord[] = []; + const planchets: RefreshPlanchet[] = []; for (let j = 0; j < newCoinDenoms.selectedDenoms.length; j++) { const denomSel = newCoinDenoms.selectedDenoms[j]; for (let k = 0; k < denomSel.count; k++) { @@ -423,7 +423,7 @@ export class CryptoImplementation { const pubHash = hash(coinPub); const denomPub = decodeCrock(denomSel.denom.denomPub); const ev = rsaBlind(pubHash, blindingFactor, denomPub); - const planchet: RefreshPlanchetRecord = { + const planchet: RefreshPlanchet = { blindingKey: encodeCrock(blindingFactor), coinEv: encodeCrock(ev), privateKey: encodeCrock(coinPriv), |