From 55f6d26b7424d660c99bc89f3677b20294e87a27 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Tue, 4 Feb 2020 18:42:04 +0100 Subject: Refactoring reclaim attestations --- src/reclaim/reclaim.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'src/reclaim/reclaim.h') diff --git a/src/reclaim/reclaim.h b/src/reclaim/reclaim.h index ff953a096..3da49fe7a 100644 --- a/src/reclaim/reclaim.h +++ b/src/reclaim/reclaim.h @@ -138,6 +138,11 @@ struct AttributeResultMessage */ uint16_t attr_len GNUNET_PACKED; + /** + * Length of serialized attestation data + */ + uint16_t attestation_len GNUNET_PACKED; + /** * always zero (for alignment) */ @@ -153,6 +158,42 @@ struct AttributeResultMessage */ }; +/** + * Attestation is returned from the idp. + */ +struct AttestationResultMessage +{ + /** + * Message header + */ + struct GNUNET_MessageHeader header; + + /** + * Unique identifier for this request (for key collisions). + */ + uint32_t id GNUNET_PACKED; + + /** + * Length of serialized attribute data + */ + uint16_t attestation_len GNUNET_PACKED; + + /** + * always zero (for alignment) + */ + uint16_t reserved GNUNET_PACKED; + + /** + * The public key of the identity. + */ + struct GNUNET_CRYPTO_EcdsaPublicKey identity; + + /* followed by: + * serialized attestation data + */ +}; + + /** * Reference plus Attestation is returned from the idp. */ @@ -462,6 +503,11 @@ struct ConsumeTicketResultMessage */ uint16_t attrs_len GNUNET_PACKED; + /** + * Length of attestation data + */ + uint16_t attestations_len; + /** * always zero (for alignment) */ -- cgit v1.2.3