From 9b27ee9c8d7d2bda08c795d9ae60cd2523bd8ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ttler?= Date: Tue, 5 Dec 2023 12:44:05 +0100 Subject: add query param functions for blind sign private and public keys --- src/include/taler_pq_lib.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_pq_lib.h b/src/include/taler_pq_lib.h index 86d458e05..06e7d53ed 100644 --- a/src/include/taler_pq_lib.h +++ b/src/include/taler_pq_lib.h @@ -149,6 +149,7 @@ TALER_PQ_query_param_array_blinded_denom_sig ( struct GNUNET_PQ_Context *db ); + /** * Generate query parameter for an array of blinded hashes of coin envelopes * @@ -162,6 +163,7 @@ TALER_PQ_query_param_array_blinded_coin_hash ( const struct TALER_BlindedCoinHashP *coin_evs, struct GNUNET_PQ_Context *db); + /** * Generate query parameter for an array of mounts * @@ -176,6 +178,26 @@ TALER_PQ_query_param_array_amount ( struct GNUNET_PQ_Context *db); +/** + * Generate query parameter for a blind sign public key of variable size. + * + * @param public_key pointer to the query parameter to pass + */ +struct GNUNET_PQ_QueryParam +TALER_PQ_query_param_blind_sign_pub ( + const struct GNUNET_CRYPTO_BlindSignPublicKey *public_key); + + +/** + * Generate query parameter for a blind sign private key of variable size. + * + * @param private_key pointer to the query parameter to pass + */ +struct GNUNET_PQ_QueryParam +TALER_PQ_query_param_blind_sign_priv ( + const struct GNUNET_CRYPTO_BlindSignPrivateKey *private_key); + + /** * Currency amount expected, from a record-field of (DB) * taler_amount_with_currency type. The currency must be stored in the @@ -298,6 +320,7 @@ TALER_PQ_result_spec_array_blinded_denom_sig ( size_t *num, struct TALER_BlindedDenominationSignature **denom_sigs); + /** * Array of blinded hashes of coin envelopes * @@ -314,6 +337,7 @@ TALER_PQ_result_spec_array_blinded_coin_hash ( size_t *num, struct TALER_BlindedCoinHashP **h_coin_evs); + /** * Array of hashes of denominations * @@ -330,6 +354,7 @@ TALER_PQ_result_spec_array_denom_hash ( size_t *num, struct TALER_DenominationHashP **denom_hs); + /** * Array of amounts * @@ -349,6 +374,31 @@ TALER_PQ_result_spec_array_amount ( struct TALER_Amount **amounts); +/** + * Blind sign public key expected. + * + * @param name name of the field in the table + * @param[out] public_key where to store the denomination signature + * @return array entry for the result specification to use + */ +struct GNUNET_PQ_ResultSpec +TALER_PQ_result_spec_blind_sign_pub ( + const char *name, + struct GNUNET_CRYPTO_BlindSignPublicKey *public_key); + + +/** + * Blind sign private key expected. + * + * @param name name of the field in the table + * @param[out] private_key where to store the denomination signature + * @return array entry for the result specification to use + */ +struct GNUNET_PQ_ResultSpec +TALER_PQ_result_spec_blind_sign_priv ( + const char *name, + struct GNUNET_CRYPTO_BlindSignPrivateKey *private_key); + #endif /* TALER_PQ_LIB_H_ */ /* end of include/taler_pq_lib.h */ -- cgit v1.2.3