Skip to content

Instantly share code, notes, and snippets.

@jcortejoso
Last active July 5, 2024 17:09
Show Gist options
  • Select an option

  • Save jcortejoso/191a091ab8790a56bd0d86c642d65f04 to your computer and use it in GitHub Desktop.

Select an option

Save jcortejoso/191a091ab8790a56bd0d86c642d65f04 to your computer and use it in GitHub Desktop.
Run eigenda-proxy connected to holesky
docker run -it --net=host -v /Users/jcortejoso/Projects/Celo/eigenda-proxy/resources:/data/resources --entrypoint=/bin/sh us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/eigenda-proxy:v1.2.0
DOWNLOADED_FILE=false
echo "Downloading srs resources"
mkdir -p /data/resources
cd /data
if ! [ -f /data/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=/data/resources/g1.point
DOWNLOADED_FILE=true
else
echo "g1.point already exists."
fi
if ! [ -f /data/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=/data/resources/g2.point.powerOf2
DOWNLOADED_FILE=true
else
echo "g2.point.powerOf2 already exists."
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"
wget https://raw.githubusercontent.com/Layr-Labs/eigenda-operator-setup/master/resources/srssha256sums.txt --output-document=/data/resources/srssha256sums.txt
if (cd /data/resources && sha256sum -c srssha256sums.txt); then
echo "Checksums match. Verification successful."
else
echo "Error: Checksums do not match. Exiting."
exit 1
fi
fi
export EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX=50a595fb64ca7619fb6c0a2f5d5980b0c5d2401c9f329686dcd2d6d4be6c601a
/app/eigenda-proxy \
--addr=0.0.0.0 \
--port=4242 \
--eigenda-disperser-rpc=disperser-holesky.eigenda.xyz:443 \
--eigenda-g1-path=/data/resources/g1.point \
--eigenda-g2-tau-path=/data/resources/g2.point.powerOf2 \
--eigenda-disable-tls=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment