Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
equihash.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
fc/crypto/sha256.hpp
>
3
#include <
fc/vector.hpp
>
4
5
namespace
fc
{
namespace
equihash {
6
7
struct
proof
8
{
9
uint32_t
n
;
10
uint32_t
k
;
11
sha256
seed
;
12
std::vector< uint32_t >
inputs
;
13
14
bool
is_valid
()
const
;
15
16
static
proof
hash
(
uint32_t
n
,
uint32_t
k
,
sha256
seed
);
17
};
18
19
} }
// fc
20
21
FC_REFLECT
(
fc::equihash::proof
, (n)(k)(seed)(inputs) )
fc::sha256
Definition
sha256.hpp:12
vector.hpp
fc
namespace sysio::chain
Definition
authority.cpp:3
FC_REFLECT
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition
reflect.hpp:311
sha256.hpp
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
fc::equihash::proof
Definition
equihash.hpp:8
fc::equihash::proof::n
uint32_t n
Definition
equihash.hpp:9
fc::equihash::proof::k
uint32_t k
Definition
equihash.hpp:10
fc::equihash::proof::inputs
std::vector< uint32_t > inputs
Definition
equihash.hpp:12
fc::equihash::proof::is_valid
bool is_valid() const
Definition
equihash.cpp:26
fc::equihash::proof::hash
static proof hash(uint32_t n, uint32_t k, sha256 seed)
Definition
equihash.cpp:33
fc::equihash::proof::seed
sha256 seed
Definition
equihash.hpp:11
libraries
fc
include
fc
crypto
equihash.hpp
Generated by
1.12.0