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/include | |
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/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 5b724953b..43f6b73e8 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -3805,6 +3805,37 @@ struct TALER_EXCHANGEDB_Plugin bool *balance_ok, uint64_t *ruuid); + /** + * Store in the database which coin(s) the wallet wanted to withdraw with + * age restriction enabled in a given age-withdraw operation and the relevant + * information we learned or created in the reveal steop + * + * @param cls the `struct PostgresClosure` with the plugin-specific state + * @param h_commitment The hash of the original age-withdraw commitment, which is a key into the withdraw_age_commitments table + * @param num_coins number of coins to generate, size of the @a coin_evs array + * TODO: oec + * @return query execution status + */ + enum GNUNET_DB_QueryStatus + (*insert_age_withdraw_reveal)( + void *cls, + uint64_t h_commitment, + uint32_t num_coins + /* TODO: oec */ + ); + + /** + * Lookup in the database for the fresh coins with age-restriction that + * we created in the given age-withdraw operation. + * + * TODO: oec + */ + enum GNUNET_DB_QueryStatus + (*get_age_withdraw_reveal)( + void *cls, + uint64_t h_commitment + /* TODO: oec */ + ); /** * Retrieve the details to a policy given by its hash_code |