diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-14 20:10:06 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-14 20:10:06 +0200 |
commit | 63b19fad0cbcafa340d3344c9dc33c06402371a6 (patch) | |
tree | 2d96278051f09dcead1c6470e1258d3bdb7d6bde /src/include/taler_exchangedb_plugin.h | |
parent | 29e5cd0ef5e53cfdb39f4dd5b43902c2b63571e5 (diff) |
simplify datastructures
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 881e0cef..6d8b8ec2 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1448,30 +1448,6 @@ struct TALER_EXCHANGEDB_Deposit char *receiver_wire_account; /** - * Additional policy and its options, relevant for this deposit operation, - * possibly NULL! - */ - json_t *policy_json; - - /* - * True if @e policy_json was provided - */ - bool has_policy; - - /** - * Hash over the @e policy_options. Only filled if @e has_policy is true. - * Needed for the verification of the deposit's signature - */ - struct TALER_ExtensionPolicyHashP h_policy; - - /** - * If @e policy_json was present, the corresponding policy extension - * calculates these details. These will be persisted in the policy_details - * table. - */ - struct TALER_PolicyDetails policy_details; - - /** * Time when this request was generated. Used, for example, to * assess when (roughly) the income was achieved for tax purposes. * Note that the Exchange will only check that the timestamp is not "too @@ -1512,6 +1488,17 @@ struct TALER_EXCHANGEDB_Deposit */ struct TALER_Amount deposit_fee; + /* + * True if @e policy_json was provided + */ + bool has_policy; + + /** + * Hash over the policy data for this deposit (remains unknown to the + * Exchange). Needed for the verification of the deposit's signature + */ + struct TALER_ExtensionPolicyHashP h_policy; + }; @@ -1543,12 +1530,6 @@ struct TALER_EXCHANGEDB_DepositListEntry struct TALER_PrivateContractHashP h_contract_terms; /** - * Hash over the policy data for this deposit (remains unknown to the - * Exchange). Needed for the verification of the deposit's signature - */ - struct TALER_ExtensionPolicyHashP h_policy; - - /** * Hash of the public denomination key used to sign the coin. */ struct TALER_DenominationHashP h_denom_pub; @@ -1616,6 +1597,18 @@ struct TALER_EXCHANGEDB_DepositListEntry */ struct TALER_Amount deposit_fee; + /* + * True if a policy was provided with the deposit request + */ + bool has_policy; + + /** + * Hash over the policy data for this deposit (remains unknown to the + * Exchange). Needed for the verification of the deposit's signature + */ + struct TALER_ExtensionPolicyHashP h_policy; + + /** * Has the deposit been wired? */ |