diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-17 22:03:59 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-17 22:16:06 +0800 |
commit | b202712a558b2c6c5008590c2303d4cbba34cf31 (patch) | |
tree | d07e6cea025b920ac6762a34a7f1a983e6df6ab3 | |
parent | 9c7363a8746f52e75576b4f8915a69bac68482dd (diff) | |
download | docs-b202712a558b2c6c5008590c2303d4cbba34cf31.tar.gz docs-b202712a558b2c6c5008590c2303d4cbba34cf31.tar.bz2 docs-b202712a558b2c6c5008590c2303d4cbba34cf31.zip |
return more data from /config for merchant SPA as requested by sebastian
-rw-r--r-- | core/api-merchant.rst | 22 |
1 files changed, 22 insertions, 0 deletions
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; } |