Files
palladum-lightning/common/iso4217.h
Rusty Russell c3362b057c BOLT12: remove -offers from bolt12 quotes, update them.
Typo fixes and wording changes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-02-11 20:19:01 -06:00

22 lines
567 B
C

#ifndef LIGHTNING_COMMON_ISO4217_H
#define LIGHTNING_COMMON_ISO4217_H
#include "config.h"
#include <wire/wire.h>
/* BOLT #12:
*
* - MUST specify `offer_currency` `iso4217` as an ISO 4217 three-letter code.
* - MUST specify `offer_amount` in the currency unit adjusted by the ISO 4217
* exponent (e.g. USD cents).
*/
struct iso4217_name_and_divisor {
const char *name;
unsigned int minor_unit;
};
#define ISO4217_NAMELEN 3
const struct iso4217_name_and_divisor *find_iso4217(const utf8 *prefix,
size_t len);
#endif /* LIGHTNING_COMMON_ISO4217_H */