diff options
| author | Özgür Kesim <oec@codeblau.de> | 2024-11-21 17:13:47 +0100 | 
|---|---|---|
| committer | Özgür Kesim <oec@codeblau.de> | 2024-11-21 17:13:47 +0100 | 
| commit | 0ada8c47427bfe604024d383ed7a250b04c82fee (patch) | |
| tree | 4bc5e6432512a8060308413d303b675b0658bd1b | |
| parent | 32cee46e39527a09504615b822cc61969c46184d (diff) | |
| -rw-r--r-- | auction.go | 6 | ||||
| -rw-r--r-- | bench_test.go (renamed from nizk/bench_test.go) | 2 | ||||
| -rw-r--r-- | commit.go (renamed from nizk/commit.go) | 4 | ||||
| -rw-r--r-- | commit_test.go (renamed from nizk/commit_test.go) | 2 | ||||
| -rw-r--r-- | dashboard/dashboard.go | 3 | ||||
| -rw-r--r-- | doc.go (renamed from nizk/doc.go) | 2 | ||||
| -rw-r--r-- | schnorr/schnorr.go (renamed from nizk/schnorr/schnorr.go) | 0 | ||||
| -rw-r--r-- | schnorr/schnorr_test.go (renamed from nizk/schnorr/schnorr_test.go) | 0 | ||||
| -rw-r--r-- | stage1.go (renamed from nizk/stage1.go) | 2 | ||||
| -rw-r--r-- | stage1_test.go (renamed from nizk/stage1_test.go) | 2 | ||||
| -rw-r--r-- | stage2.go (renamed from nizk/stage2.go) | 2 | ||||
| -rw-r--r-- | stage2_test.go (renamed from nizk/stage2_test.go) | 2 | ||||
| -rw-r--r-- | vickrey_test.go (renamed from nizk/vickrey_test.go) | 2 | 
13 files changed, 13 insertions, 16 deletions
@@ -10,8 +10,6 @@ import (  	"fmt"  	"log/slog"  	"time" - -	"kesim.org/seal/nizk"  )  type Type int @@ -111,13 +109,13 @@ type auction struct {  	observer Observer  	// The commitments we received from the bidders. -	bidders map[string][]*nizk.Commitment +	bidders map[string][]*Commitment  	// sorted list of the bidders.  	bidder_ids []string  	// Stage 1 data per round -	stage1 []*nizk.Stage +	stage1 []*Stage  	log *slog.Logger  } diff --git a/nizk/bench_test.go b/bench_test.go index 3ee30a8..86e261f 100644 --- a/nizk/bench_test.go +++ b/bench_test.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	"math/rand" diff --git a/nizk/commit.go b/commit.go index b68c0f4..eaf42e9 100644 --- a/nizk/commit.go +++ b/commit.go @@ -1,8 +1,8 @@ -package nizk +package seal  import (  	. "kesim.org/seal/common" -	"kesim.org/seal/nizk/schnorr" +	"kesim.org/seal/schnorr"  )  type Bit struct { diff --git a/nizk/commit_test.go b/commit_test.go index 909d010..873061c 100644 --- a/nizk/commit_test.go +++ b/commit_test.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	"testing" diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index b26277d..7a75e9c 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -7,7 +7,6 @@ import (  	"encoding/json"  	"kesim.org/seal" -	"kesim.org/seal/nizk"  )  type Dashboard interface { @@ -27,7 +26,7 @@ type SignedMessage struct {  }  type SignedCommitment struct { -	*nizk.Commitment +	*seal.Commitment  	Signature []byte  } @@ -1,4 +1,4 @@ -package nizk +package seal  /* diff --git a/nizk/schnorr/schnorr.go b/schnorr/schnorr.go index ad42770..ad42770 100644 --- a/nizk/schnorr/schnorr.go +++ b/schnorr/schnorr.go diff --git a/nizk/schnorr/schnorr_test.go b/schnorr/schnorr_test.go index 2adec8e..2adec8e 100644 --- a/nizk/schnorr/schnorr_test.go +++ b/schnorr/schnorr_test.go diff --git a/nizk/stage1.go b/stage1.go index f58a4ac..d1ac814 100644 --- a/nizk/stage1.go +++ b/stage1.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	. "kesim.org/seal/common" diff --git a/nizk/stage1_test.go b/stage1_test.go index d17956d..0df915a 100644 --- a/nizk/stage1_test.go +++ b/stage1_test.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	"testing" diff --git a/nizk/stage2.go b/stage2.go index d5e8070..7d82d89 100644 --- a/nizk/stage2.go +++ b/stage2.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	. "kesim.org/seal/common" diff --git a/nizk/stage2_test.go b/stage2_test.go index a22fa94..e9db755 100644 --- a/nizk/stage2_test.go +++ b/stage2_test.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	"slices" diff --git a/nizk/vickrey_test.go b/vickrey_test.go index 089e389..e36a579 100644 --- a/nizk/vickrey_test.go +++ b/vickrey_test.go @@ -1,4 +1,4 @@ -package nizk +package seal  import (  	"math/rand"  | 
