var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
Transaction represents a transportable data payload. Transactions always contain a signer and a signature.
type Transaction struct { // Contains the signer public key and its type (32+1 bytes) Signer v1.PublicKey `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer"` // Contains the signature of body (64 bytes) Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Contains the transaction hash (32 bytes) Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` // Contains the transaction timestamp Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` // Contains the size of body ("Size" is reserved) Len uint32 `protobuf:"varint,5,opt,name=len,proto3" json:"len,omitempty"` // Contains the transaction body (arbitrary length) Body []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` }
func (*Transaction) Descriptor() ([]byte, []int)
func (m *Transaction) GetBody() []byte
func (m *Transaction) GetHash() []byte
func (m *Transaction) GetLen() uint32
func (m *Transaction) GetSignature() []byte
func (m *Transaction) GetSigner() v1.PublicKey
func (m *Transaction) GetTime() time.Time
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transaction) ProtoMessage()
func (m *Transaction) Reset()
func (m *Transaction) Size() (n int)
func (m *Transaction) String() string
func (m *Transaction) Unmarshal(dAtA []byte) error
func (m *Transaction) XXX_DiscardUnknown()
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Transaction) XXX_Merge(src proto.Message)
func (m *Transaction) XXX_Size() int
func (m *Transaction) XXX_Unmarshal(b []byte) error