From 66834b8db2102e142f7acd103cc9667a02949562 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 18 Jan 2021 17:03:22 +0100 Subject: document wire field --- core/api-exchange.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/api-exchange.rst b/core/api-exchange.rst index 670789f4..2f4ac95c 100644 --- a/core/api-exchange.rst +++ b/core/api-exchange.rst @@ -1155,10 +1155,13 @@ denomination. // coin's total value. contribution: Amount; - // The merchant's account details. This must be a JSON object whose format - // must correspond to one of the supported wire transfer formats of the exchange. - // See `wireformats`. - wire: object; + // The merchant's account details. + // The salt is used to hide the payto_uri from customers + // that learn the h_wire of the merchant. + wire: { + payto_uri: string; + salt: HashCode; + }; // SHA-512 hash of the merchant's payment details from ``wire``. Although // strictly speaking redundant, this helps detect inconsistencies. -- cgit v1.2.3