Skip to content

Commit

Permalink
fix: Download SRS using one canonical URL across the codebase (#1748)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
kevaundray authored and AztecBot committed Aug 22, 2023
1 parent 6d32383 commit 5c91de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cpp/src/barretenberg/bb/get_crs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ inline std::vector<uint8_t> download_g1_data(size_t num_points)

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

return exec_pipe(command);
}
Expand Down
4 changes: 2 additions & 2 deletions ts/src/crs/net_crs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export class NetCrs {
* Download the G2 points data.
*/
async downloadG2Data() {
const g2Start = 28 + 5040000 * 64;
const g2Start = 28 + 5040001 * 64;
const g2End = g2Start + 128 - 1;

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

0 comments on commit 5c91de7

Please sign in to comment.