diff options
-rw-r--r-- | impl-merchant.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/impl-merchant.rst b/impl-merchant.rst index 505376d0..28bfc76b 100644 --- a/impl-merchant.rst +++ b/impl-merchant.rst @@ -52,10 +52,11 @@ The following API are made available by the merchant's `backend` to the merchant .. http:post:: /hash-contract - Ask the backend to compute the hash of the `contract` given in the POST's body. This feature - allows frontends to verify that names of resources which are going to be sold are actually `in` - the paid cotnract. Without this feature, a malicious wallet can request resource A and pay for - resource B without the frontend being aware of that. + Ask the backend to compute the hash of the `contract` given in the POST's body (the full contract + should be the value of a JSON field named `contract`). This feature allows frontends to verify + that names of resources which are going to be sold are actually `in` the paid cotnract. Without + this feature, a malicious wallet can request resource A and pay for resource B without the frontend + being aware of that. **Response** |