aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-03-07 11:15:24 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-03-07 11:15:24 +0100
commit5608a73c003bbc4547d8e09b24acf94c5af5cb24 (patch)
treee2b180b20caf086d56445f1c44cdf0c7a9ff289e /src/include/taler_crypto_lib.h
parent7521ff1cf4fe27b3b808f8026ce0f239d9cdc6c6 (diff)
downloadexchange-5608a73c003bbc4547d8e09b24acf94c5af5cb24.tar.xz
-simplify zero-check for age-commitment hash
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index db50efa10..c285a38ee 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -1309,13 +1309,8 @@ struct TALER_AgeAttestation
#endif
};
-
-extern const struct TALER_AgeCommitmentHash TALER_ZeroAgeCommitmentHash;
-#define TALER_AgeCommitmentHash_isNullOrZero(ph) \
- ((NULL == ph) || \
- (0 == memcmp (ph, \
- &TALER_ZeroAgeCommitmentHash, \
- sizeof(struct TALER_AgeCommitmentHash))))
+#define TALER_AgeCommitmentHash_isNullOrZero(ph) ((NULL == ph) || \
+ GNUNET_is_zero (ph))
/**
* @brief Type of public signing keys for verifying blindly signed coins.