Christian Grothoff
687f0cab82
add arguments for new fees
2022-03-14 16:03:01 +01:00
Christian Grothoff
841e56bafd
also sync global fees table (new)
2022-03-05 14:38:03 +01:00
Christian Grothoff
7ff58c3d8f
refactor /wire to include logic to return the wad fee (for W2W payments)
2022-03-05 14:36:55 +01:00
8a906bf96c
sync tables "extensions" and "extension_details" with auditor
2022-03-05 13:39:01 +01:00
Thien-Thi Nguyen
80fc8231ad
Don't hardcode directory in taler-auditor-sync(1) invocation
2022-03-02 17:32:52 -05:00
Christian Grothoff
e24a6369aa
test-sync passes again
2022-02-28 23:18:40 +01:00
Christian Grothoff
ee79f31275
-work on test_sync.sh, incomplete
2022-02-28 22:41:24 +01:00
Christian Grothoff
23bc09fe3c
get test-auditor and #7181 to pass
2022-02-28 20:37:19 +01:00
Christian Grothoff
8f77bda2e0
-towards getting auditor tests to pass again with new logic
2022-02-28 16:13:30 +01:00
Christian Grothoff
d7bbf934a0
make DB generation work with new CS logic
2022-02-28 16:13:30 +01:00
Christian Grothoff
544ba42f44
-big renaming of structs for consistent naming with P suffix
2022-02-21 00:23:23 +01:00
f4f502d037
-minor merge conflict resolves
2022-02-18 00:50:31 +01:00
a78b3345fb
[age restriction] progress 15/n - melt/refresh/reveal and recoup
...
Added age restriction support for
- melt/refresh/reveal
- recoup
However, tests are not yet implemented for those flows.
Also: minor fixes and refactoring.
2022-02-18 00:30:19 +01:00
Christian Grothoff
a351bfc4b4
-fix CS nonce reuse check logic
2022-02-17 15:18:09 +01:00
8bdf6ab19d
[age restriction] progress 14/n - withdraw and deposit
...
Age restriction support for
- withdraw is done and tested
- deposit is done and tested
TODOs:
- melt/refresh/reveal
- link
------
Added functions
- TALER_age_restriction_commit
- TALER_age_commitment_derive
- TALER_age_commitment_hash
- TALER_age_restriction_commitment_free_inside
- Hash of age commitment passed around API boundaries
Exchangedb adjustments for denominations
- all prepared statements re: denominations now handle age_mask
- signature parameters adjusted
Hash and signature verification of /keys adjusted
- Hashes of (normal) denominations and age-restricted denominations are
calculated seperately
- The hash of the age-restricted ones will then be added to the other
hash
- The total hash is signed/verified
Tests for withdraw with age restriction added
- TALER_EXCHANGE_DenomPublickey now carries age_mask
- TALER_TESTING_cmd_withdraw_amount* takes age parameter
- TALER_TESTING_find_pk takes boolean age_restricted
- WithdrawState carries age_commitment and its hash
- withdraw_run derives new age commitment, if applicable
- Added age parameter to testing (13 as example)
Various Fixes and changes
- Fixes of post handler for /management/extensions
- Fixes for offline tool extensions signing
- Slight refactoring of extensions
- Age restriction extension simplified
- config is now global to extension
- added global TEH_age_restriction_enabled and TEH_age_mask in
taler-exchange-httpd
- helper functions and macros introduced
2022-02-16 22:01:05 +01:00
Christian Grothoff
819b67426c
-doxygen fixes
2022-02-12 10:33:23 +01:00
Christian Grothoff
94a5359494
-address misc. fixmes
2022-02-12 00:52:19 +01:00
Lucien Heuzeveldt
7d2a1a596a
split .conf files into rsa and cs
2022-02-04 19:24:30 +01:00
Gian Demarmels
8674f32aec
denomination CIPHER field per denom
2022-02-04 15:39:57 +01:00
Christian Grothoff
e7aeec04f4
The current recoup API is broken. I guess this is another example where "trivial" API changes turn out to have (multiple!) unexpected consequences.
...
The current "/recoup" API does not have clear idempotency semantics, as we've discussed on the phone. This is already bad by itself, as it makes it hard to write down what the API does other than "whatever the implementation does".
However, it actually breaks correctness in this (admittedly kinda contrived, but not impossible) case:
Say that we have a coin A obtained via withdrawal and a coin B obtained via refreshing coin A. Now the denominations of A gets revoked..
The wallet does a recoup of A for EUR:1.
Now the denomination of B also gets revoked. The wallet recoups B (incidentally also for EUR:1) and now A can be recouped again for EUR:1. But now the exchange is in a state where it will refuse a legitimate recoup request for A because the detection for an idempotent request kicks in.
This is IMHO bad API design, and the exchange should simply always recoup the maximum amount.
Furthermore, we usually follow the principle of "API calls that take up DB space are paid". With the current recoup API, I can do many tiny recoup requests which the exchange then has to store, right?
I guess it would not be a big change to remove the "amount" value from the recoup/recoup-refresh request bodies, right?
- Florian
2022-01-11 12:47:35 +01:00
Christian Grothoff
84c9adf5a6
v12: also do not sign over merchant_pub in REFUND signature, centralize logic
2021-12-25 14:58:04 +01:00
Christian Grothoff
87376e02eb
protocol v12 changes (/recoup split, signature changes) plus database sharding plus O(n^2)=>O(n) worst-case complexity reduction on coin balance checks
2021-12-25 13:56:40 +01:00
Christian Grothoff
2c14d33870
deduplicate melt signing logic, remove coin_pub from data being signed over
2021-12-25 13:56:40 +01:00
Christian Grothoff
1acc851deb
-fix recoup ugliness
2021-12-16 20:18:44 +01:00
Christian Grothoff
1a1fafbd43
introducing GNUNET_TIME_Timestamp, recoup now with amounts
2021-12-14 16:04:40 +01:00
bed2a422a5
-basedb
2021-12-01 15:04:57 +01:00
ebc5f4f986
fix auditor test case, re-generate basedbs
2021-12-01 14:21:35 +01:00
Christian Grothoff
d3615c708f
-fix typos
2021-11-29 17:48:39 +01:00
Christian Grothoff
935c2d4e62
-improve logging
2021-11-20 09:42:25 +01:00
Christian Grothoff
bdaaa0f6cb
-fix misc. compiler warnings
2021-11-19 10:57:27 +01:00
Christian Grothoff
91628260f6
fix warning
2021-11-16 16:56:30 +01:00
Christian Grothoff
81f9b2c93e
-misc fixes
2021-11-06 19:57:34 +01:00
Christian Grothoff
9d6e104066
include h_extensions in deposit confirmation
2021-11-06 19:43:47 +01:00
Christian Grothoff
8175fdfa0f
introduce TALER_wallet_deposit_verify
2021-11-06 16:52:14 +01:00
Christian Grothoff
ba627bf84c
-fixes
2021-11-05 22:22:47 +01:00
Christian Grothoff
32da809fd6
abstract denomination keys a bit more
2021-11-05 14:00:10 +01:00
Christian Grothoff
d68dc69b4c
-disable tests
2021-10-31 18:20:27 +01:00
Christian Grothoff
43ee9da01d
misc fixes
2021-10-31 12:49:51 +01:00
Christian Grothoff
2faf102a05
-more dB work
2021-10-30 21:26:40 +02:00
Christian Grothoff
bc57abc3da
-more dB work
2021-10-30 20:49:23 +02:00
Christian Grothoff
963a06c0aa
fix more FTBFS issues
2021-10-30 19:28:11 +02:00
Christian Grothoff
7ac57acb18
fix auditor FTBFS
2021-10-27 09:23:14 +02:00
Christian Grothoff
ca12adced4
-basic logic for withdraw KYC checks
2021-10-14 21:06:47 +02:00
Christian Grothoff
acbadd5c6e
-modify C API to future-proof it for returning more details as required for KYC implementation
2021-10-13 18:52:59 +02:00
Christian Grothoff
889bd801bc
-vanilla DB has no deposits, hence no lag
2021-09-27 11:36:09 +02:00
Christian Grothoff
26c0dc7841
-fix output formatting
2021-09-27 11:32:54 +02:00
Christian Grothoff
4cff3c1a5c
-fix unbound varibale
2021-09-27 11:14:29 +02:00
Christian Grothoff
f9a69b423b
fix auditor test DB generation logic and re-generate databases
2021-09-05 16:00:42 +02:00
Christian Grothoff
adc6c53b5c
doxygen and spelling fixes
2021-09-04 13:00:20 +02:00
Christian Grothoff
5149af9314
preliminary work on supporting sharding/parallel aggregation (undertested, but tests pass again)
2021-09-03 19:08:02 +02:00
Christian Grothoff
01e06eb715
-remove sessions also from auditor
2021-08-23 08:24:59 +02:00
Christian Grothoff
c559b1c935
complete implementation of long-polling for reserve status; remove support for multi-threaded exchange httpd
2021-08-23 00:00:32 +02:00
Christian Grothoff
f174781b57
support long_poll_ms argument in bank API ( #6987 )
2021-08-12 13:13:42 +02:00
Christian Grothoff
b58605a79d
introduce TALER_OS_init() to safely handle static linkage
2021-08-08 16:45:32 +02:00
adf854cd4a
load config file from correct location
2021-08-04 21:49:21 +02:00
Christian Grothoff
ba3f70390a
restructure configuration, move bank account credentials from exchange-account-XXX to exchange-accountcredentials-XXX
2021-08-03 21:58:36 +02:00
Christian Grothoff
33a28efef7
-more json_pack fixes
2021-07-31 21:48:36 +02:00
Christian Grothoff
fde9dc80f6
-more json_pack cleaning
2021-07-31 21:40:48 +02:00
Christian Grothoff
af9830453e
REVOCATION_DIR is long obsolete, KEYDIR was renamed to KEY_DIR and is in another section
2021-07-30 17:31:18 +02:00
Christian Grothoff
d821db366a
-fix misc enum confusions and other compiler warnings
2021-07-30 13:32:03 +02:00
Christian Grothoff
0ef7c0a0b7
fix #6960
2021-07-29 23:56:46 +02:00
02aa49cc36
install into usr/share/taler/exchange
2021-07-26 16:16:52 +02:00
Christian Grothoff
42decef957
fix #6939 in exchange
2021-07-24 09:00:35 +02:00
Christian Grothoff
306a08a71c
-rename TALER_amount_get_zero to TALER_amount_set_zero
2021-07-23 13:02:04 +02:00
Christian Grothoff
67559ad626
fix #6919 : add new tables to basedbs
2021-07-18 13:31:17 +02:00
Christian Grothoff
d1e5fd8f0e
pass config to dbinit in test
2021-07-18 12:48:56 +02:00
Christian Grothoff
883b1fc70b
-clean taler-auditor shell script, too
2021-06-28 12:16:04 +02:00
fa330ca12a
add merchant auth in auditor test
2021-06-10 20:22:53 +02:00
Christian Grothoff
5106a09c9f
fix more typos
2021-04-23 23:53:52 +02:00
Thien-Thi Nguyen
20bce1bc8e
fix typo: use var names ‘taler_auditor_sync_LDFLAGS’, ‘taler_auditor_sync_CPPFLAGS’
2021-03-08 02:23:26 -05:00
9bf54f4bab
auditor test: don't pass any merchant auth token
2021-02-04 18:27:05 +01:00
bfd67a22fd
fix merchant auth token in auditor test
2021-02-04 18:02:46 +01:00
b23f9b78a4
rename taler-helper-crypto-* to taler-exchange-secmod-*
2021-01-17 20:07:55 +01:00
Christian Grothoff
3b9c381112
remove master_pub from DB
2021-01-15 11:53:54 +01:00
57a0fc8d1f
purge old LOOKAHEAD_PROVIDE option
2021-01-15 11:36:45 +01:00
f45e72ae5d
remove legacy config option
2021-01-14 16:34:48 +01:00
Christian Grothoff
e3a0bc0d1f
fix sync issues, add rudimentary test
2021-01-13 19:47:45 +01:00
Christian Grothoff
52513dcc26
bugfixes in auditor-sync logic
2021-01-12 23:00:57 +01:00
Christian Grothoff
2518da8f45
taler-auditor-sync WiP
2021-01-11 23:02:22 +01:00
Christian Grothoff
e3156e88a7
sync skeleton
2021-01-11 19:04:49 +01:00
Christian Grothoff
5eed611594
fix #6685
2021-01-11 10:52:33 +01:00
Christian Grothoff
3a264434d7
DB schema update
2021-01-11 10:01:59 +01:00
Christian Grothoff
0e16fb816c
fix #6683
2021-01-10 13:15:23 +01:00
Christian Grothoff
db61628a9c
use known_coin_id instead of coin_pub, use reserve_out_serial_id/rrc_serial instead of h_blind_ev/h_coin_ev
2021-01-08 21:07:42 +01:00
Christian Grothoff
7ef7d793de
use auditor_uuid instead of auditor_pub as foreign key
2021-01-08 19:11:36 +01:00
Christian Grothoff
13555448b6
change exchange database to use denominations_serial instead of denom_pub_hash as foreign key
2021-01-08 18:14:46 +01:00
Christian Grothoff
3999999988
fixes for earlier fix
2021-01-07 22:48:50 +01:00
Christian Grothoff
421e802fd3
fix test issues with new DB schema
2021-01-07 22:24:19 +01:00
Christian Grothoff
6ccda0b02e
make reserve balance check used in internal_auditor mode only
2021-01-07 21:25:52 +01:00
Christian Grothoff
9d5a3ef659
only check tiny/done in internal mode
2021-01-07 21:14:26 +01:00
Christian Grothoff
9473ef4d86
fix remaining #6679 issues in exchange
2021-01-07 20:52:11 +01:00
Christian Grothoff
b2d8799af1
work on #6679 "
2021-01-07 10:40:01 +01:00
Christian Grothoff
40551fa08e
add -i option to taler-auditor
2021-01-06 22:51:55 +01:00
Christian Grothoff
e8df4ac339
update .gitignore files
2021-01-06 11:38:13 +01:00
Christian Grothoff
c90902ef50
generate DBs with current schema
2021-01-06 11:36:52 +01:00
Christian Grothoff
b05610a992
latest merchant needs dbinit
2021-01-06 11:34:50 +01:00
Christian Grothoff
148287954d
clean taler-config, needed to build proper dpkg
2021-01-02 12:00:00 +01:00
Christian Grothoff
26410a72c2
fix #6666 , bump protocol version to 9
2021-01-01 15:48:43 +01:00
Christian Grothoff
6b70f2e454
keep helpers in normal bin/ dir
2020-12-31 22:31:32 +01:00
Christian Grothoff
0bffea1f67
add missing linker options
2020-12-31 22:13:12 +01:00
Christian Grothoff
efbc411dea
new GANA code for revoked esign key
2020-12-26 16:23:22 +01:00
Christian Grothoff
57c9054784
implement #6161
2020-12-26 15:55:34 +01:00
Christian Grothoff
2c856ebe3c
use BASE_URL consistently
2020-12-25 09:04:27 +01:00
Christian Grothoff
247d1ca3e5
implement #6661 : secm key pinning via configuration
2020-12-24 14:48:50 +01:00
Christian Grothoff
deed88fe33
complete config
2020-12-22 18:41:40 +01:00
Christian Grothoff
0e74fbef8d
add logic to report generation for missing auditor signatures
2020-12-22 18:38:14 +01:00
Christian Grothoff
fe232f1fed
integrate auditor signature check logic with taler-helper-auditor-coins
2020-12-22 18:27:34 +01:00
Christian Grothoff
a644355c44
address FIXME: pass session when iterating over denominations
2020-12-22 18:13:46 +01:00
Christian Grothoff
699916056b
misc doxygen fixes
2020-12-20 17:10:09 +01:00
Christian Grothoff
b1e305fb05
remove obsolete configuration options
2020-12-17 16:19:28 +01:00
Christian Grothoff
f930a8c9d0
simplify further
2020-12-17 15:46:52 +01:00
Christian Grothoff
b74612fc33
update auditordb and test logic to work with new key separation logic ( #6175 )
2020-12-17 13:04:37 +01:00
Christian Grothoff
ff27037d42
regenerate DBs
2020-12-16 20:01:00 +01:00
Christian Grothoff
6f6c71a8d3
load fees from DB instead of from config, also in wire tools
2020-12-16 19:23:29 +01:00
Christian Grothoff
0336e62cca
finish revocation DB generation fixes: add timetravel for helpers
2020-12-16 14:39:56 +01:00
Christian Grothoff
70ca77c7b2
setup auditor-pub
2020-12-16 14:16:02 +01:00
Christian Grothoff
3afe09ba96
fix exchange account
2020-12-16 14:15:06 +01:00
Christian Grothoff
6d820228b6
enable auditor in generate-XXX-basedb scripts
2020-12-16 13:23:41 +01:00
Christian Grothoff
4a519078e8
update generator scripts to use new -offline tools (WiP)
2020-12-14 18:27:16 +01:00
Christian Grothoff
b5d88fc2d1
activating implementation of #6175
2020-12-14 15:42:32 +01:00
Christian Grothoff
2a3de6555a
add setup steps to tests
2020-12-11 23:44:01 +01:00
Christian Grothoff
3743d200ad
misc clean ups
2020-12-11 23:10:32 +01:00
Christian Grothoff
4587a79071
fix bank invocation
2020-12-11 13:13:47 +01:00
Christian Grothoff
781542d3e0
force use of Taler PD when getting libexec dir
2020-12-11 12:51:00 +01:00
Christian Grothoff
6cceb617af
centralize (most) offline signing/verifying operations into offline_signatures.c
2020-12-04 20:29:18 +01:00
Christian Grothoff
45d621f5ff
add -lgcov flag for coverage analysis
2020-11-12 22:25:59 +01:00
Christian Grothoff
522db4d98e
use --help instead of -h
2020-11-08 23:47:11 +01:00
Christian Grothoff
8d312562bf
adjust ECs
2020-11-07 18:51:54 +01:00
Christian Grothoff
789cd97b68
use current bank CLI and CFG options for auditor tests
2020-10-03 12:26:56 +02:00
Christian Grothoff
4e93638683
use current bank CLI and CFG options for auditor tests
2020-10-03 12:26:43 +02:00
Florian Dold
9a3bdcf604
starting the bank is slow, give it some more time
2020-09-12 15:38:00 +05:30
Christian Grothoff
d453c47a74
re-enable auditor tests ( #6479 )
2020-08-29 13:41:49 +02:00
Christian Grothoff
fa27c11662
force remove
2020-08-29 13:39:57 +02:00
Florian Dold
d2003378ac
add missing timetraval
2020-08-29 16:52:34 +05:30
Florian Dold
d1232f02cc
add missing 'run-until-done' and convert test-pay to new wallet API call
2020-08-29 15:12:22 +05:30
Christian Grothoff
0846ab93bc
doxygen fixes
2020-08-29 00:37:37 +02:00
Christian Grothoff
8a89eec7b4
log diagnostics
2020-08-28 20:17:24 +02:00
Christian Grothoff
581a39b5b5
improve reporting, also use auditor fee calculation when computing reserve balance updates in case of disagreement on coin value/fee
2020-08-28 20:02:08 +02:00
Christian Grothoff
1ef9735115
nicer process killing
2020-08-28 18:30:44 +02:00
Christian Grothoff
51fa812cf4
do setup instance
2020-08-28 18:28:53 +02:00
Christian Grothoff
d089c31e5e
fix test logic: initialize $WALLET_DB and fix cleanup logic of generate-auditor-basedb.sh
2020-08-28 18:01:50 +02:00
Christian Grothoff
4bba726356
nicer generic error reporting logic, for #6432
2020-08-25 15:11:56 +02:00
Christian Grothoff
a84c61dd82
fix #6483 : ensure cleanup of processes on exit
2020-08-19 18:03:45 +02:00
Florian Dold
645fef07cb
spend 4 TESTKUDOS, not 5, like the previous test command
2020-08-14 17:12:35 +05:30
Florian Dold
e4f98e0fa7
exchange, not bank
2020-08-14 16:52:29 +05:30
Florian Dold
96878561a5
fix test withdrawal wallet invocation
2020-08-14 16:49:17 +05:30
Florian Dold
3161751eba
don't run old integrationtest command
2020-08-14 16:44:24 +05:30
Florian Dold
8239a8bdd1
taler wallet invocation
2020-08-14 16:21:13 +05:30
Florian Dold
d4404cec14
adapt to GNUnet API change
2020-08-12 13:11:41 +05:30
Christian Grothoff
0e808b648a
fix misc typos
2020-07-22 23:56:52 +02:00