aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-07 23:07:03 +0100
committerFlorian Dold <florian@dold.me>2020-12-07 23:07:03 +0100
commit3a85de7fa4b547490cf8efc1469a79a2038a2d18 (patch)
tree4cf065d19408b5dd6cef2fe34d4410a52d69a3ae /packages
parent6d7978986ba6ba89ea3456bdb38ad5ee26d207e4 (diff)
do not store derived information information
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/types/backupTypes.ts40
1 files changed, 2 insertions, 38 deletions
diff --git a/packages/taler-wallet-core/src/types/backupTypes.ts b/packages/taler-wallet-core/src/types/backupTypes.ts
index e73bae95e..bb81f864f 100644
--- a/packages/taler-wallet-core/src/types/backupTypes.ts
+++ b/packages/taler-wallet-core/src/types/backupTypes.ts
@@ -29,10 +29,8 @@
* 1. Information about previously occurring errors and
* retries is never backed up.
* 2. The ToS text of an exchange is never backed up.
- * 3. Public keys and other cryptographic values are always exported
- * in the backup and never recomputed (this allows the import to
- * complete within a DB transaction that can't access
- * the crypto worker).
+ * 3. Derived information is never backed up (hashed values, public keys
+ * when we know the private key).
*
* @author Florian Dold <dold@taler.net>
*/
@@ -281,11 +279,6 @@ export interface BackupCoin {
coin_source: BackupCoinSource;
/**
- * Public key of the coin.
- */
- coin_pub: string;
-
- /**
* Private key to authorize operations on the coin.
*/
coin_priv: string;
@@ -296,11 +289,6 @@ export interface BackupCoin {
denom_pub: string;
/**
- * Hash of the public key that signs the coin.
- */
- denom_pub_hash: string;
-
- /**
* Unblinded signature by the exchange.
*/
denom_sig: string;
@@ -382,9 +370,7 @@ export interface BackupTip {
*/
planchets?: {
blinding_key: string;
- coin_ev: string;
coin_priv: string;
- coin_pub: string;
}[];
/**
@@ -452,21 +438,11 @@ export interface BackupRefreshSession {
new_denom_hashes: string[];
/**
- * Denominations of the newly requested coins.
- */
- new_denoms: string[];
-
- /**
* Planchets for each cut-and-choose instance.
*/
planchets_for_gammas: BackupRefreshPlanchet[][];
/**
- * The transfer keys, kappa of them.
- */
- transfer_pubs: string[];
-
- /**
* Private keys for the transfer public keys.
*/
transfer_privs: string[];
@@ -583,7 +559,6 @@ export interface BackupWithdrawalGroup {
*/
planchets: {
blinding_key: string;
- coin_priv: string;
coin_pub: string;
/**
@@ -758,12 +733,6 @@ export interface BackupDenomination {
denom_pub: string;
/**
- * Hash of the denomination public key.
- * Stored in the database for faster lookups.
- */
- denom_pub_hash: string;
-
- /**
* Fee for withdrawing.
*/
fee_withdraw: BackupAmountString;
@@ -826,11 +795,6 @@ export interface BackupDenomination {
export interface BackupReserve {
/**
- * The reserve public key.
- */
- reserve_pub: string;
-
- /**
* The reserve private key.
*/
reserve_priv: string;