Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
alt_bn128.cpp File Reference
Include dependency graph for alt_bn128.cpp:

Go to the source code of this file.

Namespaces

namespace  fc
 namespace sysio::chain
 

Typedefs

using fc::Scalar = libff::bigint<libff::alt_bn128_q_limbs>
 

Functions

void fc::initLibSnark () noexcept
 
Scalar fc::to_scalar (const bytes &be) noexcept
 
std::variant< alt_bn128_error, libff::alt_bn128_G1fc::decode_g1_element (const bytes &bytes64_be) noexcept
 
std::variant< alt_bn128_error, libff::alt_bn128_Fq2fc::decode_fp2_element (const bytes &bytes64_be) noexcept
 
std::variant< alt_bn128_error, libff::alt_bn128_G2fc::decode_g2_element (const bytes &bytes128_be) noexcept
 
bytes fc::encode_g1_element (libff::alt_bn128_G1 p) noexcept
 
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)