Commit Graph

1694 Commits

Author SHA1 Message Date
571d43cef3
[WiP] added TALER_AMOUNT type to Postgres - first in age_withdraw
- Added a type TALER_AMOUNT (val INT8, frac INT4) to Postgres.

- Added PLSQL functions/procedures
	- amount_normalize(a)
	- amount_add(a, b)
	- amount_left_minus_right(l, r, diff, ok bool)

- Added PQ-helper functions
	- TALER_PQ_query_param_amount_tuple()
	- TALER_PQ_result_spec_amount_tuple()

- In table 'age_withdraw', changed fields 'amount_with_fee_val' and '..._frac'
  into single field 'amount_with_fee' be of type TALER_AMOUNT

- Changed functions/stored procedures 'do_age_withdraw' and
  'get_age_withdraw' to use new APIs.

=> make check runs through without errors,
   age-withdraw and -reveal test passes.
2023-07-27 23:57:07 +02:00
722e00b1e9
-fix typos 2023-07-26 17:53:24 +02:00
1ce9312d02
[age-withdraw] WIP - database transaction during reveal works now
The test for age-restriction still fail, but the database transactions,
including passing arrays in/out the PQ-helpers works.
2023-07-26 04:04:02 +02:00
ac462b2753
[pq] Added support for some Taler-specific array types
Added array support for DB-query and -result for
- denomination signatures
- blinded envelope hases
- denomination hashes
2023-07-26 04:02:09 +02:00
3e29bdfb8b
[age-withdraw] first tests pass
age-withdraw successfully tested (no reveal yet):

1. reserve filled with amount large enough to trigger kyc
2. kyc oauth2 test daemon sets birthday to 2015-00-00
3. usual withdraw fails with CONFLICT and AGE_RESTRICTION_REQUIRED
4. age-withdraw with loo large of an maximum age fails
5. age-withdraw with appropriate maximum age succeeds
2023-07-24 20:29:38 +02:00
5bf90c3505
kyc logic with birthdate setting test added
1. Added age-requirement check in withdraw-handler (like in batch-withdraw)

2. In test_exchange_api_age_restriction:

  - kyc-oauth2 started, with static birthdate in answers
  - withdraw triggers kyc
  - second withdraw fails due to age restriction requirements
2023-07-23 21:18:32 +02:00
5b39ac9d8f
[kyc] put reserve_pub into legitimization_requirements 2023-07-23 15:57:37 +02:00
d189fccd79
Added reserve_pub to kyc legitimization_processes
Where applicable, the reserve_pub will be passed on to the
kcy-legitimization process and persisted along with h_payto.

This allows us to set a birthday on the reserve itself, once a
related kyc-process has provided one.
2023-07-23 12:48:07 +02:00
3162ee861b
-fixes for doxygen complaints 2023-07-20 18:22:57 +02:00
430bb0624a
[age-withdraw] Added testing commands for age-withdraw and -reveal
Implemented
- TALER_TESTING_cmd_age_withdraw
- TALER_TESTING_cmd_age_withdraw_reveal

