aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-17 15:58:23 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-17 15:58:23 +0200
commitb38b51d5e8b71f2fcf30dc6aaef82c1fbcede5f8 (patch)
treef1b8938c3c61c7313ab80ff2e7026cfadf7d90cd /src/include
parentc6c9db0c8e3768b44b8ec41a8ef173fbd2985c5b (diff)
implement /kyc-check, add skeleton for /kyc-proof
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h23
1 files changed, 23 insertions, 0 deletions
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.
@@ -2368,6 +2375,22 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * 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).
*