diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-12 01:00:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-12 01:00:31 +0100 |
commit | c93150b8cd8122821216c8ca4c92eaff73d3ae47 (patch) | |
tree | 9352b5e98f4423734fa656c2084307eeeb19d23f /src/util | |
parent | 94a5359494bcc24916c9f7f8323ace4643bc0065 (diff) |
-work on more FIXMEs
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/exchange_signatures.c | 24 |
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 */ |