diff options
author | Florian Dold <florian@dold.me> | 2023-06-06 17:18:53 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-06 17:18:53 +0200 |
commit | 698f356659b1c2b029eaaa22c74f3474ff2f99c1 (patch) | |
tree | 1f551f06c06d2db0c408e2fb80a2f2be71811cc3 /packages/taler-util/src/taler-types.ts | |
parent | 002ab0dab7b83c5999b0f82c430e716c718251e6 (diff) | |
download | wallet-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.ts | 7 |
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) |