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/exchange/taler-exchange-httpd_refreshes_reveal.c | |
parent | 476ae5380823f287421885bac15871dc970d53e7 (diff) | |
download | exchange-4c53d42e44cbab55194b2f0fb71ffc3cb082b56a.tar.gz exchange-4c53d42e44cbab55194b2f0fb71ffc3cb082b56a.tar.bz2 exchange-4c53d42e44cbab55194b2f0fb71ffc3cb082b56a.zip |
[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/exchange/taler-exchange-httpd_refreshes_reveal.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_refreshes_reveal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index caba557c5..d5cb2e476 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -620,14 +620,14 @@ resolve_refreshes_reveal_denominations (struct MHD_Connection *connection, oac = rctx->old_age_commitment; oac->mask = TEH_age_mask; oac->num = ng; - oac->pub = GNUNET_new_array (ng, struct TALER_AgeCommitmentPublicKeyP); + oac->keys = GNUNET_new_array (ng, struct TALER_AgeCommitmentPublicKeyP); /* Extract old age commitment */ for (unsigned int i = 0; i< ng; i++) { struct GNUNET_JSON_Specification ac_spec[] = { GNUNET_JSON_spec_fixed_auto (NULL, - &oac->pub[i]), + &oac->keys[i]), GNUNET_JSON_spec_end () }; |