aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-24 00:08:31 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-24 00:08:31 -0400
commitebfa7888c0cbb461cf70a8d809b1d183011713ce (patch)
treea47145f16f53387657a3ed2f056ad580cf5f6621 /src/include
parent4ce3a78d0071035a66cfb889c23fe9a9d731086f (diff)
made a testing trait for order claim nonce
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index af14955b..3ae227cd 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -1244,6 +1244,37 @@ TALER_TESTING_get_trait_merchant_sig (
/**
+ * Offer an order claim nonce.
+ *
+ * @param index which nonce to offer if there are
+ * multiple on offer.
+ * @param nonce set to the offered nonce.
+ * @return the trait
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_claim_nonce (unsigned int index,
+ const struct
+ GNUNET_CRYPTO_EddsaPublicKey *nonce);
+
+
+/**
+ * Obtain an order claim nonce from a @a cmd.
+ *
+ * @param cmd command to extract the trait from.
+ * @param index which nonce to pick if @a
+ * cmd has multiple on offer
+ * @param nonce[out] set to the wanted data.
+ *
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_claim_nonce (const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const struct
+ GNUNET_CRYPTO_EddsaPublicKey **nonce);
+
+
+/**
* Obtain a reference to a proposal command. Any command that
* works with proposals, might need to offer their reference to
* it. Notably, the "pay" command, offers its proposal reference