aboutsummaryrefslogtreecommitdiff
path: root/src/util/payto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/payto.c')
-rw-r--r--src/util/payto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/payto.c b/src/util/payto.c
index 58f1bf635..26872f1ee 100644
--- a/src/util/payto.c
+++ b/src/util/payto.c
@@ -254,3 +254,13 @@ TALER_payto_validate (const char *payto_uri)
return NULL;
}
+
+
+void
+TALER_payto_hash (const char *payto,
+ struct TALER_PaytoHash *h_payto)
+{
+ GNUNET_CRYPTO_hash (payto,
+ strlen (payto) + 1,
+ &h_payto->hash);
+}