diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-31 18:12:54 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-31 18:12:54 +0100 |
commit | 783d07b4765aabee529f889b55f4fb5a27efaa44 (patch) | |
tree | 7d83bb5ae4035f304e476d0eeab0d261ee2f1980 /src/include | |
parent | b1197c16a4f1034cd4d46902f6a20327ac7a52c4 (diff) |
consistently distinguish blinded/unblinded denomination sigs
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 13 | ||||
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 69acfa0b3..f63b7dcae 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -773,6 +773,19 @@ TALER_denom_sig_cmp (const struct TALER_DenominationSignature *sig1, /** + * Compare two blinded denomination signatures. + * + * @param sig1 first signature + * @param sig2 second signature + * @return 0 if the keys are equal, otherwise -1 or 1 + */ +int +TALER_blinded_denom_sig_cmp ( + const struct TALER_BlindedDenominationSignature *sig1, + const struct TALER_BlindedDenominationSignature *sig2); + + +/** * Obtain denomination public key from a denomination private key. * * @param denom_priv private key to convert diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 17df75281..c278aa40b 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -239,7 +239,7 @@ struct TALER_EXCHANGEDB_TableData { struct TALER_BlindedCoinHash h_blind_ev; uint64_t denominations_serial; - struct TALER_DenominationSignature denom_sig; + struct TALER_BlindedDenominationSignature denom_sig; uint64_t reserve_uuid; struct TALER_ReserveSignatureP reserve_sig; struct GNUNET_TIME_Absolute execution_date; @@ -301,7 +301,7 @@ struct TALER_EXCHANGEDB_TableData void *coin_ev; size_t coin_ev_size; // h_coin_ev omitted, to be recomputed! - struct TALER_DenominationSignature ev_sig; + struct TALER_BlindedDenominationSignature ev_sig; } refresh_revealed_coins; struct @@ -1334,7 +1334,7 @@ struct TALER_EXCHANGEDB_LinkList /** * Signature over the blinded envelope. */ - struct TALER_DenominationSignature ev_sig; + struct TALER_BlindedDenominationSignature ev_sig; /** * Signature of the original coin being refreshed over the |