func (t Transaction) GetSignableRepresentation() ([]byte, error) {
	type sign struct {
		Src    ed25519.PublicKey
		Dest   ed25519.PublicKey
		Curr   Currency
		Amount DecimalAmount
	}

	var buf bytes.Buffer
	if err := gob.NewEncoder(&buf).Encode(sign{t.Src, t.Dest, t.Curr, t.Amount}); err != nil {
		return nil, err
	}

	return buf.Bytes(), nil
}
// GetSignableRepresentation gets a []byte representation that can be signed
GetSignableRepresentation gets a []byte representation that can be signed
// GetSignableRepresentation gets a [] byte representation that can be signed
func (t Transaction) GetSignableRepresentation() ([]byte, error) {
	type sign struct {
		Src    ed25519.PublicKey
		Dest   ed25519.PublicKey
		Curr   Currency
		Amount DecimalAmount
	}
	var buf bytes.Buffer
	if err := gob.NewEncoder(&buf).Encode(sign{t.Src, t.Dest, t.Curr, t.Amount}); err != nil {
		return nil, err
	}
	return buf.Bytes(), nil
}
func ( t Transaction ) GetSignableRepresentation ( ) ( [ ] byte , error ) { type sign struct { Src ed25519 . PublicKey Dest ed25519 . PublicKey Curr Currency Amount DecimalAmount } var buf bytes . Buffer if err := gob . NewEncoder ( & buf ) . Encode ( sign { t . Src , t . Dest , t . Curr , t . Amount } ) ; err != nil { return nil , err } return buf . Bytes ( ) , nil }
GetSignableRepresentation gets a []byte representation that can be signed
GetSignableRepresentation gets a [] byte representation that can be signed