mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-27 09:04:40 +01:00
d5e4d52563
And use it in wireaddr. We fix up the double '.onion' in the test case, which seems like an error? Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 lines
326 B
C
11 lines
326 B
C
#ifndef LIGHTNING_COMMON_BASE32_H
|
|
#define LIGHTNING_COMMON_BASE32_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
|
|
char *b32_encode(const tal_t *ctx, const void *data, size_t len);
|
|
u8 *b32_decode(const tal_t *ctx, const char *str, size_t len);
|
|
|
|
#endif /* LIGHTNING_COMMON_BASE32_H */
|