nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

invoice.h (307B)


      1 
      2 #ifndef NDB_INVOICE_H
      3 #define NDB_INVOICE_H
      4 
      5 #include <inttypes.h>
      6 #include "cursor.h"
      7 #include "nostrdb.h"
      8 
      9 struct bolt11;
     10 
     11 // ENCODING
     12 int ndb_encode_invoice(struct cursor *cur, struct bolt11 *invoice);
     13 int ndb_decode_invoice(struct cursor *cur, struct ndb_invoice *invoice);
     14 
     15 #endif /* NDB_INVOICE_H */