-removed confused TODOs
This commit is contained in:
parent
db8cdc8c4c
commit
d581729443
@ -397,12 +397,10 @@ setup_key (struct DenominationKey *dk,
|
|||||||
struct GNUNET_CRYPTO_CsPublicKey pub;
|
struct GNUNET_CRYPTO_CsPublicKey pub;
|
||||||
|
|
||||||
GNUNET_CRYPTO_cs_private_key_generate (&priv);
|
GNUNET_CRYPTO_cs_private_key_generate (&priv);
|
||||||
GNUNET_CRYPTO_cs_private_key_get_public (&priv, &pub);
|
GNUNET_CRYPTO_cs_private_key_get_public (&priv,
|
||||||
// TODO: Add nullcheck?
|
&pub);
|
||||||
|
|
||||||
TALER_cs_pub_hash (&pub,
|
TALER_cs_pub_hash (&pub,
|
||||||
&dk->h_cs);
|
&dk->h_cs);
|
||||||
|
|
||||||
GNUNET_asprintf (&dk->filename,
|
GNUNET_asprintf (&dk->filename,
|
||||||
"%s/%s/%llu",
|
"%s/%s/%llu",
|
||||||
keydir,
|
keydir,
|
||||||
@ -1118,8 +1116,8 @@ parse_key (struct Denomination *denom,
|
|||||||
struct DenominationKey *dk;
|
struct DenominationKey *dk;
|
||||||
struct DenominationKey *before;
|
struct DenominationKey *before;
|
||||||
|
|
||||||
// TODO: Add check if pubkey is set?
|
GNUNET_CRYPTO_cs_private_key_get_public (priv,
|
||||||
GNUNET_CRYPTO_cs_private_key_get_public (priv, &pub);
|
&pub);
|
||||||
dk = GNUNET_new (struct DenominationKey);
|
dk = GNUNET_new (struct DenominationKey);
|
||||||
dk->denom_priv = *priv;
|
dk->denom_priv = *priv;
|
||||||
dk->denom = denom;
|
dk->denom = denom;
|
||||||
|
Loading…
Reference in New Issue
Block a user