summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-26 09:28:49 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-26 09:28:49 +0200
commitcb2c4c9c0e31ce01ce65082e38db1c2a2101b4d5 (patch)
tree3ac47db7e3bedef85f17c99418ff5d315d1ac1f1
parent002b4bf117c73ad6fca1731e23b6816a0d2800c2 (diff)
downloadexchange-cb2c4c9c0e31ce01ce65082e38db1c2a2101b4d5.tar.gz
exchange-cb2c4c9c0e31ce01ce65082e38db1c2a2101b4d5.tar.bz2
exchange-cb2c4c9c0e31ce01ce65082e38db1c2a2101b4d5.zip
add empty implementations for merchant token sign / verify
-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 */