taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit b202712a558b2c6c5008590c2303d4cbba34cf31
parent 9c7363a8746f52e75576b4f8915a69bac68482dd
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 17 Dec 2023 22:03:59 +0800

return more data from /config for merchant SPA as requested by sebastian

Diffstat:
Mcore/api-merchant.rst | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git 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; }