Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WalletBackupContentV1

Content of the backup.

The contents of the wallet must be serialized in a deterministic way across implementations, so that the normalized backup content JSON is identical when the wallet's content is identical.

Hierarchy

  • WalletBackupContentV1

Index

Properties

backup_providers

backup_providers: BackupBackupProvider[]

All backup providers.

Sorted by the provider base URL.

clocks

clocks: {}

Monotonically increasing clock of the wallet, used to determine causality when merging backups.

Information about other clocks, used to delete tombstones in the hopefully rare case that multiple wallets are connected to the same sync server.

Type declaration

  • [device_id: string]: number

current_device_id

current_device_id: string

Current device identifier that "owns" the backup.

This identifier allows one wallet to notice when another wallet is "alive" and connected to the same sync provider.

error_reports

error_reports: BackupErrorReport[]

Permanent error reports.

exchanges

exchanges: BackupExchange[]

Per-exchange data sorted by exchange master public key.

Sorted by the exchange public key.

intern_table

intern_table: {}

Interning table for forgettable values of contract terms.

Used to reduce storage space, as many forgettable items (product image, addresses, etc.) might be shared among many contract terms.

Type declaration

  • [hash: string]: any

proposals

proposals: BackupProposal[]

Proposals from merchants. The proposal may be deleted as soon as it has been accepted (and thus turned into a purchase).

Sorted by the proposal ID.

purchase_tombstones

purchase_tombstones: { clock_deleted: ClockStamp; proposal_id: string }[]

Tombstones for deleting purchases.

purchases

purchases: BackupPurchase[]

Accepted purchases.

Sorted by the proposal ID.

recoup_groups

recoup_groups: BackupRecoupGroup[]

Recoup groups.

refresh_groups

refresh_groups: BackupRefreshGroup[]

Grouped refresh sessions.

Sorted by the refresh group ID.

schema_id

schema_id: "gnu-taler-wallet-backup-content"

Magic constant to identify that this is a backup content JSON.

schema_version

schema_version: 1

Version of the schema.

timestamp

timestamp: Timestamp

Timestamp of the backup.

This timestamp should only be advanced if the content of the backup changes.

tips

tips: BackupTip[]

Tips.

Sorted by the wallet tip ID.

trusted_auditors

trusted_auditors: {}

Trusted auditors, either for official (3 letter) or local (4-12 letter) currencies.

Auditors are sorted by their canonicalized base URL.

Type declaration

trusted_exchanges

trusted_exchanges: {}

Trusted exchange. Only applicable for local currencies (4-12 letter currency code).

Exchanges are sorted by their canonicalized base URL.

Type declaration

wallet_root_pub

wallet_root_pub: string

Root public key of the wallet. This field is present as a sanity check if the backup content JSON is loaded from file.

Generated using TypeDoc