summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts41
1 files changed, 31 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 7a7c36561..2c009b4c5 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -357,20 +357,41 @@ export interface AuditorRecord {
expirationStamp: number;
}
-/**
- * Exchange for currencies as stored in the wallet's currency
- * information database.
- */
-export interface ExchangeForCurrencyRecord {
+
+export interface AuditorTrustInfo {
/**
- * FIXME: unused?
+ * Base URL of the auditor.
*/
- exchangeMasterPub: string;
+ auditorBaseUrl: string;
/**
- * Base URL of the exchange.
+ * Public key of the auditor.
+ */
+ auditorPub: string;
+
+ /**
+ * UIDs for the operation of adding this auditor
+ * as a trusted auditor.
+ */
+ uids: string[];
+}
+
+export interface ExchangeTrustInfo {
+ /**
+ * Canonicalized exchange base URL.
*/
exchangeBaseUrl: string;
+
+ /**
+ * Master public key of the exchange.
+ */
+ exchangeMasterPub: string;
+
+ /**
+ * UIDs for the operation of adding this exchange
+ * as trusted.
+ */
+ uids: string[];
}
/**
@@ -390,12 +411,12 @@ export interface CurrencyRecord {
/**
* Auditors that the wallet trusts for this currency.
*/
- auditors: AuditorRecord[];
+ auditors: AuditorTrustInfo[];
/**
* Exchanges that the wallet trusts for this currency.
*/
- exchanges: ExchangeForCurrencyRecord[];
+ exchanges: ExchangeTrustInfo[];
}
/**