From 16b0c6547084e88aec7105e23cc5f6fd72abaf4f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 13 Oct 2018 19:45:50 +0200 Subject: keep a most sigs around when serializing --- src/include/taler_exchange_service.h | 42 ++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) (limited to 'src/include/taler_exchange_service.h') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 4adb8591..f4038751 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -62,6 +62,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 */ @@ -94,6 +99,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 */ @@ -146,6 +156,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. */ @@ -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; }; -- cgit v1.2.3