func (a *PayloadRecord) Serialize(w io.Writer, version byte) error {
	err := common.WriteVarString(w, a.RecordType)
	if err != nil {
		return errors.New("[RecordDetail], RecordType serialize failed.")
	}
	err = common.WriteVarBytes(w, a.RecordData)
	if err != nil {
		return errors.New("[RecordDetail], RecordData serialize failed.")
	}
	return nil
}
Serialize is the implement of SignableData interface.
package types
import (
	"errors"
	"io"
	"github.com/elastos/Elastos.ELA/common"
)
const RecordPayloadVersion byte = 0x00
type PayloadRecord struct {
	RecordType string
	RecordData []byte
}
func (a *PayloadRecord) Data(version byte) []byte {
	return []byte{0}
}