Skip to content

Commit

Permalink
fixed zkp config
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Mar 6, 2024
1 parent c8b5829 commit 1169615
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions internal/zkp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ type verifierer struct {
func (v *verifierer) Verifier() *Verifier {
return v.once.Do(func() interface{} {
cfg := struct {
Enabled bool `fig:"enabled"`
Schema string `fig:"schema,required"`
Enabled bool `fig:"enabled"`
}{
Enabled: true,
}
Expand All @@ -42,7 +41,6 @@ func (v *verifierer) Verifier() *Verifier {

return &Verifier{
Enabled: cfg.Enabled,
Schema: cfg.Schema,
challenges: make(map[string]*Challenge),
}
}).(*Verifier)
Expand Down
1 change: 0 additions & 1 deletion internal/zkp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type Verifier struct {
mu sync.Mutex

Enabled bool
Schema string

// Map for storing challenges to be verified in auth proofs. No need to store in db - very short-live data.
challenges map[string]*Challenge
Expand Down

0 comments on commit 1169615

Please sign in to comment.