aboutsummaryrefslogtreecommitdiff
path: root/bidder/bid.go
diff options
context:
space:
mode:
Diffstat (limited to 'bidder/bid.go')
-rw-r--r--bidder/bid.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bidder/bid.go b/bidder/bid.go
index ba93a64..5f98a0c 100644
--- a/bidder/bid.go
+++ b/bidder/bid.go
@@ -31,8 +31,8 @@ type bid struct {
stage1 []*stage1.Statement
}
-// NewBid creates a new Bidder for the given price, using the lower bits up to bitlength
-func NewBid(price uint64, bitlength uint8) (b *bid, e error) {
+// newBid creates a new Bidder for the given price, using the lower bits up to bitlength
+func newBid(price uint64, bitlength uint8) (b *bid, e error) {
if bitlength > 63 {
return nil, fmt.Errorf("bitlength too large, maximum is 63")
} else if 0 != (price >> bitlength) {