Last version before deleting Makefile and CmakeLists.txt
This commit is contained in:
18
nostr_core/nip013.h
Normal file
18
nostr_core/nip013.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* NOSTR Core Library - NIP-013: Proof of Work
|
||||
*/
|
||||
|
||||
#ifndef NIP013_H
|
||||
#define NIP013_H
|
||||
|
||||
#include "nip001.h"
|
||||
#include <stdint.h>
|
||||
|
||||
// Function declarations
|
||||
int nostr_add_proof_of_work(cJSON* event, const unsigned char* private_key,
|
||||
int target_difficulty, int max_attempts,
|
||||
int progress_report_interval, int timestamp_update_interval,
|
||||
void (*progress_callback)(int current_difficulty, uint64_t nonce, void* user_data),
|
||||
void* user_data);
|
||||
|
||||
#endif // NIP013_H
|
||||
Reference in New Issue
Block a user