summaryrefslogtreecommitdiff
path: root/src/util/offline_signatures.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-03-05 15:13:07 +0100
committerChristian Grothoff <christian@grothoff.org>2022-03-05 15:13:07 +0100
commit5fa977cc05daca469044711ffb6a497287094c70 (patch)
tree2d6aa23e13f0ec088bdcc20074285bf2493a0a0d /src/util/offline_signatures.c
parent841e56bafd64e8c1aea29dc542a2d9d0cd1bc74e (diff)
downloadexchange-5fa977cc05daca469044711ffb6a497287094c70.tar.gz
exchange-5fa977cc05daca469044711ffb6a497287094c70.tar.bz2
exchange-5fa977cc05daca469044711ffb6a497287094c70.zip
work on global fee structure
Diffstat (limited to 'src/util/offline_signatures.c')
-rw-r--r--src/util/offline_signatures.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/util/offline_signatures.c b/src/util/offline_signatures.c
index 2a358bbf1..1085ac151 100644
--- a/src/util/offline_signatures.c
+++ b/src/util/offline_signatures.c
@@ -471,6 +471,10 @@ TALER_exchange_offline_global_fee_sign (
struct GNUNET_TIME_Timestamp start_time,
struct GNUNET_TIME_Timestamp end_time,
const struct TALER_GlobalFeeSet *fees,
+ struct GNUNET_TIME_Relative purse_timeout,
+ struct GNUNET_TIME_Relative kyc_timeout,
+ struct GNUNET_TIME_Relative history_expiration,
+ uint32_t purse_account_limit,
const struct TALER_MasterPrivateKeyP *master_priv,
struct TALER_MasterSignatureP *master_sig)
{
@@ -479,6 +483,10 @@ TALER_exchange_offline_global_fee_sign (
.purpose.size = htonl (sizeof (kv)),
.start_date = GNUNET_TIME_timestamp_hton (start_time),
.end_date = GNUNET_TIME_timestamp_hton (end_time),
+ .purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
+ .kyc_timeout = GNUNET_TIME_relative_hton (kyc_timeout),
+ .history_expiration = GNUNET_TIME_relative_hton (history_expiration),
+ .purse_account_limit = htonl (purse_account_limit)
};
TALER_global_fee_set_hton (&kv.fees,
@@ -494,6 +502,10 @@ TALER_exchange_offline_global_fee_verify (
struct GNUNET_TIME_Timestamp start_time,
struct GNUNET_TIME_Timestamp end_time,
const struct TALER_GlobalFeeSet *fees,
+ struct GNUNET_TIME_Relative purse_timeout,
+ struct GNUNET_TIME_Relative kyc_timeout,
+ struct GNUNET_TIME_Relative history_expiration,
+ uint32_t purse_account_limit,
const struct TALER_MasterPublicKeyP *master_pub,
const struct TALER_MasterSignatureP *master_sig)
{
@@ -501,7 +513,11 @@ TALER_exchange_offline_global_fee_verify (
.purpose.purpose = htonl (TALER_SIGNATURE_MASTER_GLOBAL_FEES),
.purpose.size = htonl (sizeof (wf)),
.start_date = GNUNET_TIME_timestamp_hton (start_time),
- .end_date = GNUNET_TIME_timestamp_hton (end_time)
+ .end_date = GNUNET_TIME_timestamp_hton (end_time),
+ .purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
+ .kyc_timeout = GNUNET_TIME_relative_hton (kyc_timeout),
+ .history_expiration = GNUNET_TIME_relative_hton (history_expiration),
+ .purse_account_limit = htonl (purse_account_limit)
};
TALER_global_fee_set_hton (&wf.fees,