diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-08-29 19:39:09 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-08-29 19:39:09 +0200 |
commit | d42a06607b90c540fa3eb87daa3b4aacbfdd19a7 (patch) | |
tree | ccc225e39f420a6bacbd82500f039fd4f5d74ad3 /packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | |
parent | dd4b96e1e62f20c9881d532e40531df8c932a379 (diff) | |
parent | a386de8a9c1aa3fff76b4cb37fb3287213981387 (diff) |
Merge branch 'master' into age-withdraw
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/cryptoImplementation.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts index 01d2677dc..c1a761fb6 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts @@ -723,7 +723,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { maybeAcp = await AgeRestriction.restrictionCommitSeeded( denomPub.age_mask, age, - stringToBytes(req.secretSeed) + stringToBytes(req.secretSeed), ); maybeAgeCommitmentHash = AgeRestriction.hashCommitment( maybeAcp.commitment, @@ -1127,6 +1127,8 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { // All zeros. hAgeCommitment = new Uint8Array(32); } + // FIXME: Actually allow passing user data here! + const walletDataHash = new Uint8Array(64); let d: Uint8Array; if (depositInfo.denomKeyType === DenomKeyType.Rsa) { d = buildSigPS(TalerSignaturePurpose.WALLET_COIN_DEPOSIT) @@ -1140,6 +1142,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { .put(amountToBuffer(depositInfo.spendAmount)) .put(amountToBuffer(depositInfo.feeDeposit)) .put(decodeCrock(depositInfo.merchantPub)) + .put(walletDataHash) .build(); } else { throw Error("unsupported exchange protocol version"); |