aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-07 19:22:12 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-07 19:22:12 +0100
commit98c30bee88762acfc236c918fd2fa6151c0808ff (patch)
treecc50c6914edae5559d4bdecb1ff87fa094d4ef72 /src/include
parentf374a5cd381370830e3c5ec685f42c5d00d3a9e5 (diff)
downloadexchange-98c30bee88762acfc236c918fd2fa6151c0808ff.tar.xz
fix payto:// construction routine and move it to libtalerutil
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 4faa75c4f..8d7f5f754 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -328,6 +328,19 @@ TALER_payto_get_method (const char *payto_uri);
/**
+ * Construct a payto://-URI from a Taler @a reserve_pub at
+ * a @exchange_base_url
+ *
+ * @param exchange_base_url the URL of the exchange
+ * @param reserve_pub public key of the reserve
+ * @return payto:// URI encoding the reserve's address
+ */
+char *
+TALER_payto_from_reserve (const char *exchange_base_url,
+ const struct TALER_ReservePublicKeyP *reserve_pub);
+
+
+/**
* Obtain the account name from a payto URL.
*
* @param payto an x-taler-bank payto URL