diff options
author | Florian Dold <florian@dold.me> | 2021-08-24 15:43:06 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-24 15:43:06 +0200 |
commit | 4c41e705658cbae6e4558bf29edeb39f474c244a (patch) | |
tree | 6e598a6fd1ead8972c0b6cf551c3f3cb8293aec0 /packages/taler-wallet-core/src/crypto/workers | |
parent | a09359bd3930f2a4550de22bd018122a2c7846e6 (diff) | |
download | wallet-core-4c41e705658cbae6e4558bf29edeb39f474c244a.tar.xz |
DB schema cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts index 61134ef6b..e1580a7d1 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts @@ -30,12 +30,11 @@ import { CoinRecord, DenominationRecord, - RefreshPlanchet, WireFee, CoinSourceType, } from "../../db.js"; -import { CoinDepositPermission, RecoupRequest } from "@gnu-taler/taler-util"; +import { CoinDepositPermission, RecoupRequest, RefreshPlanchetInfo } from "@gnu-taler/taler-util"; // FIXME: These types should be internal to the wallet! import { BenchmarkResult, @@ -442,7 +441,7 @@ export class CryptoImplementation { const transferPubs: string[] = []; const transferPrivs: string[] = []; - const planchetsForGammas: RefreshPlanchet[][] = []; + const planchetsForGammas: RefreshPlanchetInfo[][] = []; for (let i = 0; i < kappa; i++) { const transferKeyPair = setupRefreshTransferPub( @@ -464,7 +463,7 @@ export class CryptoImplementation { sessionHc.update(decodeCrock(meltCoinPub)); sessionHc.update(amountToBuffer(valueWithFee)); for (let i = 0; i < kappa; i++) { - const planchets: RefreshPlanchet[] = []; + const planchets: RefreshPlanchetInfo[] = []; for (let j = 0; j < newCoinDenoms.length; j++) { const denomSel = newCoinDenoms[j]; for (let k = 0; k < denomSel.count; k++) { @@ -482,7 +481,7 @@ export class CryptoImplementation { const pubHash = hash(coinPub); const denomPub = decodeCrock(denomSel.denomPub); const ev = rsaBlind(pubHash, blindingFactor, denomPub); - const planchet: RefreshPlanchet = { + const planchet: RefreshPlanchetInfo = { blindingKey: encodeCrock(blindingFactor), coinEv: encodeCrock(ev), privateKey: encodeCrock(coinPriv), |