From 1f6c8d0c33e054723115333d94d634a16ddaa7c2 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 5 Oct 2022 19:26:04 +0200 Subject: refactor h_extensions -> h_policy, and structs accordingly --- src/include/taler_exchangedb_plugin.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 1cca0bc2..31ccf81c 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1380,10 +1380,16 @@ struct TALER_EXCHANGEDB_Deposit char *receiver_wire_account; /** - * Additional details for extensions relevant for this + * Additional details for a policy relevant for this * deposit operation, possibly NULL! */ - json_t *extension_details; + json_t *policy_details; + bool no_policy_details; + + /** + * Hash over the @e policy_details. Only filled if no_policy_details is false. + */ + struct TALER_ExtensionPolicyHashP h_policy; /** * Time when this request was generated. Used, for example, to @@ -1456,6 +1462,12 @@ struct TALER_EXCHANGEDB_DepositListEntry */ struct TALER_PrivateContractHashP h_contract_terms; + /** + * Hash over the poliy data for this deposit + * (remains unknown to the Exchange). + */ + struct TALER_ExtensionPolicyHashP h_policy; + /** * Hash of the public denomination key used to sign the coin. */ -- cgit v1.2.3