Wire Sysio Wire Sysion 1.0.0
|
#include <gmp.h>
#include <fc/crypto/alt_bn128.hpp>
#include <libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include <libff/algebra/curves/alt_bn128/alt_bn128_pairing.hpp>
#include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <libff/common/profiling.hpp>
#include <boost/throw_exception.hpp>
#include <algorithm>
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_G1 > | fc::decode_g1_element (const bytes &bytes64_be) noexcept |
std::variant< alt_bn128_error, libff::alt_bn128_Fq2 > | fc::decode_fp2_element (const bytes &bytes64_be) noexcept |
std::variant< alt_bn128_error, libff::alt_bn128_G2 > | fc::decode_g2_element (const bytes &bytes128_be) noexcept |
bytes | fc::encode_g1_element (libff::alt_bn128_G1 p) noexcept |
std::variant< alt_bn128_error, bytes > | fc::alt_bn128_add (const bytes &op1, const bytes &op2) |
std::variant< alt_bn128_error, bytes > | fc::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) |