mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
c635396766
These were so far only used for bolt11 construction, but we'll need them for the DNS seed as well, so here we just pull them out into their own unit and prefix them. Signed-off-by: Christian Decker <decker.christian@gmail.com>
14 lines
351 B
C
14 lines
351 B
C
#ifndef LIGHTNING_COMMON_BECH32_UTIL_H
|
|
#define LIGHTNING_COMMON_BECH32_UTIL_H
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <common/hash_u5.h>
|
|
|
|
/**
|
|
* Push the bytes in src in 5 bit format onto the end of data.
|
|
*/
|
|
void bech32_push_bits(u5 **data, const void *src, size_t nbits);
|
|
|
|
#endif /* LIGHTNING_COMMON_BECH32_UTIL_H */
|