...

Package v1

import "github.com/securesharelabs/vstore/api/vstore/v1"
Overview
Index

Overview ▾

Variables

var (
    ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

type Transaction

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

func (*Transaction) Descriptor() ([]byte, []int)

func (*Transaction) GetBody

func (m *Transaction) GetBody() []byte

func (*Transaction) GetHash

func (m *Transaction) GetHash() []byte

func (*Transaction) GetLen

func (m *Transaction) GetLen() uint32

func (*Transaction) GetSignature

func (m *Transaction) GetSignature() []byte

func (*Transaction) GetSigner

func (m *Transaction) GetSigner() v1.PublicKey

func (*Transaction) GetTime

func (m *Transaction) GetTime() time.Time

func (*Transaction) Marshal

func (m *Transaction) Marshal() (dAtA []byte, err error)

func (*Transaction) MarshalTo

func (m *Transaction) MarshalTo(dAtA []byte) (int, error)

func (*Transaction) MarshalToSizedBuffer

func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

func (m *Transaction) Size() (n int)

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

func (m *Transaction) Unmarshal(dAtA []byte) error

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error