Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module worldcoin/gnark-mbu

go 1.22.0

toolchain go1.22.2
toolchain go1.23.3

require (
github.com/consensys/gnark v0.8.0
Expand Down
13 changes: 11 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"math/big"
"os"
"os/signal"
"time"

"worldcoin/gnark-mbu/logging"
"worldcoin/gnark-mbu/prover"
Expand Down Expand Up @@ -289,12 +290,20 @@ func main() {
return fmt.Errorf("invalid mode: %s", mode)
}

logging.Logger().Info().Msg("Reading proving system from file")
logging.Logger().Info().Msg("Loading proving system from file")
start := time.Now()
ps, err := prover.ReadSystemFromFile(keys)
if err != nil {
return err
}
logging.Logger().Info().Uint32("treeDepth", ps.TreeDepth).Uint32("batchSize", ps.BatchSize).Msg("Read proving system")
duration := time.Since(start)
logging.Logger().
Info().
Uint32("treeDepth", ps.TreeDepth).
Uint32("batchSize", ps.BatchSize).
Dur("duration", duration).
Msg("Proving system loaded")

config := server.Config{
ProverAddress: context.String("prover-address"),
MetricsAddress: context.String("metrics-address"),
Expand Down
Loading