mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-20 10:28:12 +00:00
use larger ceremony file size
This commit is contained in:
parent
2974d23237
commit
ae26d6a38f
@ -94,10 +94,14 @@ type CircArgs* = object
|
|||||||
proc downloadPtau*(ptauPath, ptauUrl: string) =
|
proc downloadPtau*(ptauPath, ptauUrl: string) =
|
||||||
if not ptauPath.fileExists:
|
if not ptauPath.fileExists:
|
||||||
echo "Ceremony file not found, downloading..."
|
echo "Ceremony file not found, downloading..."
|
||||||
|
echo "PTAU file: ", ptauPath
|
||||||
echo "PTAU url: ", ptauUrl
|
echo "PTAU url: ", ptauUrl
|
||||||
createDir(ptauPath.parentDir)
|
createDir(ptauPath.parentDir)
|
||||||
withDir(ptauPath.parentDir):
|
withDir(ptauPath.parentDir):
|
||||||
discard execShellCmd(fmt"curl -LOC - {ptauDefUrl}")
|
let res = execShellCmd(fmt"curl {ptauDefUrl} -o {ptauPath}")
|
||||||
|
assert res == 0
|
||||||
|
else:
|
||||||
|
echo "Found PTAU file at: ", ptauPath
|
||||||
|
|
||||||
proc getCircuitBenchPath*(args: CircArgs): string =
|
proc getCircuitBenchPath*(args: CircArgs): string =
|
||||||
var an = ""
|
var an = ""
|
||||||
@ -127,7 +131,7 @@ proc createCircuit*(
|
|||||||
circBenchDir = getCircuitBenchPath(args),
|
circBenchDir = getCircuitBenchPath(args),
|
||||||
circuitDirIncludes = circuitDirIncludes,
|
circuitDirIncludes = circuitDirIncludes,
|
||||||
ptauPath = ptauDefPath,
|
ptauPath = ptauDefPath,
|
||||||
ptauUrl = ptauDefUrl & "/" & ptauDefPath.splitPath.tail,
|
ptauUrl = ptauDefUrl & ptauPath.splitPath.tail,
|
||||||
someEntropy = "some_entropy_75289v3b7rcawcsyiur",
|
someEntropy = "some_entropy_75289v3b7rcawcsyiur",
|
||||||
): tuple[dir: string, name: string] =
|
): tuple[dir: string, name: string] =
|
||||||
## Generates all the files needed for to run a proof circuit. Downloads the PTAU file if needed.
|
## Generates all the files needed for to run a proof circuit. Downloads the PTAU file if needed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user