commit fec66bc7750b65d76e1e44789a693e29af8f3eef
parent d0a58ae5a4fd2c258309d7790d08ea9213d33108
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Mon, 2 Oct 2023 00:20:38 +0200
some header changes
Diffstat:
1 file changed, 7 insertions(+), 100 deletions(-)
diff --git a/src/include/taler_donau_service.h b/src/include/taler_donau_service.h
@@ -46,7 +46,7 @@ struct TALER_DONAU_SigningPublicKey
/**
* Signature over this signing key by the donau's master signature.
*/
- struct TALER_MasterSignatureP master_sig;
+ // struct TALER_MasterSignatureP master_sig;
/**
* Validity start time
@@ -81,54 +81,10 @@ struct TALER_DONAU_BDRPublicKey
struct TALER_BDRHashP h_key;
/**
- * Donau's master signature over this BDR record.
- */
- struct TALER_MasterSignatureP master_sig;
-
- /**
- * Timestamp indicating when the BDR key becomes valid
- */
- struct GNUNET_TIME_Timestamp valid_from;
-
- /**
- * Timestamp indicating when the BDR key can’t be used anymore to
- * withdraw new coins.
- */
- struct GNUNET_TIME_Timestamp withdraw_valid_until;
-
- /**
- * Timestamp indicating when coins of this BDR become invalid.
- */
- struct GNUNET_TIME_Timestamp expire_deposit;
-
- /**
- * When do signatures with this BDR key become invalid?
- * After this point, these signatures cannot be used in (legal)
- * disputes anymore, as the Donau is then allowed to destroy its side
- * of the evidence. @e expire_legal is expected to be significantly
- * larger than @e expire_deposit (by a year or more).
- */
- struct GNUNET_TIME_Timestamp expire_legal;
-
- /**
- * The value of this BDR
- */
- struct TALER_Amount value;
-
- /**
- * Set to true if the private BDR key has been
- * lost by the donau and thus the key cannot be
- * used for withdrawing at this time.
+ * Year of validity
*/
- bool lost;
-
- /**
- * Set to true if this BDR key has been
- * revoked by the donau.
- */
- bool revoked;
-
-};
+ int year;
+}
/**
* @brief Information about keys from the donau.
@@ -137,16 +93,6 @@ struct TALER_DONAU_Keys
{
/**
- * Long-term offline signing key of the donau.
- */
- struct TALER_MasterPublicKeyP master_pub;
-
- /**
- * Signature over extension configuration data, if any.
- */
- struct TALER_MasterSignatureP extensions_sig;
-
- /**
* Array of the donau's online signing keys.
*/
struct TALER_DONAU_SigningPublicKey *sign_keys;
@@ -157,12 +103,7 @@ struct TALER_DONAU_Keys
struct TALER_DONAU_BDRPublicKey *BDR_keys;
/**
- * Configuration data for extensions.
- */
- json_t *extensions;
-
- /**
- * Supported Taler protocol version by the donau.
+ * Supported protocol version by the donau.
* String in the format current:revision:age using the
* semantics of GNU libtool. See
* https://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning
@@ -181,19 +122,6 @@ struct TALER_DONAU_Keys
char *donau_url;
/**
- * Asset type used by the donau. Typical values
- * are "fiat" or "crypto" or "regional" or "stock".
- * Wallets should adjust their UI/UX based on this
- * value.
- */
- char *asset_type;
-
- /**
- * Array of accounts of the donau.
- */
- struct TALER_DONAU_WireAccount *accounts;
-
- /**
* Timestamp indicating the /keys generation.
*/
struct GNUNET_TIME_Timestamp list_issue_date;
@@ -204,22 +132,10 @@ struct TALER_DONAU_Keys
struct GNUNET_TIME_Timestamp key_data_expiration;
/**
- * Timestamp indicating the creation time of the last
- * BDR key in /keys.
- * Used to fetch /keys incrementally.
- */
- struct GNUNET_TIME_Timestamp last_BDR_issue_date;
-
- /**
* Default number of fractional digits to render
* amounts with.
*/
- // uint32_t currency_fraction_digits;
-
- /**
- * Length of @e accounts array.
- */
- unsigned int accounts_len;
+ uint32_t currency_fraction_digits;
/**
* Length of the @e sign_keys array (number of valid entries).
@@ -232,20 +148,11 @@ struct TALER_DONAU_Keys
unsigned int num_BDR_keys;
/**
- * Actual length of the @e BDR_keys array (size of allocation).
- */
- unsigned int BDR_keys_size;
-
- /**
* Reference counter for this structure.
* Freed when it reaches 0.
*/
unsigned int rc;
- /**
- * Set to true if rewards are allowed at this donau.
- */
- //bool rewards_allowed;
};
@@ -347,7 +254,7 @@ struct TALER_DONAU_HttpResponse
struct TALER_DONAU_KeysResponse
{
/**
- * HTTP response data
+ * HTTP response dataclosure
*/
struct TALER_DONAU_HttpResponse hr;