func SolveRC5AuctionOrderAsync(e *EncryptedAuctionOrder, puzzleResChan chan *OrderPuzzleResult) {
	var err error
	result := new(OrderPuzzleResult)
	result.Encrypted = e

	var orderBytes []byte
	if orderBytes, err = timelockencoders.SolvePuzzleRC5(e.OrderCiphertext, e.OrderPuzzle); err != nil {
		result.Err = fmt.Errorf("Error solving RC5 puzzle for auction order: %s", err)
		puzzleResChan <- result
		return
	}

	result.Auction = new(AuctionOrder)
	if err = result.Auction.Deserialize(orderBytes); err != nil {
		result.Err = fmt.Errorf("Error deserializing order gotten from puzzle: %s", err)
		puzzleResChan <- result
		return
	}

	puzzleResChan <- result

	return
}
// SolveRC5AuctionOrderAsync solves order puzzles and creates auction orders from them. This should be run in a goroutine.
SolveRC5AuctionOrderAsync solves order puzzles and creates auction orders from them. This should be run in a goroutine.
// SolveRC5AuctionOrderAsync solves order puzzles and creates auction orders from them . This should be run in a goroutine .
func SolveRC5AuctionOrderAsync(e *EncryptedAuctionOrder, puzzleResChan chan *OrderPuzzleResult) {
	var err error
	result := new(OrderPuzzleResult)
	result.Encrypted = e
	var orderBytes []byte
	if orderBytes, err = timelockencoders.SolvePuzzleRC5(e.OrderCiphertext, e.OrderPuzzle); err != nil {
		result.Err = fmt.Errorf("Error solving RC5 puzzle for auction order: %s", err)
		puzzleResChan <- result
		return
	}
	result.Auction = new(AuctionOrder)
	if err = result.Auction.Deserialize(orderBytes); err != nil {
		result.Err = fmt.Errorf("Error deserializing order gotten from puzzle: %s", err)
		puzzleResChan <- result
		return
	}
	puzzleResChan <- result
	return
}
func SolveRC5AuctionOrderAsync ( e * EncryptedAuctionOrder , puzzleResChan chan * OrderPuzzleResult ) { var err error result := new ( OrderPuzzleResult ) result . Encrypted = e var orderBytes [ ] byte if orderBytes , err = timelockencoders . SolvePuzzleRC5 ( e . OrderCiphertext , e . OrderPuzzle ) ; err != nil { result . Err = fmt . Errorf ( " " , err ) puzzleResChan <- result return } result . Auction = new ( AuctionOrder ) if err = result . Auction . Deserialize ( orderBytes ) ; err != nil { result . Err = fmt . Errorf ( " " , err ) puzzleResChan <- result return } puzzleResChan <- result return }
SolveRC5AuctionOrderAsync solves order puzzles and creates auction orders from them.
SolveRC5AuctionOrderAsync solves order puzzles and creates auction orders from them .