File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
barretenberg/cpp/src/barretenberg/srs/factories Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ std::vector<uint8_t> download_bn254_g1_data(size_t num_points)
9
9
size_t g1_end = num_points * sizeof (bb::g1::affine_element) - 1 ;
10
10
11
11
// Safe command construction with numeric interpolation and hardcoded URL
12
- auto data = bb::exec_pipe_safe (
13
- literal_string (" curl -H \" Range: bytes=0-" ), g1_end, literal_string (" \" 'https://crs.aztec.network/g1.dat'" ));
12
+ auto data = bb::exec_pipe_safe (bb::literal_string (" curl -H \" Range: bytes=0-" ),
13
+ g1_end,
14
+ bb::literal_string (" \" 'https://crs.aztec.network/g1.dat'" ));
14
15
// Header + num_points * sizeof point.
15
16
if (data.size () < g1_end) {
16
17
throw_or_abort (" Failed to download g1 data." );
@@ -22,7 +23,7 @@ std::vector<uint8_t> download_bn254_g1_data(size_t num_points)
22
23
std::vector<uint8_t > download_bn254_g2_data ()
23
24
{
24
25
// Safe command with hardcoded URL - using exec_pipe_safe with single literal
25
- return bb::exec_pipe_safe (literal_string (" curl 'https://crs.aztec.network/g2.dat'" ));
26
+ return bb::exec_pipe_safe (bb:: literal_string (" curl 'https://crs.aztec.network/g2.dat'" ));
26
27
}
27
28
} // namespace
28
29
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ std::vector<uint8_t> download_grumpkin_g1_data(size_t num_points)
11
11
size_t g1_end = num_points * sizeof (bb::curve::Grumpkin::AffineElement) - 1 ;
12
12
13
13
// Safe command construction with numeric interpolation and hardcoded URL
14
- auto data = bb::exec_pipe_safe (literal_string (" curl -s -H \" Range: bytes=0-" ),
14
+ auto data = bb::exec_pipe_safe (bb:: literal_string (" curl -s -H \" Range: bytes=0-" ),
15
15
g1_end,
16
- literal_string (" \" 'https://crs.aztec.network/grumpkin_g1.dat'" ));
16
+ bb:: literal_string (" \" 'https://crs.aztec.network/grumpkin_g1.dat'" ));
17
17
if (data.size () < g1_end) {
18
18
THROW std::runtime_error (" Failed to download grumpkin g1 data." );
19
19
}
You can’t perform that action at this time.
0 commit comments