From 98c30bee88762acfc236c918fd2fa6151c0808ff Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 Nov 2021 19:22:12 +0100 Subject: fix payto:// construction routine and move it to libtalerutil --- src/include/taler_util.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include') 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 @@ -327,6 +327,19 @@ char * 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. * -- cgit v1.2.3