diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-12 12:20:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-12 12:20:12 +0100 |
commit | a0d9d59b73a35f3060914372a70fbcc57e66998f (patch) | |
tree | 83509667b5c231ffd14f3f6a7aa6d533668dfad3 /src/util | |
parent | 88033aa15e198adc0b1ea466c5b000804147dc6d (diff) | |
download | exchange-a0d9d59b73a35f3060914372a70fbcc57e66998f.tar.xz |
-refactor to address FIXME
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/wallet_signatures.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c index 1dd2302b4..01f33ae83 100644 --- a/src/util/wallet_signatures.c +++ b/src/util/wallet_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 @@ -333,4 +333,21 @@ TALER_wallet_withdraw_verify ( } +void +TALER_wallet_account_setup_sign ( + const struct TALER_ReservePrivateKeyP *reserve_priv, + struct TALER_ReserveSignatureP *reserve_sig) +{ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose = { + .size = htonl (sizeof (purpose)), + .purpose = htonl (TALER_SIGNATURE_WALLET_ACCOUNT_SETUP) + }; + + GNUNET_assert (GNUNET_OK == + GNUNET_CRYPTO_eddsa_sign_ (&reserve_priv->eddsa_priv, + &purpose, + &reserve_sig->eddsa_signature)); +} + + /* end of wallet_signatures.c */ |