Files
damus/nostrdb/src/invoice.h
William Casarin c677233dcb nostrdb/blocks: expose block iterator internals
so we don't need heap allocation. we will be calling this a lot in tight
render loops, we don't want to be allocating on each frame.

Signed-off-by: William Casarin <jb55@jb55.com>
2025-08-11 16:39:43 -07:00

16 lines
307 B
C

#ifndef NDB_INVOICE_H
#define NDB_INVOICE_H
#include <inttypes.h>
#include "cursor.h"
#include "nostrdb.h"
struct bolt11;
// ENCODING
int ndb_encode_invoice(struct cursor *cur, struct bolt11 *invoice);
int ndb_decode_invoice(struct cursor *cur, struct ndb_invoice *invoice);
#endif /* NDB_INVOICE_H */