aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-13 14:16:06 +0200
committerFlorian Dold <florian@dold.me>2023-04-13 14:16:06 +0200
commit7944a36e30182638b35da6e113b29de8b5f16305 (patch)
treeee06040d66e53c867fa42a59c35b79cc6c3099a3 /packages/taler-util
parent30227773630ec1baac73793b5da25dab1bf2c357 (diff)
wallet-core: check master public key in /wire response
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/taler-types.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts
index 48eb49d22..f9e39e77e 100644
--- a/packages/taler-util/src/taler-types.ts
+++ b/packages/taler-util/src/taler-types.ts
@@ -843,6 +843,7 @@ export interface AccountInfo {
}
export interface ExchangeWireJson {
+ master_public_key: string;
accounts: AccountInfo[];
fees: { [methodName: string]: WireFeesJson[] };
}
@@ -1432,6 +1433,7 @@ export const codecForExchangeWireJson = (): Codec<ExchangeWireJson> =>
buildCodecForObject<ExchangeWireJson>()
.property("accounts", codecForList(codecForAccountInfo()))
.property("fees", codecForMap(codecForList(codecForWireFeesJson())))
+ .property("master_public_key", codecForString())
.build("ExchangeWireJson");
export const codecForProposal = (): Codec<Proposal> =>