func (l *LimitOrder) Serialize() (buf []byte) {
	// serializable fields:
	// public key (compressed) [33 bytes]
	// trading pair [2 bytes]
	// amounthave [8 bytes
	// amountwant [8 bytes]
	buf = make([]byte, 33+26+len(l.Side))
	buf = append(buf, l.Pubkey[:]...)
	buf = append(buf, l.TradingPair.Serialize()...)
	binary.LittleEndian.PutUint64(buf, l.AmountHave)
	binary.LittleEndian.PutUint64(buf, l.AmountWant)
	binary.LittleEndian.PutUint64(buf, uint64(len(l.Side)))
	buf = append(buf, []byte(l.Side)...)
	return
}
// Serialize serializes an order, possible replay attacks here since this is what you're signing?
// but anyways this is the order: pair amountHave amountWant <length side> side
Serialize serializes an order, possible replay attacks here since this is what you're signing.
but anyways this is the order: pair amountHave amountWant  side
// Serialize serializes an order possible replay attacks here since this is what you ' re signing? // but anyways this is the order : pair amountHave amountWant <length side > side
func (l *LimitOrder) Serialize() (buf []byte) {
	buf = make([]byte, 33+26+len(l.Side))
	buf = append(buf, l.Pubkey[:]...)
	buf = append(buf, l.TradingPair.Serialize()...)
	binary.LittleEndian.PutUint64(buf, l.AmountHave)
	binary.LittleEndian.PutUint64(buf, l.AmountWant)
	binary.LittleEndian.PutUint64(buf, uint64(len(l.Side)))
	buf = append(buf, []byte(l.Side)...)
	return
}
func ( l * LimitOrder ) Serialize ( ) ( buf [ ] byte ) { buf = make ( [ ] byte , 33 + 26 + len ( l . Side ) ) buf = append ( buf , l . Pubkey [ : ] ... ) buf = append ( buf , l . TradingPair . Serialize ( ) ... ) binary . LittleEndian . PutUint64 ( buf , l . AmountHave ) binary . LittleEndian . PutUint64 ( buf , l . AmountWant ) binary . LittleEndian . PutUint64 ( buf , uint64 ( len ( l . Side ) ) ) buf = append ( buf , [ ] byte ( l . Side ) ... ) return }
Serialize serializes an order, possible replay attacks here since this is what you're signing.
Serialize serializes an order possible replay attacks here since this is what you ' re signing .
// serializable fields: // public key (compressed) [33 bytes] // trading pair [2 bytes] // amounthave [8 bytes // amountwant [8 bytes]