From 665946b1a166c897bc36540c1997c3984df6f4e8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 26 Jun 2019 13:40:34 +0200 Subject: add TALER_CoinLinkSignaturePS --- api-common.rst | 14 ++++++++++++++ api-exchange.rst | 2 ++ 2 files changed, 16 insertions(+) diff --git a/api-common.rst b/api-common.rst index 3b0bc4b2..8f3ae378 100644 --- a/api-common.rst +++ b/api-common.rst @@ -796,3 +796,17 @@ within the struct TALER_ReservePublicKeyP reserve_pub; struct GNUNET_HashCode h_wire; }; + +.. _TALER_CoinLinkSignaturePS: +.. sourcecode:: c + + struct TALER_CoinLinkSignaturePS { + /** + * purpose.purpose = TALER_SIGNATURE_WALLET_COIN_LINK + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + struct GNUNET_HashCode h_denom_pub; + struct TALER_CoinSpendPublicKeyP old_coin_pub; + struct TALER_TransferPublicKeyP transfer_pub; + struct GNUNET_HashCode coin_envelope_hash; + }; diff --git a/api-exchange.rst b/api-exchange.rst index 48352cf4..bf214d58 100644 --- a/api-exchange.rst +++ b/api-exchange.rst @@ -877,6 +877,7 @@ the API during normal operation. // Signature made by the wallet using the old coin's private key, // used later to verify the /refresh/link response from the exchange. + // Signs over a `TALER_CoinLinkSignaturePS`_ link_sig: EddsaSignature; // The original commitment, used to match the /refresh/reveal @@ -960,6 +961,7 @@ the API during normal operation. coin_ev: CoinEnvelope; // Signature made by the old coin over the refresh request. + // Signs over a `TALER_CoinLinkSignaturePS`_ link_sig: EddsaSignature; } -- cgit v1.2.3