diff options
Diffstat (limited to 'auction.go')
-rw-r--r-- | auction.go | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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{} |