Last version before deleting Makefile and CmakeLists.txt
This commit is contained in:
20
nostr_core/utils.h
Normal file
20
nostr_core/utils.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* NOSTR Core Library - Utilities
|
||||
*
|
||||
* General utility functions used across multiple NIPs
|
||||
*/
|
||||
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
// Error codes (imported from nip001.h)
|
||||
#define NOSTR_SUCCESS 0
|
||||
#define NOSTR_ERROR_INVALID_INPUT -1
|
||||
|
||||
// Utility function declarations
|
||||
void nostr_bytes_to_hex(const unsigned char* bytes, size_t len, char* hex);
|
||||
int nostr_hex_to_bytes(const char* hex, unsigned char* bytes, size_t len);
|
||||
|
||||
#endif // UTILS_H
|
||||
Reference in New Issue
Block a user