Nostrduino
Loading...
Searching...
No Matches
src
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
7
namespace
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.
12
bool
validateBolt11Invoice
(
const
NostrString
&invoice,
MilliSats
expectedAmount,
13
const
NostrString
&expectedCurrency =
""
,
14
unsigned
long
long
nowSeconds = 0);
15
16
}
// namespace nostr
17
18
#endif
NostrAmount.h
NostrString.h
NostrString
#define NostrString
Definition
NostrString.h:10
nostr
Definition
CryptoLock.h:6
nostr::validateBolt11Invoice
bool validateBolt11Invoice(const NostrString &invoice, MilliSats expectedAmount, const NostrString &expectedCurrency="", unsigned long long nowSeconds=0)
Definition
NostrBolt11.cpp:99
nostr::MilliSats
int64_t MilliSats
Definition
NostrAmount.h:26
Generated by
1.9.8