mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-05 06:53:05 +00:00
Added bash script for ptau fetching
This commit is contained in:
parent
479bd33ed8
commit
7bd40f3b8d
@ -13,3 +13,4 @@ NSLOTS=11 # number of slots in the dataset
|
||||
SLOTINDEX=3 # which slot we prove (0..NSLOTS-1)
|
||||
NCELLS=512 # number of cells in this slot
|
||||
|
||||
PTAU_POWER=21
|
||||
@ -2,6 +2,8 @@
|
||||
|
||||
ORIG=`pwd`
|
||||
|
||||
source ./params.sh
|
||||
|
||||
NIMCLI_DIR="${ORIG}/../reference/nim/proof_input/"
|
||||
PTAU_DIR="${ORIG}/../ceremony"
|
||||
|
||||
@ -10,7 +12,7 @@ CIRCUIT_PRF_DIR="${CIRCUIT_ROOT}/codex/"
|
||||
CIRCUIT_POS_DIR="${CIRCUIT_ROOT}/poseidon2/"
|
||||
CIRCUIT_LIB_DIR="${CIRCUIT_ROOT}/lib/"
|
||||
|
||||
PTAU_FILE="powersOfTau28_hez_final_21.ptau"
|
||||
PTAU_FILE="powersOfTau28_hez_final_${PTAU_POWER}.ptau"
|
||||
PTAU_PATH="${PTAU_DIR}/${PTAU_FILE}"
|
||||
|
||||
CIRCUIT_MAIN="proof_main"
|
||||
|
||||
17
workflow/ptau.sh
Normal file
17
workflow/ptau.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./paths.sh
|
||||
source ./params.sh
|
||||
|
||||
PTAU_URL=https://storage.googleapis.com/zkevm/ptau/powersOfTau28_hez_final_${PTAU_POWER}.ptau
|
||||
|
||||
mkdir -p ${PTAU_DIR}
|
||||
|
||||
if [ -f ${PTAU_PATH} ]; then
|
||||
echo "${PTAU_FILE} download already Completed!"
|
||||
exit 0
|
||||
else
|
||||
echo "Downloading ${PTAU_FILE}"
|
||||
curl ${PTAU_URL} --output ${PTAU_PATH} --progress-bar
|
||||
echo "${PTAU_FILE} download Completed!"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user