Copied TCP impl from other project, basic Block implementation, randomx pow, signing via secp256k1
This commit is contained in:
13
include/crypto/crypto.h
Normal file
13
include/crypto/crypto.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef CRYPTO_H
|
||||
#define CRYPTO_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <openssl/sha.h>
|
||||
#include <secp256k1.h>
|
||||
|
||||
bool Crypto_VerifySignature(const uint8_t* data, size_t len, const uint8_t* signature, const uint8_t* publicKey);
|
||||
void Crypto_SignData(const uint8_t* data, size_t len, const uint8_t* privateKey, uint8_t* outSignature);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user