aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auction.go6
-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.go3
-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
diff --git a/auction.go b/auction.go
index a4e9272..15e2d15 100644
--- a/auction.go
+++ b/auction.go
@@ -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
}
diff --git a/nizk/doc.go b/doc.go
index 1df58d4..3d0de3d 100644
--- a/nizk/doc.go
+++ b/doc.go
@@ -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"