aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taler-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-06 17:18:53 +0200
committerFlorian Dold <florian@dold.me>2023-06-06 17:18:53 +0200
commit698f356659b1c2b029eaaa22c74f3474ff2f99c1 (patch)
tree1f551f06c06d2db0c408e2fb80a2f2be71811cc3 /packages/taler-util/src/taler-types.ts
parent002ab0dab7b83c5999b0f82c430e716c718251e6 (diff)
downloadwallet-core-698f356659b1c2b029eaaa22c74f3474ff2f99c1.tar.xz
wallet-core: check base URL reported by exchange
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r--packages/taler-util/src/taler-types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts
index 570e64d7c..4d4a60d91 100644
--- a/packages/taler-util/src/taler-types.ts
+++ b/packages/taler-util/src/taler-types.ts
@@ -719,6 +719,12 @@ export class ExchangeSignKeyJson {
* Structure that the exchange gives us in /keys.
*/
export class ExchangeKeysJson {
+
+ /**
+ * Canonical, public base URL of the exchange.
+ */
+ base_url: string;
+
/**
* List of offered denominations.
*/
@@ -1401,6 +1407,7 @@ export const codecForGlobalFees = (): Codec<GlobalFees> =>
export const codecForExchangeKeysJson = (): Codec<ExchangeKeysJson> =>
buildCodecForObject<ExchangeKeysJson>()
.property("denoms", codecForList(codecForDenomination()))
+ .property("base_url", codecForString())
.property("master_public_key", codecForString())
.property("auditors", codecForList(codecForAuditor()))
.property("list_issue_date", codecForTimestamp)