Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bn254_crs_data.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::srs
 

Functions

g1::affine_element bb::srs::get_bn254_g1_second_element ()
 Expected second G1 element from BN254 CRS.
 
g2::affine_element bb::srs::get_bn254_g2_crs_element ()
 Reference BN254 G2 element from the trusted setup CRS.
 

Variables

constexpr g1::affine_element bb::srs::BN254_G1_FIRST_ELEMENT = g1::affine_one
 Expected first G1 element from BN254 CRS.
 
constexpr std::array< uint8_t, 128 > bb::srs::BN254_G2_ELEMENT_BYTES
 Raw 128-byte serialization of the BN254 G2 trusted-setup point [x]_2.
 
constexpr std::array< uint8_t, 32 > bb::srs::BN254_G2_ELEMENT_SHA256
 SHA-256 hash of BN254_G2_ELEMENT_BYTES.
 
constexpr uint256_t bb::srs::BN254_G1_FIRST_ELEMENT_COMPRESSED = uint256_t(1)
 Compressed form of the first G1 element (generator point).
 
constexpr uint256_t bb::srs::BN254_G1_SECOND_ELEMENT_COMPRESSED
 Compressed form of the second G1 element from the trusted setup.