summaryrefslogtreecommitdiff
path: root/src/include/taler_pq_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_pq_lib.h')
-rw-r--r--src/include/taler_pq_lib.h50
1 files changed, 50 insertions, 0 deletions
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
*
@@ -177,6 +179,26 @@ TALER_PQ_query_param_array_amount (
/**
+ * 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
* database when using this function.
@@ -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 */