diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-08 11:24:50 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-08 11:24:50 +0100 |
commit | 2100500f1a0a8534a5d6f900b4e35ad9a09aa339 (patch) | |
tree | bbecf21b3ab957ba1949ffb1a0f8b0fd08de7068 /auction.go | |
parent | 15283cd1bf926254fad09ae04b1e04e381966c06 (diff) |
moving declarations around
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{} |