-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1824d21
commit 5e388c3
Showing
9 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
.env | ||
|
||
# Ignore points so that they don't come up in git changes | ||
resources/g1.point | ||
resources/g2.point.powerOf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
c03178df1bafd883dee748205dae7725bcf58cead10f6bb1b07aeb51e5aede6f g1.point | ||
4d5ed827f742e1270f22b4a39129bf1d25445821b15824e2eb3a709a16f64518 g2.point.powerOf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
# Path: srs_setup.sh | ||
|
||
DOWNLOADED_FILE=false | ||
echo "Downloading srs resources" | ||
if ! [ -f ./resources/g1.point ]; then | ||
echo "g1.point does not exist." | ||
echo "Downloading g1 point. This could take upto 5 minutes" | ||
wget https://srs-mainnet.s3.amazonaws.com/kzg/g1.point --output-document=./resources/g1.point | ||
DOWNLOADED_FILE=true | ||
fi | ||
|
||
if ! [ -f ./resources/g2.point.powerOf2 ]; then | ||
echo "g2.point.powerOf2 does not exist." | ||
echo "Downloading g2 point powerOf2. This will take few seconds" | ||
wget https://srs-mainnet.s3.amazonaws.com/kzg/g2.point.powerOf2 --output-document=./resources/g2.point.powerOf2 | ||
DOWNLOADED_FILE=true | ||
fi | ||
|
||
# Any time we download the file, validate hashes | ||
if [ "$DOWNLOADED_FILE" = true ]; then | ||
echo "validating hashes of g1 and g2 points This could take upto 5 minutes" | ||
if (cd resources && sha256sum -c srssha256sums.txt); then | ||
echo "Checksums match. Verification successful." | ||
else | ||
echo "Error: Checksums do not match. Exiting." | ||
exit 1 | ||
fi | ||
fi |