make coins part of their denomination in backup
This commit is contained in:
parent
0e33e540f3
commit
80f5d2d0f3
@ -301,7 +301,7 @@ export type BackupCoinSource =
|
|||||||
/**
|
/**
|
||||||
* Backup information about a coin.
|
* Backup information about a coin.
|
||||||
*
|
*
|
||||||
* (Always part of a BackupExchange)
|
* (Always part of a BackupExchange/BackupDenom)
|
||||||
*/
|
*/
|
||||||
export interface BackupCoin {
|
export interface BackupCoin {
|
||||||
/**
|
/**
|
||||||
@ -314,11 +314,6 @@ export interface BackupCoin {
|
|||||||
*/
|
*/
|
||||||
coin_priv: string;
|
coin_priv: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Key used by the exchange used to sign the coin.
|
|
||||||
*/
|
|
||||||
denom_pub: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unblinded signature by the exchange.
|
* Unblinded signature by the exchange.
|
||||||
*/
|
*/
|
||||||
@ -805,6 +800,11 @@ export interface BackupDenomination {
|
|||||||
* should also mark all affected coins as revoked.
|
* should also mark all affected coins as revoked.
|
||||||
*/
|
*/
|
||||||
is_revoked: boolean;
|
is_revoked: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Coins of this denomination.
|
||||||
|
*/
|
||||||
|
coins: BackupCoin[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BackupReserve {
|
export interface BackupReserve {
|
||||||
@ -1005,8 +1005,6 @@ export interface BackupExchange {
|
|||||||
*/
|
*/
|
||||||
reserves: BackupReserve[];
|
reserves: BackupReserve[];
|
||||||
|
|
||||||
coins: BackupCoin[];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Last observed protocol version.
|
* Last observed protocol version.
|
||||||
*/
|
*/
|
||||||
@ -1025,7 +1023,10 @@ export interface BackupExchange {
|
|||||||
*/
|
*/
|
||||||
accounts: {
|
accounts: {
|
||||||
payto_uri: string;
|
payto_uri: string;
|
||||||
master_sig: string;
|
/**
|
||||||
|
* Optional, since older wallets don't store this.
|
||||||
|
*/
|
||||||
|
master_sig?: string;
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user