Note: No test is using those commands yet.
2023-07-20 18:13:48 +02:00
2eb3ff1f64
[age-withdraw] simplify lib-API 2023-07-18 13:34:27 +02:00
Christian Grothoff
0698835fed
introduce TALER_TESTING_cmd_exec_wirewatch2 2023-07-16 14:36:20 +02:00
0a4422f5fa
-codespell fix 2023-07-16 13:35:03 +02:00
77f99b6363
-doxygen fixes 2023-07-16 13:33:08 +02:00
Christian Grothoff
cd5fafffe2
-get taler-exchange-benchmark to work 2023-07-15 22:33:49 +02:00
c86a169fb5
-typo fix fix 2023-07-15 18:20:48 +02:00
3bebbfc2da
-typo fix 2023-07-15 18:19:12 +02:00
a3922302c7
[age-withdraw] added TALER_EXCHANGE_age_withdraw_blind API 2023-07-15 18:15:07 +02:00
ecea165db7
[age-withdraw] age-withdraw-reveal lib-API mostly finished 2023-07-15 09:39:01 +02:00
63efa1f135
Merge branch 'age-withdraw' of ssh://git.kesim.org/taler/exchange into age-withdraw 2023-07-14 10:02:01 +02:00
34f44ccb27
Merge branch 'master' into age-withdraw 2023-07-14 09:25:43 +02:00
Christian Grothoff
b60b339ee4
merging /keys and /wire 2023-07-13 23:07:33 +02:00
65c861027a
-towards reveal response handling in agew-withdraw-reveal 2023-07-13 22:28:34 +02:00
fde760aef0
towards age-withdraw and -reveal API 2023-07-13 08:45:05 +02:00
Christian Grothoff
a5451527cb
implement 'lost' field for #7883 2023-07-11 20:36:52 +02:00
8a7bfefa38
-handle some of the codespell complaints 2023-07-11 09:21:34 +02:00
88ecba945e
-handle doxygen complaints 2023-07-11 09:06:28 +02:00
Christian Grothoff
6c44755458
use DK age group, not global age group 2023-07-10 16:55:26 +02:00
Christian Grothoff
6a483b51ec
fix alignment issue, ensure we hash over packed structure to avoid non-determinism 2023-07-10 16:34:01 +02:00
Christian Grothoff
f4abc1c369
tip -> reward 2023-07-10 10:34:33 +02:00
Christian Grothoff
c57c3463d1
Tip => Reward 2023-07-10 10:34:33 +02:00
6107e99559
Merge branch 'master' of ssh://git.taler.net/exchange 2023-07-10 10:25:29 +02:00
3024dc9fa5
fix memory leaks reported by valgrind 2023-07-10 10:23:52 +02:00
9d706a01a2
added expected HTTP-code to logger 2023-07-10 10:22:29 +02:00
Christian Grothoff
c02d88c8e3
work on keys serialization/deserialization 2023-07-06 00:08:00 +02:00
Christian Grothoff
ff8349e6e7
more exchange API refactoring 2023-07-04 15:37:46 +02:00
Christian Grothoff
d3772a834f
more API clean up 2023-07-03 18:39:06 +02:00
Christian Grothoff
290268e9af
more work on API atomization 2023-07-03 17:51:13 +02:00
Christian Grothoff
75ea35722b
more work on API atomization 2023-07-03 17:22:33 +02:00
40629e8992
[age-withdraw] added library function for age-withdraw
- Added TALER_EXCHANGE_age_withdraw
- Also: Change TALER_EXCHANGE_batch_withdraw and related functions to
  use GNUNET_CURL_ctx, TALER_EXCHANGE_keys and const char *echange_url
2023-07-03 16:18:40 +02:00
9c3ddcbc18
added TALER_adult_age(struct TALER_AgeMask *mask) 2023-06-27 18:57:05 +02:00
d3d744a444
[testing] start an oauth2 server which returns static birthdates 2023-06-27 12:41:22 +02:00
145310e20e
added birthdate parser 2023-06-27 09:45:50 +02:00
eeece1c96d
-ruuid not needed 2023-06-26 11:46:13 +02:00
c5c3a44c25
-comment updates 2023-06-26 09:44:22 +02:00
b87d1112ea
Merge branch 'master' into age-withdraw-merge 2023-06-26 00:09:01 +02:00
ddedf03a81
[age-withdraw] age-withdraw commit- and reveal-handlers implemented, 12/n
The handlers for the commit- and reveal-phases of the age-withdraw
HTTP-endpoints are implemented, yet not active.

Still missing:

- support for age-withdraw is missing in lib/.
- tests
2023-06-26 00:01:31 +02:00
Christian Grothoff
421129a32e
next round of exchange API atomization 2023-06-25 19:10:26 +02:00
Christian Grothoff
75733ee00e
more work on atomizing exchange API: deposit 2023-06-25 13:59:47 +02:00
Christian Grothoff
720783b66a
-more exchange API atomization 2023-06-22 22:05:34 +02:00