summaryrefslogtreecommitdiff
path: root/api-mint.rst
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-10 17:44:43 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-10 17:44:43 +0200
commitae8d658bafe76c60042468dd7b0988d3c4215b57 (patch)
tree5f7357a3f35bb02e5357dbaba1f5b0a42e17a5cc /api-mint.rst
parent446f0b14506150c7a5b773d3ef09045d2cd640e8 (diff)
parent37d403bbe04e49445dc697ecfab23dcdb115fe1d (diff)
downloaddocs-ae8d658bafe76c60042468dd7b0988d3c4215b57.tar.gz
docs-ae8d658bafe76c60042468dd7b0988d3c4215b57.tar.bz2
docs-ae8d658bafe76c60042468dd7b0988d3c4215b57.zip
Merge branch 'master' of git.taler.net:api
Diffstat (limited to 'api-mint.rst')
-rw-r--r--api-mint.rst13
1 files changed, 11 insertions, 2 deletions
diff --git a/api-mint.rst b/api-mint.rst
index a29a8869..5a13a820 100644
--- a/api-mint.rst
+++ b/api-mint.rst
@@ -238,7 +238,7 @@ When transfering money to the mint (for example, via SEPA transfers), the mint c
:<json base32 denom_pub: denomination public key (RSA), specifying the type of coin the client would like the mint to create.
:<json base32 coin_ev: coin's blinded public key, should be (blindly) signed by the mint's denomination private key
:<json base32 reserve_pub: public (EdDSA) key of the reserve that the coin should be withdrawn from (the total amount deducted will be the coin's value plus the withdrawal fee as specified with the denomination information)
- :<json object reserve_sig: EdDSA signature_ (binary-only) of purpose `TALER_SIGNATURE_WALLET_RESERVE_WITHDRAW` created with the reserves's public key
+ :<json object reserve_sig: EdDSA signature_ (binary-only) of purpose `TALER_SIGNATURE_WALLET_RESERVE_WITHDRAW` created with the reserves's private key
**Success Response: OK**:
@@ -330,7 +330,7 @@ Deposit operations are requested by a merchant during a transaction. For the dep
:status 404: the mint does not recognize the denomination key as belonging to the mint, or it has expired
:resheader Content-Type: application/json
:>json string error: the value is "unknown entity referenced"
-:>json string paramter: the value is "denom_pub"
+ :>json string paramter: the value is "denom_pub"
**Failure response: Unsupported or invalid wire format**
@@ -394,6 +394,10 @@ However, the new coins are linkable from the private keys of all old coins using
:status 403 Forbidden: The operation is not allowed as (at least) one of the coins has insufficient funds.
:resheader Content-Type: application/json
:>json string error: the value is "insufficient funds"
+ :>json base32 coin_pub: public key of a melted coin that had insufficient funds
+ :>json amount original_value: original (total) value of the coin
+ :>json amount residual_value: remaining value of the coin
+ :>json amount requested_value: amount of the coin's value that was to be melted
:>json array history: the transaction list of the respective coin that failed to have sufficient funds left. The format is the same as for insufficient fund reports during /deposit. Note that only the transaction history for one bogus coin is given, even if multiple coins would have failed the check.
**Failure response: Unknown denomination key**
@@ -769,6 +773,11 @@ Binary Blob Specification
This section largely corresponds to the definitions in taler_signatures.h. You may also want to refer to this code, as it offers additional details on each of the members of the structs.
+ .. note::
+
+ Due to the way of handling `big` numbers by some platforms (such as `JavaScript`, for example), wherever the following specification mentions a 64-bit value, the actual implementations
+ are strongly advised to rely on arithmetic up to 53 bits.
+
This section specifies the binary representation of messages used in Taler's protocols. The message formats are given in a C-style pseudocode notation. Padding is always specified explicitly, and numeric values are in network byte order (big endian).
------------------------