Nostrduino
Loading...
Searching...
No Matches
NostrEncoding.h
Go to the documentation of this file.
1#ifndef NOSTR_ENCODING_H
2#define NOSTR_ENCODING_H
3
4#include "NostrString.h"
5#include <stddef.h>
6#include <stdint.h>
7
8namespace nostr {
9bool decodeHexExact(const NostrString &input, uint8_t *output, size_t expectedBytes);
10
11bool validateBase64Encoding(const char *encoded, size_t encodedSize, bool noPadding,
12 bool urlSafe, size_t &decodedSize);
13bool decodeHexExact(const NostrString &input, uint8_t *output, size_t outputCapacity, size_t expectedBytes);
14}
15
16#endif
#define NostrString
Definition NostrString.h:10
Definition CryptoLock.h:6
bool decodeHexExact(const NostrString &input, uint8_t *output, size_t expectedBytes)
Definition NostrEncoding.cpp:53
bool validateBase64Encoding(const char *encoded, size_t encodedSize, bool noPadding, bool urlSafe, size_t &decodedSize)
Definition NostrEncoding.cpp:57