aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-12 01:00:31 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-12 01:00:31 +0100
commitc93150b8cd8122821216c8ca4c92eaff73d3ae47 (patch)
tree9352b5e98f4423734fa656c2084307eeeb19d23f /src/util
parent94a5359494bcc24916c9f7f8323ace4643bc0065 (diff)
-work on more FIXMEs
Diffstat (limited to 'src/util')
-rw-r--r--src/util/exchange_signatures.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/util/exchange_signatures.c b/src/util/exchange_signatures.c
index b923c29de..c0c775dc0 100644
--- a/src/util/exchange_signatures.c
+++ b/src/util/exchange_signatures.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2021 Taler Systems SA
+ Copyright (C) 2021, 2022 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -66,4 +66,26 @@ TALER_exchange_deposit_confirm_verify (
}
+enum GNUNET_GenericReturnValue
+TALER_exchange_melt_confirmation_verify (
+ const struct TALER_RefreshCommitmentP *rc,
+ uint32_t noreveal_index,
+ const struct TALER_ExchangePublicKeyP *exchange_pub,
+ const struct TALER_ExchangeSignatureP *exchange_sig)
+{
+ struct TALER_RefreshMeltConfirmationPS confirm = {
+ .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_MELT),
+ .purpose.size = htonl (sizeof (confirm)),
+ .rc = *rc,
+ .noreveal_index = htonl (noreveal_index)
+ };
+
+ return
+ GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_EXCHANGE_CONFIRM_MELT,
+ &confirm,
+ &exchange_sig->eddsa_signature,
+ &exchange_pub->eddsa_pub);
+}
+
+
/* end of exchange_signatures.c */