Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
k1_recover.hpp
Go to the documentation of this file.
1
// Snark - Wrapper for alt_bn128 add mul pair and modexp
2
3
#pragma once
4
5
#include <cstdint>
6
#include <variant>
7
#include <vector>
8
9
namespace
fc
{
10
using
bytes
= std::vector<char>;
11
12
enum class
k1_recover_error
:
int32_t
{
13
init_error
,
14
input_error
,
15
invalid_signature
,
16
recover_error
,
17
};
18
19
std::variant<k1_recover_error, bytes>
k1_recover
(
const
bytes
&
signature
,
const
bytes
&
digest
);
20
}
// fc
fc
namespace sysio::chain
Definition
authority.cpp:3
fc::digest
fc::sha256 digest(const T &value)
Definition
digest.hpp:9
fc::bytes
std::vector< char > bytes
Definition
alt_bn128.hpp:10
fc::signature
bytes signature
Definition
pke.hpp:17
fc::k1_recover_error
k1_recover_error
Definition
k1_recover.hpp:12
fc::k1_recover_error::invalid_signature
@ invalid_signature
fc::k1_recover_error::recover_error
@ recover_error
fc::k1_recover_error::init_error
@ init_error
fc::k1_recover_error::input_error
@ input_error
fc::k1_recover
std::variant< k1_recover_error, bytes > k1_recover(const bytes &signature, const bytes &digest)
Definition
k1_recover.cpp:13
int32_t
signed int int32_t
Definition
stdint.h:123
libraries
fc
include
fc
crypto
k1_recover.hpp
Generated by
1.12.0