aboutsummaryrefslogtreecommitdiff
path: root/bidder/bid.go
diff options
context:
space:
mode:
Diffstat (limited to 'bidder/bid.go')
-rw-r--r--bidder/bid.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bidder/bid.go b/bidder/bid.go
index 5aa27c2..55feaf8 100644
--- a/bidder/bid.go
+++ b/bidder/bid.go
@@ -4,7 +4,6 @@ import (
"crypto/ed25519"
"fmt"
- "kesim.org/seal"
. "kesim.org/seal/nizk"
"kesim.org/seal/nizk/commit"
@@ -23,7 +22,7 @@ type bid struct {
}
// NewBid creates a new Bidder for the given price, using the lower bits up to bitlength
-func newBid(price uint64, bitlength uint8) (seal.Bidder, error) {
+func NewBid(price uint64, bitlength uint8) (*bid, error) {
if bitlength > 63 {
return nil, fmt.Errorf("bitlength too large, maximum is 63")
} else if 0 != (price >> bitlength) {
@@ -65,5 +64,6 @@ func (bid *bid) Commit() (c []*commit.Commitment, pub ed25519.PublicKey, sig []b
func (bid *bid) Result() {
}
-func (bid *bid) Send(msg []byte, sig []byte) {
+func (bid *bid) Send(msg []byte, sig []byte) error {
+ return fmt.Errorf("bidder.Send not implemented")
} \ No newline at end of file