From b38b51d5e8b71f2fcf30dc6aaef82c1fbcede5f8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Oct 2021 15:58:23 +0200 Subject: implement /kyc-check, add skeleton for /kyc-proof --- src/include/taler_exchangedb_plugin.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 4b90396bb..b8c504063 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1630,6 +1630,13 @@ struct TALER_EXCHANGEDB_RefreshRevealedCoin */ enum TALER_EXCHANGEDB_KycType { + + /** + * It is unclear for which type of KYC operation + * this information is. + */ + TALER_EXCHANGEDB_KYC_UNKNOWN = 0, + /** * KYC to be applied for simple withdraws without * the involvement of wallet-to-wallet payments. @@ -2367,6 +2374,22 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_KycStatus *kyc); + /** + * Get the @a kyc status and @a h_payto by UUID. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param payment_target_uuid which account to get the KYC status for + * @param[out] h_payto set to the hash of the account's payto URI (unsalted) + * @param[out] kyc set to the KYC status of the account + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*select_kyc_status)(void *cls, + uint64_t payment_target_uuid, + struct GNUNET_HashCode *h_payto, + struct TALER_EXCHANGEDB_KycStatus *kyc); + + /** * Get the KYC status for a wallet. If the status is unknown, * inserts a new status record (hence INsertSELECT). -- cgit v1.2.3