diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-29 13:58:56 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-29 13:58:56 +0100 |
commit | ff202ef296527083b7b0c879bfc8363eb429b642 (patch) | |
tree | 83d281ca52b92917e6c7637760fca8eb25c04e57 /src/exchangedb | |
parent | 99753a5d31868af36285418ed317eeef50921b67 (diff) | |
download | exchange-ff202ef296527083b7b0c879bfc8363eb429b642.tar.xz |
KYC: misc. fixes to attribute attestation logic
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/0003-kyc_attributes.sql | 2 | ||||
-rw-r--r-- | src/exchangedb/pg_select_kyc_attributes.c | 3 |
2 files changed, 1 insertions, 4 deletions
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 ( |