diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-03-03 19:35:24 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-03-03 19:35:24 +0100 |
commit | 4c53d42e44cbab55194b2f0fb71ffc3cb082b56a (patch) | |
tree | ad506b81aa2a8f1801224a10d1dc12795a846091 /src/lib/exchange_api_refreshes_reveal.c | |
parent | 476ae5380823f287421885bac15871dc970d53e7 (diff) |
[age restriction] progress 18/n - attestation tested
- Unit-tests for commit, derive, attest and verify added, with multiple
combinations of minimum age and commited age.
- Fixed crypto implementation (eddsa -> ecdsa)
- Using now standard functionality from GNUNET:
GNUNET_CRYPTO_ecdsa_{private,public}_key_derive
All tests pass (unit tests in util/ and 'make check' in testing).
Diffstat (limited to 'src/lib/exchange_api_refreshes_reveal.c')
-rw-r--r-- | src/lib/exchange_api_refreshes_reveal.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c index 6427c637b..cd2a1d1f4 100644 --- a/src/lib/exchange_api_refreshes_reveal.c +++ b/src/lib/exchange_api_refreshes_reveal.c @@ -438,10 +438,11 @@ TALER_EXCHANGE_refreshes_reveal ( for (size_t i = 0; i < rd->melt_age_commitment_proof->commitment.num; i++) { GNUNET_assert (0 == - json_array_append_new (old_age_commitment, - GNUNET_JSON_from_data_auto ( - &rd->melt_age_commitment_proof-> - commitment.pub[i]))); + json_array_append_new ( + old_age_commitment, + GNUNET_JSON_from_data_auto ( + &rd->melt_age_commitment_proof-> + commitment.keys[i]))); } } |