From b202712a558b2c6c5008590c2303d4cbba34cf31 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Dec 2023 22:03:59 +0800 Subject: return more data from /config for merchant SPA as requested by sebastian --- core/api-merchant.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'core/api-merchant.rst') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 7792b65c..5c5b3ca5 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -154,6 +154,28 @@ such as the implemented version of the protocol and the currency used. // the backend. currencies: { currency : CurrencySpecification}; + // Array of exchanges trusted by the merchant. + // Since protocol v6. + exchanges: ExchangeConfigInfo[]; + + } + + .. ts:def:: ExchangeConfigInfo + + interface ExchangeConfigInfo { + + // Base URL of the exchange REST API. + base_url: string; + + // Currency for which the exchange is configured. + // May not be the one the exchange actually uses, + // but is the only one we would trust this exchange for. + currency: string; + + // Offline master public key of the exchange. The + // ``/keys`` data must be signed with this public + // key for us to trust it. + master_pub: EddsaPublicKey; } -- cgit v1.2.3