summaryrefslogtreecommitdiff
path: root/core/api-exchange.rst
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-06 17:26:28 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-06 17:26:33 +0100
commit6a62e21d9aed1119694b9fd538b9b3beae5a8960 (patch)
tree93eb425aa0ab7f145870164502bf4076f3d58321 /core/api-exchange.rst
parentec63e00a134458c98fd9d242fb660cfe7469dde0 (diff)
downloaddocs-6a62e21d9aed1119694b9fd538b9b3beae5a8960.tar.gz
docs-6a62e21d9aed1119694b9fd538b9b3beae5a8960.tar.bz2
docs-6a62e21d9aed1119694b9fd538b9b3beae5a8960.zip
update specification to match protocolv9
Diffstat (limited to 'core/api-exchange.rst')
-rw-r--r--core/api-exchange.rst17
1 files changed, 6 insertions, 11 deletions
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;