summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-13 19:45:50 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-13 19:45:50 +0200
commit16b0c6547084e88aec7105e23cc5f6fd72abaf4f (patch)
treef57ca36ac25aee129f707b7321492abcbf5a2eca /src/include
parent504017bc6584d7c8fe90e6c0f861f4566739a736 (diff)
downloadexchange-16b0c6547084e88aec7105e23cc5f6fd72abaf4f.tar.gz
exchange-16b0c6547084e88aec7105e23cc5f6fd72abaf4f.tar.bz2
exchange-16b0c6547084e88aec7105e23cc5f6fd72abaf4f.zip
keep a most sigs around when serializing
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchange_service.h42
1 files changed, 36 insertions, 6 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 4adb8591e..f40387514 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -63,6 +63,11 @@ struct TALER_EXCHANGE_SigningPublicKey
struct TALER_ExchangePublicKeyP key;
/**
+ * Signature over this signing key by the exchange's master signature.
+ */
+ struct TALER_MasterSignatureP master_sig;
+
+ /**
* Validity start time
*/
struct GNUNET_TIME_Absolute valid_from;
@@ -95,6 +100,11 @@ struct TALER_EXCHANGE_DenomPublicKey
struct GNUNET_HashCode h_key;
/**
+ * Exchange's master signature over this denomination record.
+ */
+ struct TALER_MasterSignatureP master_sig;
+
+ /**
* Timestamp indicating when the denomination key becomes valid
*/
struct GNUNET_TIME_Absolute valid_from;
@@ -147,6 +157,27 @@ struct TALER_EXCHANGE_DenomPublicKey
/**
+ * Information we track per denomination audited by the auditor.
+ */
+struct TALER_EXCHANGE_AuditorDenominationInfo
+{
+
+ /**
+ * Signature by the auditor affirming that it is monitoring this
+ * denomination.
+ */
+ struct TALER_AuditorSignatureP auditor_sig;
+
+ /**
+ * Offsets into the key's main `denom_keys` array identifying the
+ * denomination being audited by this auditor.
+ */
+ unsigned int denom_key_offset;
+
+};
+
+
+/**
* @brief Information we get from the exchange about auditors.
*/
struct TALER_EXCHANGE_AuditorInformation
@@ -169,16 +200,15 @@ struct TALER_EXCHANGE_AuditorInformation
char *auditor_url;
/**
- * Number of denomination keys audited by this auditor.
+ * Array of length @a num_denom_keys with the denomination
+ * keys audited by this auditor.
*/
- unsigned int num_denom_keys;
+ struct TALER_EXCHANGE_AuditorDenominationInfo *denom_keys;
/**
- * Array of length @a num_denom_keys with the denomination
- * keys audited by this auditor. Offsets into the
- * key's main `denom_keys` array.
+ * Number of denomination keys audited by this auditor.
*/
- unsigned int *denom_key_offsets;
+ unsigned int num_denom_keys;
};