aboutsummaryrefslogtreecommitdiff
path: root/auction.go
diff options
context:
space:
mode:
Diffstat (limited to 'auction.go')
-rw-r--r--auction.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/auction.go b/auction.go
index df1d372..e4f53b7 100644
--- a/auction.go
+++ b/auction.go
@@ -7,8 +7,6 @@ import (
"encoding/base32"
"encoding/json"
"time"
-
- "kesim.org/seal/nizk/commit"
)
type Type int
@@ -38,20 +36,6 @@ type SignedDescription struct {
SellerSignature []byte
}
-// Auction is the simple interface for the engine
-type Auction interface {
- Join(bidder Bidder) // A bidder calls this to join the auction
- Message(msg []byte, sig []byte) error // A bidder uses this method to publish a message
-}
-
-// Bidder is the interface that the Auction engine uses to communicate
-type Bidder interface {
- Commitment() *commit.Commitment
- Start(map[string]*commit.Commitment)
- Result()
- Receive(msg []byte) error
-}
-
func (sd *SignedDescription) Verify() (bool, error) {
// TODO: need to normalize this encoding
buf := &bytes.Buffer{}