diff options
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index 5d1f0d08e..c7b459450 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -339,4 +339,25 @@ TALER_rsa_unblind (const struct GNUNET_CRYPTO_RsaSignature *sig, } +void +TALER_coin_ev_hash (const void *coin_ev, + size_t coin_ev_size, + struct TALER_BlindedCoinHash *bch) +{ + GNUNET_CRYPTO_hash (coin_ev, + coin_ev_size, + &bch->hash); +} + + +void +TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub, + struct TALER_CoinPubHash *coin_h) +{ + GNUNET_CRYPTO_hash (&coin_pub->eddsa_pub, + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey), + &coin_h->hash); +} + + /* end of crypto.c */ |