A tool to convert KZG SRS in other formats to pse/halo2
format.
Currently supported and WIP formats are:
Since the conversion of large SRS takes much time to run, here are the converted SRS downloadable directly. There are also simple tests ran in CI to validate these converted SRS are well formed (same ration testing with the source).
Note that pse/halo2
has been updated to read/write in raw format by default since PR#111.
To get SRS with k = 10
from latest response of Perpetual Powers of Tau, we can run:
wget https://ppot.blob.core.windows.net/public/response_0071_edward
mkdir ./srs
cargo run --release --bin convert-from-perpetual-powers-of-tau response_0071_edward ./srs/perpetual-powers-of-tau-raw- 10
Then it will output the SRS with 1 <= k <= 10
with path ./srs/perpetual-powers-of-tau-raw-{k}
.
To get SRS with k = 10
from Hermez's setup, we can run:
wget https://hermez.s3-eu-west-1.amazonaws.com/powersOfTau28_hez_final_10.ptau
mkdir ./srs
cargo run --release --bin convert-from-snarkjs powersOfTau28_hez_final_10.ptau ./srs/hermez-raw- 10
Then it will output the SRS with 1 <= k <= 10
with path ./srs/hermez-raw-{k}
.