Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
modular_arithmetic.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <vector>
5
#include <variant>
6
7
namespace
fc
{
8
using
bytes
= std::vector<char>;
9
10
enum class
modular_arithmetic_error
:
int32_t
{
11
modulus_len_zero
,
12
};
13
14
std::variant<modular_arithmetic_error, bytes>
modexp
(
const
bytes
& _base,
const
bytes
& _exponent,
const
bytes
& _modulus);
15
}
fc
namespace sysio::chain
Definition
authority.cpp:3
fc::modexp
std::variant< modular_arithmetic_error, bytes > modexp(const bytes &_base, const bytes &_exponent, const bytes &_modulus)
Definition
modular_arithmetic.cpp:7
fc::bytes
std::vector< char > bytes
Definition
alt_bn128.hpp:10
fc::modular_arithmetic_error
modular_arithmetic_error
Definition
modular_arithmetic.hpp:10
fc::modular_arithmetic_error::modulus_len_zero
@ modulus_len_zero
int32_t
signed int int32_t
Definition
stdint.h:123
libraries
fc
include
fc
crypto
modular_arithmetic.hpp
Generated by
1.12.0