aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/merchant_signatures.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/util/merchant_signatures.c b/src/util/merchant_signatures.c
index 35e0b0e07..06708f4b4 100644
--- a/src/util/merchant_signatures.c
+++ b/src/util/merchant_signatures.c
@@ -349,4 +349,46 @@ TALER_merchant_contract_sign (
// NB: "TALER_merchant_contract_verify" not (yet?) needed / not defined.
+
+GNUNET_NETWORK_STRUCT_BEGIN
+
+/**
+ * Message blindly signed by merchant to issue a new token.
+ */
+struct TALER_TokenIssueRequestPS
+{
+
+ // TODO: Implement this struct
+
+};
+
+GNUNET_NETWORK_STRUCT_END
+
+
+void
+TALER_merchant_token_issue_sign (
+ const struct TALER_TokenEnvelopeP *envelope,
+ const struct TALER_TokenIssuePrivateKeyP *issue_priv,
+ struct TALER_TokenIssueBlindSignatureP *blind_sig)
+{
+
+}
+
+
+/**
+ * Verify a token issue signature.
+ *
+ * @param use_pub token use public key
+ * @param issue_pub token issue public key
+ * @param ub_sig unblinded signature
+ */
+enum GNUNET_GenericReturnValue
+TALER_merchant_token_issue_verify (
+ const struct TALER_TokenUsePublicKeyP *use_pub,
+ const struct TALER_TokenIssuePublicKeyP *issue_pub,
+ const struct TALER_TokenIssueSignatureP *ub_sig)
+{
+ return GNUNET_NO;
+}
+
/* end of merchant_signatures.c */