aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-03-13 00:31:49 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-03-13 00:31:49 +0100
commit187ae6f8a2231628be944ae43ef53f47b8428d12 (patch)
tree40298af848d265e79ab5bf8e7271e7dc3f7abe67 /src/exchangedb
parent62da9cca275d7a37a640a962c0d04278288986f6 (diff)
downloadexchange-187ae6f8a2231628be944ae43ef53f47b8428d12.tar.xz
WIP: age-withdraw, continue verify_commitment_and_max_age, 7/n
- coin, blinding, nonce and age restriction now derived from TALER_PlanchetMasterSecretP - use max_age instead than max_age_group as argument - Also, docs updated in other repo.
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/0003-withdraw_age_commitments.sql6
-rw-r--r--src/exchangedb/pg_get_age_withdraw_info.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/exchangedb/0003-withdraw_age_commitments.sql b/src/exchangedb/0003-withdraw_age_commitments.sql
index 6064880bd..6c153598d 100644
--- a/src/exchangedb/0003-withdraw_age_commitments.sql
+++ b/src/exchangedb/0003-withdraw_age_commitments.sql
@@ -29,7 +29,7 @@ BEGIN
',h_commitment BYTEA PRIMARY KEY CHECK (LENGTH(h_commitment)=64)'
',amount_with_fee_val INT8 NOT NULL'
',amount_with_fee_frac INT4 NOT NULL'
- ',max_age_group INT2 NOT NULL'
+ ',max_age INT2 NOT NULL'
',reserve_pub BYTEA NOT NULL CHECK (LENGTH(reserve_pub)=32)'
',reserve_sig BYTEA CHECK (LENGTH(reserve_sig)=64)'
',noreveal_index INT4 NOT NULL'
@@ -51,8 +51,8 @@ BEGIN
,partition_suffix
);
PERFORM comment_partitioned_column(
- 'The maximum age group that the client commits to with this request'
- ,'max_age_group'
+ 'The maximum age that the client commits to with this request'
+ ,'max_age'
,table_name
,partition_suffix
);
diff --git a/src/exchangedb/pg_get_age_withdraw_info.c b/src/exchangedb/pg_get_age_withdraw_info.c
index 7662d4b51..02ccc84ac 100644
--- a/src/exchangedb/pg_get_age_withdraw_info.c
+++ b/src/exchangedb/pg_get_age_withdraw_info.c
@@ -45,8 +45,8 @@ TEH_PG_get_age_withdraw_info (
&awc->reserve_sig),
GNUNET_PQ_result_spec_auto_from_type ("reserve_pub",
&awc->reserve_pub),
- GNUNET_PQ_result_spec_uint32 ("max_age_group",
- &awc->max_age_group),
+ GNUNET_PQ_result_spec_uint32 ("max_age",
+ &awc->max_age),
TALER_PQ_RESULT_SPEC_AMOUNT ("amount_with_fee",
&awc->amount_with_fee),
GNUNET_PQ_result_spec_uint32 ("noreveal_index",
@@ -66,7 +66,7 @@ TEH_PG_get_age_withdraw_info (
" h_commitment"
",reserve_sig"
",reserve_pub"
- ",max_age_group"
+ ",max_age"
",amount_with_fee_val"
",amount_with_fee_frac"
",noreveal_index"