Commit Graph

7200 Commits

Author SHA1 Message Date
1c923855a3
finalize v3/v4 -> v2 exchange schema merger 2023-07-28 14:29:25 +02:00
0d0494ee91
finalize v3/v4 -> v2 exchange schema merger 2023-07-28 14:28:20 +02:00
85020a9204
Merge branch 'master' of ssh://git.taler.net/exchange 2023-07-28 12:36:28 +02:00
963e84aad2
-added pq_common.h 2023-07-28 12:36:22 +02:00
Christian Grothoff
d083536786
combine v3 and v4 of exchange schema into v2 due to major incompatible tuple change forthcoming 2023-07-28 12:27:46 +02:00
Christian Grothoff
c93ce9ea2e
-fix type defs 2023-07-28 12:21:28 +02:00
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
d208041240
[age-withdraw] reveal works, tested.
Tests for age-withdraw and the reveal now work for both, RSA and CS.
2023-07-26 17:36:13 +02:00
0f17931b10
Merge branch 'master' of ssh://git.taler.net/exchange 2023-07-26 04:05:39 +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
Christian Grothoff
eae030fc4f
-misc fixes: 2023-07-25 22:17:59 +02:00
Christian Grothoff
28fcff7c1e
-move to postgres 2023-07-25 17:52:10 +02:00
Christian Grothoff
153b685bac
actually take kyc_off flag into consideration 2023-07-25 17:34:39 +02:00
Christian Grothoff
4c6ab83925
-more script fixes 2023-07-25 14:34:03 +02:00
Christian Grothoff
987878469d
-more script fixes 2023-07-25 14:10:48 +02:00
a1989efdab
[age-withdraw] fixed h_commitment calculation in handler 2023-07-24 21:40:51 +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
e9f7ad3742
-gana update 2023-07-24 19:38:04 +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
e230eaad76
Merge branch 'master' of ssh://git.taler.net/exchange 2023-07-23 15:58:31 +02:00
5b39ac9d8f
[kyc] put reserve_pub into legitimization_requirements 2023-07-23 15:57:37 +02:00
Christian Grothoff
21b3f38df2
-reset tables breaks stuff, badly 2023-07-23 15:47:30 +02:00
Christian Grothoff
7e68ce3868
log reset 2023-07-23 15:36:46 +02:00
Christian Grothoff
7467543b57
handle unix 2023-07-23 15:21:53 +02:00
Christian Grothoff
da84b478f3
handle unix 2023-07-23 15:19:09 +02:00
Christian Grothoff
1879d025bf
handle unix 2023-07-23 15:18:33 +02:00
Christian Grothoff
16e2ac079e
-ignore locale/ dir 2023-07-23 15:01:07 +02:00
Christian Grothoff
77e06dda91
tolerate unset 2023-07-23 14:52:23 +02:00
Christian Grothoff
baef188ed0
tolerate unset 2023-07-23 14:49:10 +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
Christian Grothoff
a56a903da3
use decision time 2023-07-21 22:48:26 +02:00
Christian Grothoff
61e6f60e55
bad include 2023-07-21 16:03:18 +02:00
Christian Grothoff
2285f5c521
-fix wire auditor for multiple accounts 2023-07-21 15:51:39 +02:00
Christian Grothoff
a7eae63d20
-more multi-account fixes 2023-07-21 15:28:45 +02:00
Christian Grothoff
7b258d4bdf
-fix crash 2023-07-21 15:22:46 +02:00
Christian Grothoff
e352fdd356
run wirewatch with specific account 2023-07-21 15:03:31 +02:00
Christian Grothoff
e21995f000
-add Makefiles 2023-07-21 14:39:18 +02:00
b853c7449c
-accidentally renamed/moved config file, fixed 2023-07-21 12:07:54 +02:00
be9d23761d
[age-withdraw] started to work on tests in testing 2023-07-21 12:04:34 +02:00
3162ee861b
-fixes for doxygen complaints 2023-07-20 18:22:57 +02:00
c0657d0519
-remove notes from source tree 2023-07-20 18:16:54 +02:00
db9fb04edc
Merge branch 'age-withdraw', after implementing testing-commands 2023-07-20 18:15:33 +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
Christian Grothoff
2f8e3d31e7
create dir 2023-07-20 17:11:57 +02:00
Christian Grothoff
d103d7b163
-new man page 2023-07-20 17:10:36 +02:00
Christian Grothoff
827f65d997
check for key dependency 2023-07-20 16:03:47 +02:00
Christian Grothoff
fd9e551563
rewrite tos/pp generation logic 2023-07-20 15:56:58 +02:00
Christian Grothoff
59e057b93e
-misc fixes 2023-07-20 02:15:58 +02:00