From ff202ef296527083b7b0c879bfc8363eb429b642 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 Jan 2023 13:58:56 +0100 Subject: KYC: misc. fixes to attribute attestation logic --- src/exchangedb/0003-kyc_attributes.sql | 2 +- src/exchangedb/pg_select_kyc_attributes.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/0003-kyc_attributes.sql b/src/exchangedb/0003-kyc_attributes.sql index 1547466f8..18093358e 100644 --- a/src/exchangedb/0003-kyc_attributes.sql +++ b/src/exchangedb/0003-kyc_attributes.sql @@ -32,7 +32,7 @@ BEGIN ',birthdate VARCHAR' ',collection_time INT8 NOT NULL' ',expiration_time INT8 NOT NULL' - ',encrypted_attributes VARCHAR NOT NULL' + ',encrypted_attributes BYTEA NOT NULL' ') %s ;' ,table_name ,'PARTITION BY HASH (h_payto)' diff --git a/src/exchangedb/pg_select_kyc_attributes.c b/src/exchangedb/pg_select_kyc_attributes.c index e8b2e43db..c9b992da2 100644 --- a/src/exchangedb/pg_select_kyc_attributes.c +++ b/src/exchangedb/pg_select_kyc_attributes.c @@ -75,7 +75,6 @@ get_attributes_cb (void *cls, for (unsigned int i = 0; i < num_results; i++) { - struct TALER_PaytoHashP h_payto; struct GNUNET_TIME_Timestamp collection_time; struct GNUNET_TIME_Timestamp expiration_time; size_t enc_attributes_size; @@ -83,8 +82,6 @@ get_attributes_cb (void *cls, char *provider; char *birthdate = NULL; struct GNUNET_PQ_ResultSpec rs[] = { - GNUNET_PQ_result_spec_auto_from_type ("h_payto", - &h_payto), GNUNET_PQ_result_spec_string ("provider", &provider), GNUNET_PQ_result_spec_allow_null ( -- cgit v1.2.3