summaryrefslogtreecommitdiff
path: root/src/include/taler_signatures.h
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-03-02 07:58:55 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2022-03-02 07:58:55 +0100
commit4978b1e966af48a18cac86aa224b3c266a9531d7 (patch)
treecc190b96c510e0b3869e7d2eb1032069bb49c96b /src/include/taler_signatures.h
parentb20ddf0c8a70443bca6e59deba1ee906069a0824 (diff)
downloadexchange-4978b1e966af48a18cac86aa224b3c266a9531d7.tar.gz
exchange-4978b1e966af48a18cac86aa224b3c266a9531d7.tar.bz2
exchange-4978b1e966af48a18cac86aa224b3c266a9531d7.zip
-amend missing parts to commit b20ddf0c8
- functions TALER_age_commitment_attest and TALER_age_commitment_verify implemented. - age restriction implementation moved into util/age_restriction.c
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r--src/include/taler_signatures.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h
index 72150ca65..3758792ae 100644
--- a/src/include/taler_signatures.h
+++ b/src/include/taler_signatures.h
@@ -271,6 +271,12 @@
*/
#define TALER_SIGNATURE_WALLET_COIN_RECOUP_REFRESH 1206
+/**
+ * Signature using a age restriction key for attestation of a particular
+ * age/age-group.
+ */
+#define TALER_SIGNATURE_WALLET_AGE_ATTESTATION 1207
+
/******************************/
/* Security module signatures */
@@ -1704,6 +1710,27 @@ struct TALER_MerchantPaySessionSigPS
};
+/**
+ * Used for attestation of a particular age
+ */
+struct TALER_AgeAttestationPS
+{
+ /**
+ * Purpose must be #TALER_SIGNATURE_WALLET_AGE_ATTESTATION.
+ */
+ struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+ /**
+ * Age mask that defines the underlying age groups
+ */
+ struct TALER_AgeMask mask;
+
+ /**
+ * The particular age that this attestation is for
+ */
+ uint8_t age;
+};
+
GNUNET_NETWORK_STRUCT_END