-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add : fix user verify need confog.json
- Loading branch information
1 parent
7a01899
commit 817b953
Showing
7 changed files
with
96 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
package prover_server | ||
|
||
import "gate-zkmerkle-proof/global" | ||
import ( | ||
"encoding/json" | ||
"fmt" | ||
"gate-zkmerkle-proof/config" | ||
"gate-zkmerkle-proof/global" | ||
"io/ioutil" | ||
) | ||
|
||
func Handler() { | ||
global.Cfg = &config.Config{} | ||
jsonFile, err := ioutil.ReadFile("./config/config.json") | ||
if err != nil { | ||
panic(fmt.Sprintf("load config err : %s", err.Error())) | ||
} | ||
err = json.Unmarshal(jsonFile, global.Cfg) | ||
if err != nil { | ||
panic(err.Error()) | ||
} | ||
|
||
prover := NewProver(global.Cfg) | ||
prover.Run(false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters