diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-04-22 17:18:59 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-04-22 17:18:59 +0200 |
commit | 6f492b2a97a8623e18a36c583e320d876753ae8b (patch) | |
tree | cbdd48bc5ca07be4803a4ac4d356177e687ad5c8 /src/exchangedb/pg_insert_age_withdraw_reveal.h | |
parent | 89a9224c3bb9bfae84c27c1bbf0d9dfd5341ec0a (diff) | |
download | exchange-6f492b2a97a8623e18a36c583e320d876753ae8b.tar.xz |
WiP: age-withdraw, continue with finalize_age_withdraw_and_sign, 9/n
Also:
- added duplicate planchet check for age-withdraw_reveal
- added stubs for (get|insert)_age_withdraw_reveal
Diffstat (limited to 'src/exchangedb/pg_insert_age_withdraw_reveal.h')
-rw-r--r-- | src/exchangedb/pg_insert_age_withdraw_reveal.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/exchangedb/pg_insert_age_withdraw_reveal.h b/src/exchangedb/pg_insert_age_withdraw_reveal.h new file mode 100644 index 000000000..a98ee4efa --- /dev/null +++ b/src/exchangedb/pg_insert_age_withdraw_reveal.h @@ -0,0 +1,45 @@ +/* + This file is part of TALER + Copyright (C) 2023 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 + Foundation; either version 3, or (at your option) any later version. + + TALER is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ +/** + * @file exchangedb/pg_insert_age_withdraw_reveal.h + * @brief implementation of the insert_age_withdraw_reveal function for Postgres + * @author Özgür Kesim + */ +#ifndef PG_INSERT_AGE_WITHDRAW_REVEAL_H +#define PG_INSERT_AGE_WITHDRAW_REVEAL_H + +#include "taler_util.h" +#include "taler_json_lib.h" +#include "taler_exchangedb_plugin.h" +/** + * Store in the database which coin(s) the wallet wanted to create + * in a given age-withdraw operation and all of the other information + * we learned or created in the /age-withdraw/reveal step. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param h_commitment The commitment of the original age-withdraw request + * @param num_coins The number of revealed coins + * @param revealed_coins The coins + * TODO:oec + * @return query status for the transaction + */ +enum GNUNET_DB_QueryStatus +TEH_PG_insert_refresh_reveal ( + void *cls, + /* TODO: oec */ + ); + +#endif |