Christian Grothoff
033a5dc93b
implement taler-auditor-sync support for profit_drains table ( #4960 )
2022-07-30 10:29:24 +02:00
Christian Grothoff
4d4955e225
d_ms to d_us
2022-07-27 15:20:16 +02:00
Christian Grothoff
45f43fcde7
-remove resolved FIXMEs
2022-07-09 11:28:38 +02:00
Christian Grothoff
0ad84355d5
fix auditor refund fee calculations
2022-07-06 18:36:51 +02:00
Christian Grothoff
9e5dc2a542
-remove dead argument
2022-07-05 11:50:20 +02:00
Christian Grothoff
75dbf20ced
-annotate bugs
2022-07-05 11:46:02 +02:00
Christian Grothoff
e68206b1f9
-deduplicate logic
2022-07-04 23:25:51 +02:00
Christian Grothoff
9e3fb2302d
-gana merge
2022-07-01 07:22:39 +02:00
Christian Grothoff
085e40bc56
-exchange_api_batch_deposit.c compiles
2022-07-01 07:08:13 +02:00
Christian Grothoff
21551bb4c3
-also add public key for auditor for revoke-basedb.conf
2022-06-30 16:06:50 +02:00
Christian Grothoff
ded7f9ca18
-fix issue with missing signature over denomination and age restriction hash in purse deposit
2022-06-28 20:25:45 +02:00
Christian Grothoff
2443ee672d
-more typos
2022-06-26 17:09:33 +02:00
Christian Grothoff
fd9fc9f0cd
-fix misc doxygen warnings, code clean up
2022-06-26 17:08:17 +02:00
Christian Grothoff
646c410ace
-add auditor_priv_file
2022-06-26 17:08:16 +02:00
Christian Grothoff
5575194afd
-fix path
2022-06-26 17:08:16 +02:00
Christian Grothoff
ea21572b54
-fix path
2022-06-26 17:08:16 +02:00
Christian Grothoff
007e4bc954
-fix #7262
2022-06-19 14:24:44 +02:00
Christian Grothoff
bad572a010
-add missing checkpointing logic
2022-06-19 14:04:41 +02:00
Christian Grothoff
8da74a6ca7
-more work on taler-helper-auditor-reserve p2p audits
2022-06-18 20:36:44 +02:00
Christian Grothoff
f6a7d4a1ed
-more DB logic for taler-helper-auditor-reserves
2022-06-15 22:31:44 +02:00
Christian Grothoff
eccf37e450
-more DB prep work towards reserve auditing with p2p payments
2022-06-15 20:49:39 +02:00
Christian Grothoff
83be3173d4
-preparatory steps to expand auditor to know about purse and history fees
2022-06-14 23:04:43 +02:00
Christian Grothoff
568d27abe5
-include purse deposits in aggregation coin value analysis; note issues discovered with deposit fee waiver logic
2022-06-14 22:43:38 +02:00
Christian Grothoff
963477e064
-fix comments
2022-06-14 15:57:48 +02:00
Christian Grothoff
58a0882909
-towards coin audits with purse deposits
2022-06-13 15:31:52 +02:00
Christian Grothoff
71a42d2be8
fix #7241
2022-06-12 22:35:51 +02:00
Christian Grothoff
393ae7f9a3
-add dB logic for auditor iteration over purse deposits
2022-06-12 17:23:36 +02:00
Christian Grothoff
f3ceeb00ea
-expand auditordb to track progress for p2p payments
2022-06-08 17:05:51 +02:00
Christian Grothoff
bdbd2a464d
no purse fee if purse is successfully merged
2022-06-05 21:00:49 +02:00
Christian Grothoff
65ce2eede6
-expand table list for taler-auditor-sync
2022-06-01 23:16:35 +02:00
Christian Grothoff
361f534dbb
add -I option to wirewatch
2022-05-31 08:46:43 +02:00
Christian Grothoff
7b25787a4b
-generate 404 on non-existing accounts for fakebank, use payto://-URIs with receiver-name in tests
2022-05-30 16:31:24 +02:00
Christian Grothoff
b1b943aa3e
-add metrics for idempotent (batch) withdraw
2022-05-22 13:06:17 +02:00
Christian Grothoff
10a97996f7
-enable batch withdraw manual testing
2022-05-15 18:56:35 +02:00
Christian Grothoff
0a7b75b2cf
-regen DBs to fix #7236
2022-05-02 20:34:41 +02:00
Christian Grothoff
b4965db0d2
-fix fieldnames, regenerated DBs
2022-04-24 20:49:11 +02:00
Christian Grothoff
001f406ad6
regen test DBs to fix #7220
2022-04-15 11:42:57 +02:00
Christian Grothoff
747ae5ef09
privatize more signature structs, simplify code
2022-03-31 12:37:39 +02:00
Christian Grothoff
eadee56dcf
-remove row check, not stable enough to assert on
2022-03-30 12:00:20 +02:00
Christian Grothoff
074ea7502e
centralize exchange online signature logic
2022-03-29 15:21:49 +02:00
Christian Grothoff
1f1d675f3d
-remove tiny field, no longer needed
2022-03-27 14:34:44 +02:00
Christian Grothoff
238761c87d
-regen DBs
2022-03-25 14:07:31 +01:00
Christian Grothoff
f5e5f4b843
more work on recoup_by_reserve: add new materialized index to avoid hitting all partitions for the query
2022-03-19 14:05:45 +01:00
Christian Grothoff
badfde8962
add deposits_by_coin table to speed-up certain queries (in theory)
2022-03-18 15:47:25 +01:00
Christian Grothoff
142a369e43
add selection by shard, ignore KYC in revocation test aggregation
2022-03-18 08:54:08 +01:00
Christian Grothoff
23af6c3c41
change table structures again to shard better by coin_pub and not use known_coin_id so much
2022-03-18 01:57:39 +01:00
Christian Grothoff
a59d39f699
reinit auditor bd: column dropped
2022-03-17 15:09:14 +01:00
Christian Grothoff
eac8b8c0da
-re-enable test-revocation.sh, works again
2022-03-17 15:06:58 +01:00
Christian Grothoff
12809b28ec
-misc fixes
2022-03-17 14:16:34 +01:00
Christian Grothoff
fe94405554
regenerate revokedb
2022-03-15 13:09:32 +01:00
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