Nostrduino
Loading...
Searching...
No Matches
NostrBolt11.h
Go to the documentation of this file.
1#ifndef NOSTR_BOLT11_H
2#define NOSTR_BOLT11_H
3
4#include "NostrAmount.h"
5#include "NostrString.h"
6
7namespace nostr {
8
9// Validates checksum, amount, network, required fields, expiry and signature.
10// expectedCurrency is the BOLT11 currency prefix without "ln" (for example
11// "bc" or "tb"); an empty value accepts any standard Bitcoin network.
12bool validateBolt11Invoice(const NostrString &invoice, MilliSats expectedAmount,
13 const NostrString &expectedCurrency = "",
14 unsigned long long nowSeconds = 0);
15
16} // namespace nostr
17
18#endif
#define NostrString
Definition NostrString.h:10
Definition CryptoLock.h:6
bool validateBolt11Invoice(const NostrString &invoice, MilliSats expectedAmount, const NostrString &expectedCurrency="", unsigned long long nowSeconds=0)
Definition NostrBolt11.cpp:99
int64_t MilliSats
Definition NostrAmount.h:26