diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-07 19:22:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-07 19:22:12 +0100 |
commit | 98c30bee88762acfc236c918fd2fa6151c0808ff (patch) | |
tree | cc50c6914edae5559d4bdecb1ff87fa094d4ef72 /src/include/taler_util.h | |
parent | f374a5cd381370830e3c5ec685f42c5d00d3a9e5 (diff) | |
download | exchange-98c30bee88762acfc236c918fd2fa6151c0808ff.tar.xz |
fix payto:// construction routine and move it to libtalerutil
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r-- | src/include/taler_util.h | 13 |
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 |