aboutsummaryrefslogtreecommitdiff
path: root/src/util/denom.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2021-12-22 11:45:22 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:31:48 +0100
commit385eb51e93e39842c0ccb2a6b12b87c66c7fbe26 (patch)
treeabd54908cf87994fe27e873202d9ddac5c0dcbcf /src/util/denom.c
parentf3fb7c29e69d38ee77d6214cf001f8e18fa00f2b (diff)
downloadexchange-385eb51e93e39842c0ccb2a6b12b87c66c7fbe26.tar.xz
CS planchet create and withdraw create
Diffstat (limited to 'src/util/denom.c')
-rw-r--r--src/util/denom.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/util/denom.c b/src/util/denom.c
index bcfa3efab..6ff92e894 100644
--- a/src/util/denom.c
+++ b/src/util/denom.c
@@ -199,7 +199,10 @@ TALER_denom_pub_hash (const struct TALER_DenominationPublicKey *denom_pub,
GNUNET_free (buf);
}
break;
- // TODO: add case for Clause-Schnorr
+ case TALER_DENOMINATION_CS:
+ GNUNET_CRYPTO_hash_context_read (hc,
+ &denom_pub->details.cs_public_key,
+ sizeof(denom_pub->details.cs_public_key));
default:
GNUNET_assert (0);
}
@@ -237,11 +240,6 @@ TALER_denom_blind (const struct TALER_DenominationPublicKey *dk,
struct TALER_CoinPubHash *c_hash,
struct TALER_BlindedPlanchet *blinded_planchet)
{
- // if (dk->cipher != blinded_planchet->cipher)
- // {
- // GNUNET_break (0);
- // return GNUNET_SYSERR;
- // }
blinded_planchet->cipher = dk->cipher;
TALER_coin_pub_hash (coin_pub,
age_commitment_hash,