From 6a62e21d9aed1119694b9fd538b9b3beae5a8960 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 6 Nov 2021 17:26:28 +0100 Subject: update specification to match protocolv9 --- core/api-exchange.rst | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'core/api-exchange.rst') diff --git a/core/api-exchange.rst b/core/api-exchange.rst index 3f0be5a1..1fa4b0b9 100644 --- a/core/api-exchange.rst +++ b/core/api-exchange.rst @@ -1645,16 +1645,11 @@ denomination. contribution: Amount; // The merchant's account details. + merchant_payto_uri: string; + // 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. - h_wire: HashCode; + // when computing the ``h_wire`` of the merchant. + wire_salt: WireSalt; // SHA-512 hash of the contract of the merchant with the customer. Further // details are never disclosed to the exchange. @@ -2481,8 +2476,8 @@ typically also view the balance.) // Public key of the merchant (identical for all deposits). merchant_pub: EddsaPublicKey; - // Hash of the wire details (identical for all deposits). - h_wire: HashCode; + // Hash of the payto:// account URI (identical for all deposits). + h_payto: PaytoHash; // Time of the execution of the wire transfer by the exchange. execution_time: Timestamp; -- cgit v1.2.3