summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/api-merchant.rst22
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;
}