summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-08 12:16:01 +0100
committerFlorian Dold <florian@dold.me>2020-12-08 12:16:01 +0100
commit80f5d2d0f33860cdd3225a2054cac462df2e8828 (patch)
tree6dbc2f92c399f78962c8431163220dd24c474483
parent0e33e540f32aa90ef8bd6ee19c239ae7f5bd7db9 (diff)
downloadwallet-core-80f5d2d0f33860cdd3225a2054cac462df2e8828.tar.gz
wallet-core-80f5d2d0f33860cdd3225a2054cac462df2e8828.tar.bz2
wallet-core-80f5d2d0f33860cdd3225a2054cac462df2e8828.zip
make coins part of their denomination in backup
-rw-r--r--packages/taler-wallet-core/src/types/backupTypes.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/packages/taler-wallet-core/src/types/backupTypes.ts b/packages/taler-wallet-core/src/types/backupTypes.ts
index d6062b92d..2b0e74968 100644
--- a/packages/taler-wallet-core/src/types/backupTypes.ts
+++ b/packages/taler-wallet-core/src/types/backupTypes.ts
@@ -301,7 +301,7 @@ export type BackupCoinSource =
/**
* Backup information about a coin.
*
- * (Always part of a BackupExchange)
+ * (Always part of a BackupExchange/BackupDenom)
*/
export interface BackupCoin {
/**
@@ -315,11 +315,6 @@ export interface BackupCoin {
coin_priv: string;
/**
- * Key used by the exchange used to sign the coin.
- */
- denom_pub: string;
-
- /**
* Unblinded signature by the exchange.
*/
denom_sig: string;
@@ -805,6 +800,11 @@ export interface BackupDenomination {
* should also mark all affected coins as revoked.
*/
is_revoked: boolean;
+
+ /**
+ * Coins of this denomination.
+ */
+ coins: BackupCoin[];
}
export interface BackupReserve {
@@ -1005,8 +1005,6 @@ export interface BackupExchange {
*/
reserves: BackupReserve[];
- coins: BackupCoin[];
-
/**
* Last observed protocol version.
*/
@@ -1025,7 +1023,10 @@ export interface BackupExchange {
*/
accounts: {
payto_uri: string;
- master_sig: string;
+ /**
+ * Optional, since older wallets don't store this.
+ */
+ master_sig?: string;
}[];
/**