File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ pub fn to_element(value: Fq) -> Element {
4040
4141/// Download zkey from artifacts: https://snark-artifacts.pse.dev/
4242pub fn download_zkey ( depth : u16 ) -> Result < String , Box < dyn Error > > {
43- let base_url = "https://snark-artifacts.pse.dev/semaphore/latest/" ;
44- let filename = format ! ( "semaphore-{}.zkey" , depth) ;
43+ let version = "4.0.0" ;
44+ let base_url = format ! ( "https://snark-artifacts.pse.dev/semaphore/{version}/" ) ;
45+ let filename = format ! ( "semaphore-{depth}.zkey" ) ;
46+ let dest_filename = format ! ( "semaphore-{version}-{depth}.zkey" ) ;
4547 let out_dir = std:: env:: temp_dir ( ) ;
46- let dest_path = out_dir. join ( filename . clone ( ) ) ;
48+ let dest_path = out_dir. join ( dest_filename . clone ( ) ) ;
4749 if !dest_path. exists ( ) {
4850 let url = format ! ( "{}{}" , base_url, filename) ;
4951 let client = Client :: new ( ) ;
You can’t perform that action at this time.
0 commit comments