func (a *AuctionOrder) TurnIntoEncryptedOrder(t uint64) (encrypted *EncryptedAuctionOrder, err error) {
	encrypted = new(EncryptedAuctionOrder)
	if encrypted.OrderCiphertext, encrypted.OrderPuzzle, err = timelockencoders.CreateRSW2048A2PuzzleRC5(t, a.Serialize()); err != nil {
		err = fmt.Errorf("Error creating puzzle from auction order: %s", err)
		return
	}
	// make sure they match
	encrypted.IntendedAuction = a.AuctionID
	return
}
// TurnIntoEncryptedOrder creates a puzzle for this auction order given the time. We make no assumptions about whether or not the order is signed.
TurnIntoEncryptedOrder creates a puzzle for this auction order given the time. We make no assumptions about whether or not the order is signed.
// TurnIntoEncryptedOrder creates a puzzle for this auction order given the time . We make no assumptions about whether or not the order is signed .
func (a *AuctionOrder) TurnIntoEncryptedOrder(t uint64) (encrypted *EncryptedAuctionOrder, err error) {
	encrypted = new(EncryptedAuctionOrder)
	if encrypted.OrderCiphertext, encrypted.OrderPuzzle, err = timelockencoders.CreateRSW2048A2PuzzleRC5(t, a.Serialize()); err != nil {
		err = fmt.Errorf("Error creating puzzle from auction order: %s", err)
		return
	}
	encrypted.IntendedAuction = a.AuctionID
	return
}
func ( a * AuctionOrder ) TurnIntoEncryptedOrder ( t uint64 ) ( encrypted * EncryptedAuctionOrder , err error ) { encrypted = new ( EncryptedAuctionOrder ) if encrypted . OrderCiphertext , encrypted . OrderPuzzle , err = timelockencoders . CreateRSW2048A2PuzzleRC5 ( t , a . Serialize ( ) ) ; err != nil { err = fmt . Errorf ( " " , err ) return } encrypted . IntendedAuction = a . AuctionID return }
TurnIntoEncryptedOrder creates a puzzle for this auction order given the time.
TurnIntoEncryptedOrder creates a puzzle for this auction order given the time .
// make sure they match