Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
alt_bn128.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <cstdint>
5#include <variant>
6#include <vector>
7#include <fc/utility.hpp>
8
9namespace fc {
10 using bytes = std::vector<char>;
11
20
21 std::variant<alt_bn128_error, bytes> alt_bn128_add(const bytes& op1, const bytes& op2);
22 std::variant<alt_bn128_error, bytes> alt_bn128_mul(const bytes& g1_point, const bytes& scalar);
23 std::variant<alt_bn128_error, bool> alt_bn128_pair(const bytes& g1_g2_pairs, const yield_function_t& yield);
24
25} // fc
namespace sysio::chain
Definition authority.cpp:3
std::vector< char > bytes
Definition alt_bn128.hpp:10
optional_delegate< void()> yield_function_t
Definition utility.hpp:205
std::variant< alt_bn128_error, bytes > alt_bn128_add(const bytes &op1, const bytes &op2)
alt_bn128_error
Definition alt_bn128.hpp:12
std::variant< alt_bn128_error, bytes > alt_bn128_mul(const bytes &g1_point, const bytes &scalar)
std::variant< alt_bn128_error, bool > alt_bn128_pair(const bytes &g1_g2_pairs, const yield_function_t &yield)
signed int int32_t
Definition stdint.h:123