summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-21 16:01:08 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-21 16:01:08 +0100
commit6ba7747ac332d71465ff94b04f44f06c32477145 (patch)
tree1fedb7ed511ed5dc6d21e60a25fba409c947ce26 /src/include
parent82b0eda3ef736ea59c425141dba7d19c762248e5 (diff)
downloadexchange-6ba7747ac332d71465ff94b04f44f06c32477145.tar.gz
exchange-6ba7747ac332d71465ff94b04f44f06c32477145.tar.bz2
exchange-6ba7747ac332d71465ff94b04f44f06c32477145.zip
more traits
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index b998bf3f2..974172c6b 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -257,6 +257,81 @@ TALER_TESTING_get_trait_coin_priv (const struct TALER_TESTING_Command *cmd,
+/**
+ * @param selector
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_blinding_key (const char *selector,
+ const struct TALER_DenominationBlindingKeyP *blinding_key);
+
+
+/**
+ * Obtain a coin's blinding key from a @a cmd.
+ *
+ * @param cmd command to extract trait from
+ * @param selector which coin to pick if @a cmd has multiple on offer
+ * @param blinding_key[out] set to the blinding key of the coin
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_blinding_key (const struct TALER_TESTING_Command *cmd,
+ const char *selector,
+ struct TALER_DenominationBlindingKeyP **blinding_key);
+
+
+
+
+/**
+ * @param selector
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_denom_pub (const char *selector,
+ const struct TALER_EXCHANGE_DenomPublicKey *dpk);
+
+
+/**
+ * Obtain a coin private key from a @a cmd.
+ *
+ * @param cmd command to extract trait from
+ * @param selector which coin to pick if @a cmd has multiple on offer
+ * @param dpk[out] set to a denomination key of the coin
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_denom_pub (const struct TALER_TESTING_Command *cmd,
+ const char *selector,
+ struct TALER_EXCHANGE_DenomPublicKey **dpk);
+
+
+/**
+ * Obtain a coin denomination signature from a @a cmd.
+ *
+ * @param cmd command to extract trait from
+ * @param selector which coin to pick if @a cmd has multiple on offer
+ * @param sig[out] set to a denomination signature over the coin
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_denom_sig (const struct TALER_TESTING_Command *cmd,
+ const char *selector,
+ struct TALER_DenominationSignature **dpk);
+
+
+/**
+ * @param selector
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_denom_sig (const char *selector,
+ const struct TALER_DenominationSignature *sig);
+
+
+
+
+
+
+
+
+
#endif