Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
alt_bn128.hpp File Reference
#include <functional>
#include <cstdint>
#include <variant>
#include <vector>
#include <fc/utility.hpp>
Include dependency graph for alt_bn128.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fc
 namespace sysio::chain
 

Typedefs

using fc::bytes = std::vector<char>
 

Enumerations

enum class  fc::alt_bn128_error : int32_t {
  fc::operand_component_invalid , fc::operand_not_in_curve , fc::pairing_list_size_error , fc::operand_outside_g2 ,
  fc::input_len_error , fc::invalid_scalar_size
}
 

Functions

std::variant< alt_bn128_error, bytesfc::alt_bn128_add (const bytes &op1, const bytes &op2)
 
std::variant< alt_bn128_error, bytesfc::alt_bn128_mul (const bytes &g1_point, const bytes &scalar)
 
std::variant< alt_bn128_error, bool > fc::alt_bn128_pair (const bytes &g1_g2_pairs, const yield_function_t &yield)