Skip to content

Commit 899b055

Browse files
authored
fix: Download SRS using one canonical URL across the codebase (#1748)
resolves #1747 # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist).
1 parent d65be21 commit 899b055

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

circuits/cpp/barretenberg/cpp/src/barretenberg/bb/get_crs.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ inline std::vector<uint8_t> download_g1_data(size_t num_points)
2020

2121
inline std::vector<uint8_t> download_g2_data()
2222
{
23-
size_t g2_start = 28 + 5040000 * 64;
23+
size_t g2_start = 28 + 5040001 * 64;
2424
size_t g2_end = g2_start + 128 - 1;
2525
std::string command = "curl -s -H \"Range: bytes=" + std::to_string(g2_start) + "-" + std::to_string(g2_end) +
26-
"\" 'https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/sealed/transcript00.dat'";
26+
"\" 'https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/monomial/transcript00.dat'";
2727

2828
return exec_pipe(command);
2929
}

circuits/cpp/barretenberg/ts/src/crs/net_crs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export class NetCrs {
3838
* Download the G2 points data.
3939
*/
4040
async downloadG2Data() {
41-
const g2Start = 28 + 5040000 * 64;
41+
const g2Start = 28 + 5040001 * 64;
4242
const g2End = g2Start + 128 - 1;
4343

44-
const response2 = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/sealed/transcript00.dat', {
44+
const response2 = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/monomial/transcript00.dat', {
4545
headers: {
4646
Range: `bytes=${g2Start}-${g2End}`,
4747
},

yarn-project/circuits.js/src/crs/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class NetCrs {
2727
const g1End = g1Start + this.numPoints * 64 - 1;
2828

2929
// Download required range of data.
30-
const response = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/sealed/transcript00.dat', {
30+
const response = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/monomial/transcript00.dat', {
3131
headers: {
3232
Range: `bytes=${g1Start}-${g1End}`,
3333
},
@@ -42,10 +42,10 @@ export class NetCrs {
4242
* Download the G2 points data.
4343
*/
4444
async downloadG2Data() {
45-
const g2Start = 28 + 5040000 * 64;
45+
const g2Start = 28 + 5040001 * 64;
4646
const g2End = g2Start + 128 - 1;
4747

48-
const response2 = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/sealed/transcript00.dat', {
48+
const response2 = await fetch('https://aztec-ignition.s3.amazonaws.com/MAIN%20IGNITION/monomial/transcript00.dat', {
4949
headers: {
5050
Range: `bytes=${g2Start}-${g2End}`,
5151
},

0 commit comments

Comments
 (0)