From 8951abfc505c38aaea2b709e5540e84cf7971cf4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 10 Oct 2021 17:18:24 +0200 Subject: -finish implemnetation of /kyc-check client library --- src/include/taler_signatures.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/include/taler_signatures.h') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 6b5d3768..93e48b7c 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -167,6 +167,12 @@ */ #define TALER_SIGNATURE_EXCHANGE_AFFIRM_DENOM_EXPIRED 1043 +/** + * Signature by which an exchange affirms that an account + * successfully passed the KYC checks. + */ +#define TALER_SIGNATURE_EXCHANGE_ACCOUNT_SETUP_SUCCESS 1044 + /**********************/ /* Auditor signatures */ @@ -818,6 +824,31 @@ struct TALER_ExchangeKeySetPS }; +/** + * @brief Signature by which an exchange affirms that an account + * successfully passed the KYC checks. + */ +struct TALER_ExchangeAccountSetupSuccessPS +{ + /** + * Purpose is #TALER_SIGNATURE_EXCHANGE_ACCOUNT_SETUP_SUCCESS. Signed by a + * `struct TALER_ExchangePublicKeyP` using EdDSA. + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * Hash over the payto for which the signature was + * made. + */ + struct GNUNET_HashCode h_payto; + + /** + * When was the signature made. + */ + struct GNUNET_TIME_AbsoluteNBO timestamp; +}; + + /** * @brief Signature made by the exchange offline key over the information of * an auditor to be added to the exchange's set of auditors. -- cgit v1.2.3