mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
bitcoin/base58: p2sh address support.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -31,6 +31,13 @@ bool bitcoin_from_base58(bool *test_net,
|
||||
struct bitcoin_address *addr,
|
||||
const char *base58, size_t len);
|
||||
|
||||
/* P2SH address encoded as base58, with version and checksum */
|
||||
char *p2sh_to_base58(const tal_t *ctx, bool test_net,
|
||||
const struct ripemd160 *p2sh);
|
||||
bool p2sh_from_base58(bool *test_net,
|
||||
struct ripemd160 *p2sh,
|
||||
const char *base58, size_t len);
|
||||
|
||||
bool ripemd_from_base58(u8 *version, struct ripemd160 *ripemd160,
|
||||
const char *base58);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user