aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-08 14:02:09 +0200
committerFlorian Dold <florian@dold.me>2022-09-08 14:02:09 +0200
commit9b2d6d766f0192923d337ab8c69a332ebdc20bf1 (patch)
tree3f7b46f1346177d13b8f6b0bc9b9dedc637f5927 /packages/taler-wallet-core
parent2119daba175e85e56f767a03565dbb87e533d031 (diff)
downloadwallet-core-9b2d6d766f0192923d337ab8c69a332ebdc20bf1.tar.xz
include age commitment proof in refreshed coins
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/crypto/cryptoImplementation.ts1
-rw-r--r--packages/taler-wallet-core/src/operations/pending.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts1
3 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
index c6be1d466..4ec24a98b 100644
--- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
+++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
@@ -1208,6 +1208,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = {
coinPriv: encodeCrock(coinPriv),
coinPub: encodeCrock(coinPub),
coinEvHash: encodeCrock(coinEvHash),
+ ageCommitmentProof: newAc,
};
planchets.push(planchet);
hashCoinEvInner(coinEv, sessionHc);
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts
index 38146f72e..5cf3afd4d 100644
--- a/packages/taler-wallet-core/src/operations/pending.ts
+++ b/packages/taler-wallet-core/src/operations/pending.ts
@@ -23,7 +23,6 @@
*/
import {
ProposalStatus,
- ReserveRecordStatus,
AbortStatus,
WalletStoresV1,
BackupProviderStateTag,
@@ -33,7 +32,6 @@ import {
import {
PendingOperationsResponse,
PendingTaskType,
- ReserveType,
} from "../pending-types.js";
import { AbsoluteTime } from "@gnu-taler/taler-util";
import { InternalWalletState } from "../internal-wallet-state.js";
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts
index fc90b6081..64a734bb3 100644
--- a/packages/taler-wallet-core/src/operations/refresh.ts
+++ b/packages/taler-wallet-core/src/operations/refresh.ts
@@ -695,6 +695,7 @@ async function refreshReveal(
},
suspended: false,
coinEvHash: pc.coinEvHash,
+ ageCommitmentProof: pc.ageCommitmentProof,
};
coins.push(coin);