diff options
author | Florian Dold <florian@dold.me> | 2021-01-06 17:06:19 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-06 17:06:19 +0100 |
commit | 458777c5a2e66187cc3a8ac3e4a7557114886a4e (patch) | |
tree | fc99855431acd2e4c2138e242fa82396bf19d006 /packages/taler-wallet-core/src/crypto/workers | |
parent | c032931f22e4d1b44e2a3af52c705db147129024 (diff) | |
download | wallet-core-458777c5a2e66187cc3a8ac3e4a7557114886a4e.tar.xz |
fix tipping planchet derivation
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts | 6 |
1 files changed, 2 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 fc8b53eb7..9b703e2c8 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts @@ -48,7 +48,6 @@ import { encodeCrock, decodeCrock, createEddsaKeyPair, - createBlindingKeySecret, hash, rsaBlind, eddsaVerify, @@ -199,12 +198,11 @@ export class CryptoImplementation { createTipPlanchet(req: DeriveTipRequest): DerivedTipPlanchet { const fc = setupTipPlanchet(decodeCrock(req.secretSeed), req.planchetIndex); const denomPub = decodeCrock(req.denomPub); - const blindingFactor = createBlindingKeySecret(); const coinPubHash = hash(fc.coinPub); - const ev = rsaBlind(coinPubHash, blindingFactor, denomPub); + const ev = rsaBlind(coinPubHash, fc.bks, denomPub); const tipPlanchet: DerivedTipPlanchet = { - blindingKey: encodeCrock(blindingFactor), + blindingKey: encodeCrock(fc.bks), coinEv: encodeCrock(ev), coinEvHash: encodeCrock(hash(ev)), coinPriv: encodeCrock(fc.coinPriv), |