diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-02-22 18:35:10 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-02-22 18:35:10 +0100 |
commit | 7910ca183f40a544dae4add5e7b5ff4775e65e12 (patch) | |
tree | c7ea92bc5f255c94f17e8359a2cc611c1b1ec872 /src/include | |
parent | fbdc1996a6166893415c59ed830e75a8ccf79a51 (diff) |
double melt test no works with age restriction
- added missing field h_age_commitment in exchange's error response
- slight refactoring
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 5 | ||||
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index a49b9eb5f..ed447e905 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -1056,6 +1056,11 @@ struct TALER_CoinPublicInfo struct TALER_AgeCommitmentHash h_age_commitment; /** + * True, if age commitment is not applicable. + */ + bool no_age_commitment; + + /** * (Unblinded) signature over @e coin_pub with @e denom_pub, * which demonstrates that the coin is valid. */ diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 529d49431..dfe9ab7fe 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1127,6 +1127,11 @@ struct TALER_EXCHANGEDB_DepositListEntry struct TALER_AgeCommitmentHash h_age_commitment; /** + * true, if age commitment is not applicable + */ + bool no_age_commitment; + + /** * Detailed information about the receiver for executing the transaction. * URL in payto://-format. */ @@ -1322,6 +1327,11 @@ struct TALER_EXCHANGEDB_MeltListEntry struct TALER_AgeCommitmentHash h_age_commitment; /** + * true, if no h_age_commitment is applicable + */ + bool no_age_commitment; + + /** * How much value is being melted? This amount includes the fees, * so the final amount contributed to the melt is this value minus * the fee for melting the coin. We include the fee in what is |