func (a *AuctionOrder) SerializeSignable() (buf []byte) {
	// serializable fields:
	// public key (compressed) [33 bytes]
	// trading pair [2 bytes]
	// amounthave [8 bytes]
	// amountwant [8 bytes]
	// len side [8 bytes]
	// side [len side]
	// auctionID [32 bytes]
	// nonce [2 bytes]
	buf = append(buf, a.Pubkey[:]...)
	buf = append(buf, a.TradingPair.Serialize()...)

	amountHaveBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(amountHaveBytes, a.AmountHave)
	buf = append(buf, amountHaveBytes[:]...)

	amountWantBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(amountWantBytes, a.AmountWant)
	buf = append(buf, amountWantBytes[:]...)

	lenSideBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(lenSideBytes, uint64(len(a.Side)))
	buf = append(buf, lenSideBytes[:]...)

	buf = append(buf, []byte(a.Side)...)
	buf = append(buf, a.AuctionID[:]...)
	buf = append(buf, a.Nonce[:]...)
	return
}
// SerializeSignable serializes the fields that are hashable, and will be signed. These are also
// what would get verified.
SerializeSignable serializes the fields that are hashable, and will be signed. These are also
what would get verified.
// SerializeSignable serializes the fields that are hashable and will be signed . These are also // what would get verified .
func (a *AuctionOrder) SerializeSignable() (buf []byte) {
	buf = append(buf, a.Pubkey[:]...)
	buf = append(buf, a.TradingPair.Serialize()...)
	amountHaveBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(amountHaveBytes, a.AmountHave)
	buf = append(buf, amountHaveBytes[:]...)
	amountWantBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(amountWantBytes, a.AmountWant)
	buf = append(buf, amountWantBytes[:]...)
	lenSideBytes := make([]byte, 8)
	binary.LittleEndian.PutUint64(lenSideBytes, uint64(len(a.Side)))
	buf = append(buf, lenSideBytes[:]...)
	buf = append(buf, []byte(a.Side)...)
	buf = append(buf, a.AuctionID[:]...)
	buf = append(buf, a.Nonce[:]...)
	return
}
func ( a * AuctionOrder ) SerializeSignable ( ) ( buf [ ] byte ) { buf = append ( buf , a . Pubkey [ : ] ... ) buf = append ( buf , a . TradingPair . Serialize ( ) ... ) amountHaveBytes := make ( [ ] byte , 8 ) binary . LittleEndian . PutUint64 ( amountHaveBytes , a . AmountHave ) buf = append ( buf , amountHaveBytes [ : ] ... ) amountWantBytes := make ( [ ] byte , 8 ) binary . LittleEndian . PutUint64 ( amountWantBytes , a . AmountWant ) buf = append ( buf , amountWantBytes [ : ] ... ) lenSideBytes := make ( [ ] byte , 8 ) binary . LittleEndian . PutUint64 ( lenSideBytes , uint64 ( len ( a . Side ) ) ) buf = append ( buf , lenSideBytes [ : ] ... ) buf = append ( buf , [ ] byte ( a . Side ) ... ) buf = append ( buf , a . AuctionID [ : ] ... ) buf = append ( buf , a . Nonce [ : ] ... ) return }
SerializeSignable serializes the fields that are hashable, and will be signed.
SerializeSignable serializes the fields that are hashable and will be signed .
// serializable fields: // public key (compressed) [33 bytes] // trading pair [2 bytes] // amounthave [8 bytes] // amountwant [8 bytes] // len side [8 bytes] // side [len side] // auctionID [32 bytes] // nonce [2 bytes]