summaryrefslogtreecommitdiff
path: root/core/api-exchange.rst
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-01-11 17:27:06 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-01-11 17:27:06 +0100
commitd968732afb32da7b7ec1ea4c54e3fcced530e5f3 (patch)
treec3e502dcca023dd75c9cdb336485e51c7f1eec12 /core/api-exchange.rst
parentbccd5efc461707d7c53937a890adaf3f722085dc (diff)
downloaddocs-d968732afb32da7b7ec1ea4c54e3fcced530e5f3.tar.gz
docs-d968732afb32da7b7ec1ea4c54e3fcced530e5f3.tar.bz2
docs-d968732afb32da7b7ec1ea4c54e3fcced530e5f3.zip
added description of how to derive cs-nonce from the coin_priv for withdraw-ageage-restriction
Diffstat (limited to 'core/api-exchange.rst')
-rw-r--r--core/api-exchange.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index ab046350..db192e07 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -2190,6 +2190,10 @@ If so, the exchange will blindly sign ``n`` undisclosed coins from the request.
.. ts:def:: AgeWithdrawRevealRequest
interface AgeWithdrawRevealRequest {
+ // The public key of the reserve that was used for the initial commitment
+ // request. Needed for optimized database lookup.
+ reserve_pub: EddsaPublicKey;
+
// Array of ``n`` hash codes of denomination public keys to order.
// These denominations MUST support age restriction as defined in the
// output to /keys.
@@ -2217,6 +2221,10 @@ If so, the exchange will blindly sign ``n`` undisclosed coins from the request.
// Calculate the blinding beta as
// beta := HKDF(coin_priv, "blinding")
//
+ // If the denominations are for Clause-Schnorr-Signatures, calculate the
+ // nonce as
+ // nonce := HKDF(coin_priv, "cs-nonce")
+ //
// Let m ∈ {1,...,M} be the maximum age group as defined in the reserve
// that the wallet can commit to.
//