From 7910ca183f40a544dae4add5e7b5ff4775e65e12 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Tue, 22 Feb 2022 18:35:10 +0100 Subject: double melt test no works with age restriction - added missing field h_age_commitment in exchange's error response - slight refactoring --- src/include/taler_crypto_lib.h | 5 +++++ src/include/taler_exchangedb_plugin.h | 10 ++++++++++ 2 files changed, 15 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index a49b9eb5..ed447e90 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -1055,6 +1055,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 529d4943..dfe9ab7f 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1126,6 +1126,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. @@ -1321,6 +1326,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 -- cgit v1.2.3