19 lines
421 B
C++
19 lines
421 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: HashCash.hpp
|
||
|
Date: 2022-9-18
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Crypto::HashCash
|
||
|
{
|
||
|
struct HashCashAnswer
|
||
|
{
|
||
|
AuUInt64 y;
|
||
|
};
|
||
|
|
||
|
AUKN_SYM bool CheckSalt(AuUInt64 token, AuUInt8 power, const HashCashAnswer &answer);
|
||
|
AUKN_SYM HashCashAnswer FindAnswer(AuUInt64 token, AuUInt8 power);
|
||
|
}
|