do not store derived information information
This commit is contained in:
parent
6d7978986b
commit
3a85de7fa4
@ -29,10 +29,8 @@
|
|||||||
* 1. Information about previously occurring errors and
|
* 1. Information about previously occurring errors and
|
||||||
* retries is never backed up.
|
* retries is never backed up.
|
||||||
* 2. The ToS text of an exchange 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
|
* 3. Derived information is never backed up (hashed values, public keys
|
||||||
* in the backup and never recomputed (this allows the import to
|
* when we know the private key).
|
||||||
* complete within a DB transaction that can't access
|
|
||||||
* the crypto worker).
|
|
||||||
*
|
*
|
||||||
* @author Florian Dold <dold@taler.net>
|
* @author Florian Dold <dold@taler.net>
|
||||||
*/
|
*/
|
||||||
@ -280,11 +278,6 @@ export interface BackupCoin {
|
|||||||
*/
|
*/
|
||||||
coin_source: BackupCoinSource;
|
coin_source: BackupCoinSource;
|
||||||
|
|
||||||
/**
|
|
||||||
* Public key of the coin.
|
|
||||||
*/
|
|
||||||
coin_pub: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private key to authorize operations on the coin.
|
* Private key to authorize operations on the coin.
|
||||||
*/
|
*/
|
||||||
@ -295,11 +288,6 @@ export interface BackupCoin {
|
|||||||
*/
|
*/
|
||||||
denom_pub: string;
|
denom_pub: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Hash of the public key that signs the coin.
|
|
||||||
*/
|
|
||||||
denom_pub_hash: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unblinded signature by the exchange.
|
* Unblinded signature by the exchange.
|
||||||
*/
|
*/
|
||||||
@ -382,9 +370,7 @@ export interface BackupTip {
|
|||||||
*/
|
*/
|
||||||
planchets?: {
|
planchets?: {
|
||||||
blinding_key: string;
|
blinding_key: string;
|
||||||
coin_ev: string;
|
|
||||||
coin_priv: string;
|
coin_priv: string;
|
||||||
coin_pub: string;
|
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -451,21 +437,11 @@ export interface BackupRefreshSession {
|
|||||||
*/
|
*/
|
||||||
new_denom_hashes: string[];
|
new_denom_hashes: string[];
|
||||||
|
|
||||||
/**
|
|
||||||
* Denominations of the newly requested coins.
|
|
||||||
*/
|
|
||||||
new_denoms: string[];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Planchets for each cut-and-choose instance.
|
* Planchets for each cut-and-choose instance.
|
||||||
*/
|
*/
|
||||||
planchets_for_gammas: BackupRefreshPlanchet[][];
|
planchets_for_gammas: BackupRefreshPlanchet[][];
|
||||||
|
|
||||||
/**
|
|
||||||
* The transfer keys, kappa of them.
|
|
||||||
*/
|
|
||||||
transfer_pubs: string[];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private keys for the transfer public keys.
|
* Private keys for the transfer public keys.
|
||||||
*/
|
*/
|
||||||
@ -583,7 +559,6 @@ export interface BackupWithdrawalGroup {
|
|||||||
*/
|
*/
|
||||||
planchets: {
|
planchets: {
|
||||||
blinding_key: string;
|
blinding_key: string;
|
||||||
coin_priv: string;
|
|
||||||
coin_pub: string;
|
coin_pub: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -757,12 +732,6 @@ export interface BackupDenomination {
|
|||||||
*/
|
*/
|
||||||
denom_pub: string;
|
denom_pub: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Hash of the denomination public key.
|
|
||||||
* Stored in the database for faster lookups.
|
|
||||||
*/
|
|
||||||
denom_pub_hash: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fee for withdrawing.
|
* Fee for withdrawing.
|
||||||
*/
|
*/
|
||||||
@ -825,11 +794,6 @@ export interface BackupDenomination {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface BackupReserve {
|
export interface BackupReserve {
|
||||||
/**
|
|
||||||
* The reserve public key.
|
|
||||||
*/
|
|
||||||
reserve_pub: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The reserve private key.
|
* The reserve private key.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user