Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
github.com/stratumn/go-indigonode/app/coin/pb/coin.proto
It has these top-level messages:
Transaction Signature Header Block Account Request Response HeaderRequest HeadersRequest Headers BlockRequest BlocksRequest Blocks ProofNode
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetBalance() uint64
- func (m *Account) GetNonce() uint64
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- type Block
- func (b *Block) BlockNumber() uint64
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetHeader() *Header
- func (m *Block) GetTransactions() []*Transaction
- func (b *Block) Loggable() map[string]interface{}
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (b *Block) Nonce() uint64
- func (b *Block) PreviousHash() []byte
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- type BlockRequest
- func (*BlockRequest) Descriptor() ([]byte, []int)
- func (m *BlockRequest) GetHash() []byte
- func (m *BlockRequest) Marshal() (dAtA []byte, err error)
- func (m *BlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (*BlockRequest) ProtoMessage()
- func (m *BlockRequest) Reset()
- func (m *BlockRequest) Size() (n int)
- func (m *BlockRequest) String() string
- func (m *BlockRequest) Unmarshal(dAtA []byte) error
- type Blocks
- func (*Blocks) Descriptor() ([]byte, []int)
- func (m *Blocks) GetBlocks() []*Block
- func (m *Blocks) Marshal() (dAtA []byte, err error)
- func (m *Blocks) MarshalTo(dAtA []byte) (int, error)
- func (*Blocks) ProtoMessage()
- func (m *Blocks) Reset()
- func (m *Blocks) Size() (n int)
- func (m *Blocks) String() string
- func (m *Blocks) Unmarshal(dAtA []byte) error
- type BlocksRequest
- func (*BlocksRequest) Descriptor() ([]byte, []int)
- func (m *BlocksRequest) GetAmount() uint64
- func (m *BlocksRequest) GetFrom() uint64
- func (m *BlocksRequest) Marshal() (dAtA []byte, err error)
- func (m *BlocksRequest) MarshalTo(dAtA []byte) (int, error)
- func (*BlocksRequest) ProtoMessage()
- func (m *BlocksRequest) Reset()
- func (m *BlocksRequest) Size() (n int)
- func (m *BlocksRequest) String() string
- func (m *BlocksRequest) Unmarshal(dAtA []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetBlockNumber() uint64
- func (m *Header) GetMerkleRoot() []byte
- func (m *Header) GetNonce() uint64
- func (m *Header) GetPreviousHash() []byte
- func (m *Header) GetTimestamp() *google_protobuf1.Timestamp
- func (m *Header) GetVersion() int32
- func (h *Header) Loggable() map[string]interface{}
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- type HeaderRequest
- func (*HeaderRequest) Descriptor() ([]byte, []int)
- func (m *HeaderRequest) GetHash() []byte
- func (m *HeaderRequest) Marshal() (dAtA []byte, err error)
- func (m *HeaderRequest) MarshalTo(dAtA []byte) (int, error)
- func (*HeaderRequest) ProtoMessage()
- func (m *HeaderRequest) Reset()
- func (m *HeaderRequest) Size() (n int)
- func (m *HeaderRequest) String() string
- func (m *HeaderRequest) Unmarshal(dAtA []byte) error
- type Headers
- func (*Headers) Descriptor() ([]byte, []int)
- func (m *Headers) GetHeaders() []*Header
- func (m *Headers) Marshal() (dAtA []byte, err error)
- func (m *Headers) MarshalTo(dAtA []byte) (int, error)
- func (*Headers) ProtoMessage()
- func (m *Headers) Reset()
- func (m *Headers) Size() (n int)
- func (m *Headers) String() string
- func (m *Headers) Unmarshal(dAtA []byte) error
- type HeadersRequest
- func (*HeadersRequest) Descriptor() ([]byte, []int)
- func (m *HeadersRequest) GetAmount() uint64
- func (m *HeadersRequest) GetFrom() uint64
- func (m *HeadersRequest) Marshal() (dAtA []byte, err error)
- func (m *HeadersRequest) MarshalTo(dAtA []byte) (int, error)
- func (*HeadersRequest) ProtoMessage()
- func (m *HeadersRequest) Reset()
- func (m *HeadersRequest) Size() (n int)
- func (m *HeadersRequest) String() string
- func (m *HeadersRequest) Unmarshal(dAtA []byte) error
- type KeyType
- type ProofNode
- func (*ProofNode) Descriptor() ([]byte, []int)
- func (m *ProofNode) GetChildHashes() [][]byte
- func (m *ProofNode) GetKey() []byte
- func (m *ProofNode) GetValue() []byte
- func (m *ProofNode) Marshal() (dAtA []byte, err error)
- func (m *ProofNode) MarshalTo(dAtA []byte) (int, error)
- func (*ProofNode) ProtoMessage()
- func (m *ProofNode) Reset()
- func (m *ProofNode) Size() (n int)
- func (m *ProofNode) String() string
- func (m *ProofNode) Unmarshal(dAtA []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetBlockReq() *BlockRequest
- func (m *Request) GetBlocksReq() *BlocksRequest
- func (m *Request) GetHeaderReq() *HeaderRequest
- func (m *Request) GetHeadersReq() *HeadersRequest
- func (m *Request) GetMsg() isRequest_Msg
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Request_BlockReq
- type Request_BlocksReq
- type Request_HeaderReq
- type Request_HeadersReq
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (rsp *Response) GetBlock() (*Block, error)
- func (m *Response) GetBlockRsp() *Block
- func (rsp *Response) GetBlocks() ([]*Block, error)
- func (m *Response) GetBlocksRsp() *Blocks
- func (rsp *Response) GetHeader() (*Header, error)
- func (m *Response) GetHeaderRsp() *Header
- func (rsp *Response) GetHeaders() ([]*Header, error)
- func (m *Response) GetHeadersRsp() *Headers
- func (m *Response) GetMsg() isResponse_Msg
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Response_BlockRsp
- type Response_BlocksRsp
- type Response_HeaderRsp
- type Response_HeadersRsp
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetKeyType() KeyType
- func (m *Signature) GetPublicKey() []byte
- func (m *Signature) GetSignature() []byte
- func (m *Signature) Marshal() (dAtA []byte, err error)
- func (m *Signature) MarshalTo(dAtA []byte) (int, error)
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) Size() (n int)
- func (m *Signature) String() string
- func (m *Signature) Unmarshal(dAtA []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetFee() uint64
- func (m *Transaction) GetFrom() []byte
- func (m *Transaction) GetNonce() uint64
- func (m *Transaction) GetSignature() *Signature
- func (m *Transaction) GetTo() []byte
- func (m *Transaction) GetValue() uint64
- func (tx *Transaction) Loggable() map[string]interface{}
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(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
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCoin = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCoin = fmt.Errorf("proto: integer overflow") )
var ( // ErrBadResponseType is returned when a call to a peer returns an // unexpected response type. ErrBadResponseType = errors.New("bad response type") )
var KeyType_name = map[int32]string{
0: "RSA",
1: "ECDSA",
2: "Ed25519",
3: "Secp256k1",
}
var KeyType_value = map[string]int32{
"RSA": 0,
"ECDSA": 1,
"Ed25519": 2,
"Secp256k1": 3,
}
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` }
An account.
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
type Block ¶
type Block struct { Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"` }
A block.
func (*Block) BlockNumber ¶
BlockNumber returns the number of a block.
func (*Block) Descriptor ¶
func (*Block) GetTransactions ¶
func (m *Block) GetTransactions() []*Transaction
func (*Block) PreviousHash ¶
PreviousHash returns the hash of previous block's header.
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type BlockRequest ¶
type BlockRequest struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
request one block from a peer.
func (*BlockRequest) Descriptor ¶
func (*BlockRequest) Descriptor() ([]byte, []int)
func (*BlockRequest) GetHash ¶
func (m *BlockRequest) GetHash() []byte
func (*BlockRequest) Marshal ¶
func (m *BlockRequest) Marshal() (dAtA []byte, err error)
func (*BlockRequest) ProtoMessage ¶
func (*BlockRequest) ProtoMessage()
func (*BlockRequest) Reset ¶
func (m *BlockRequest) Reset()
func (*BlockRequest) Size ¶
func (m *BlockRequest) Size() (n int)
func (*BlockRequest) String ¶
func (m *BlockRequest) String() string
func (*BlockRequest) Unmarshal ¶
func (m *BlockRequest) Unmarshal(dAtA []byte) error
type Blocks ¶
type Blocks struct {
Blocks []*Block `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"`
}
func (*Blocks) Descriptor ¶
func (*Blocks) ProtoMessage ¶
func (*Blocks) ProtoMessage()
type BlocksRequest ¶
type BlocksRequest struct { From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
request a list of blocks from a peer.
func (*BlocksRequest) Descriptor ¶
func (*BlocksRequest) Descriptor() ([]byte, []int)
func (*BlocksRequest) GetAmount ¶
func (m *BlocksRequest) GetAmount() uint64
func (*BlocksRequest) GetFrom ¶
func (m *BlocksRequest) GetFrom() uint64
func (*BlocksRequest) Marshal ¶
func (m *BlocksRequest) Marshal() (dAtA []byte, err error)
func (*BlocksRequest) ProtoMessage ¶
func (*BlocksRequest) ProtoMessage()
func (*BlocksRequest) Reset ¶
func (m *BlocksRequest) Reset()
func (*BlocksRequest) Size ¶
func (m *BlocksRequest) Size() (n int)
func (*BlocksRequest) String ¶
func (m *BlocksRequest) String() string
func (*BlocksRequest) Unmarshal ¶
func (m *BlocksRequest) Unmarshal(dAtA []byte) error
type Header ¶
type Header struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` PreviousHash []byte `protobuf:"bytes,3,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"` MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` Timestamp *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=timestamp" json:"timestamp,omitempty"` Nonce uint64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` }
A block header.
func (*Header) Descriptor ¶
func (*Header) GetBlockNumber ¶
func (*Header) GetMerkleRoot ¶
func (*Header) GetPreviousHash ¶
func (*Header) GetTimestamp ¶
func (m *Header) GetTimestamp() *google_protobuf1.Timestamp
func (*Header) GetVersion ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type HeaderRequest ¶
type HeaderRequest struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
request one header from a peer.
func (*HeaderRequest) Descriptor ¶
func (*HeaderRequest) Descriptor() ([]byte, []int)
func (*HeaderRequest) GetHash ¶
func (m *HeaderRequest) GetHash() []byte
func (*HeaderRequest) Marshal ¶
func (m *HeaderRequest) Marshal() (dAtA []byte, err error)
func (*HeaderRequest) ProtoMessage ¶
func (*HeaderRequest) ProtoMessage()
func (*HeaderRequest) Reset ¶
func (m *HeaderRequest) Reset()
func (*HeaderRequest) Size ¶
func (m *HeaderRequest) Size() (n int)
func (*HeaderRequest) String ¶
func (m *HeaderRequest) String() string
func (*HeaderRequest) Unmarshal ¶
func (m *HeaderRequest) Unmarshal(dAtA []byte) error
type Headers ¶
type Headers struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers" json:"headers,omitempty"`
}
func (*Headers) Descriptor ¶
func (*Headers) GetHeaders ¶
func (*Headers) ProtoMessage ¶
func (*Headers) ProtoMessage()
type HeadersRequest ¶
type HeadersRequest struct { From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
request a list of headers from a peer.
func (*HeadersRequest) Descriptor ¶
func (*HeadersRequest) Descriptor() ([]byte, []int)
func (*HeadersRequest) GetAmount ¶
func (m *HeadersRequest) GetAmount() uint64
func (*HeadersRequest) GetFrom ¶
func (m *HeadersRequest) GetFrom() uint64
func (*HeadersRequest) Marshal ¶
func (m *HeadersRequest) Marshal() (dAtA []byte, err error)
func (*HeadersRequest) ProtoMessage ¶
func (*HeadersRequest) ProtoMessage()
func (*HeadersRequest) Reset ¶
func (m *HeadersRequest) Reset()
func (*HeadersRequest) Size ¶
func (m *HeadersRequest) Size() (n int)
func (*HeadersRequest) String ¶
func (m *HeadersRequest) String() string
func (*HeadersRequest) Unmarshal ¶
func (m *HeadersRequest) Unmarshal(dAtA []byte) error
type ProofNode ¶
type ProofNode struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` ChildHashes [][]byte `protobuf:"bytes,3,rep,name=child_hashes,json=childHashes" json:"child_hashes,omitempty"` }
ProofNode describes a node in a proof.
func (*ProofNode) Descriptor ¶
func (*ProofNode) GetChildHashes ¶
func (*ProofNode) ProtoMessage ¶
func (*ProofNode) ProtoMessage()
type Request ¶
type Request struct { // Types that are valid to be assigned to Msg: // *Request_HeaderReq // *Request_HeadersReq // *Request_BlockReq // *Request_BlocksReq Msg isRequest_Msg `protobuf_oneof:"msg"` }
func NewBlockRequest ¶
NewBlockRequest returns a request object of type BlockReq.
func NewBlocksRequest ¶
NewBlocksRequest returns a request object of type BlocksReq.
func NewHeaderRequest ¶
NewHeaderRequest returns a request object of type HeaderReq.
func NewHeadersRequest ¶
NewHeadersRequest returns a request object of type HeadersReq.
func (*Request) Descriptor ¶
func (*Request) GetBlockReq ¶
func (m *Request) GetBlockReq() *BlockRequest
func (*Request) GetBlocksReq ¶
func (m *Request) GetBlocksReq() *BlocksRequest
func (*Request) GetHeaderReq ¶
func (m *Request) GetHeaderReq() *HeaderRequest
func (*Request) GetHeadersReq ¶
func (m *Request) GetHeadersReq() *HeadersRequest
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Request_BlockReq ¶
type Request_BlockReq struct {
BlockReq *BlockRequest `protobuf:"bytes,3,opt,name=block_req,json=blockReq,oneof"`
}
func (*Request_BlockReq) Size ¶
func (m *Request_BlockReq) Size() (n int)
type Request_BlocksReq ¶
type Request_BlocksReq struct {
BlocksReq *BlocksRequest `protobuf:"bytes,4,opt,name=blocks_req,json=blocksReq,oneof"`
}
func (*Request_BlocksReq) MarshalTo ¶
func (m *Request_BlocksReq) MarshalTo(dAtA []byte) (int, error)
func (*Request_BlocksReq) Size ¶
func (m *Request_BlocksReq) Size() (n int)
type Request_HeaderReq ¶
type Request_HeaderReq struct {
HeaderReq *HeaderRequest `protobuf:"bytes,1,opt,name=header_req,json=headerReq,oneof"`
}
func (*Request_HeaderReq) MarshalTo ¶
func (m *Request_HeaderReq) MarshalTo(dAtA []byte) (int, error)
func (*Request_HeaderReq) Size ¶
func (m *Request_HeaderReq) Size() (n int)
type Request_HeadersReq ¶
type Request_HeadersReq struct {
HeadersReq *HeadersRequest `protobuf:"bytes,2,opt,name=headers_req,json=headersReq,oneof"`
}
func (*Request_HeadersReq) MarshalTo ¶
func (m *Request_HeadersReq) MarshalTo(dAtA []byte) (int, error)
func (*Request_HeadersReq) Size ¶
func (m *Request_HeadersReq) Size() (n int)
type Response ¶
type Response struct { // Types that are valid to be assigned to Msg: // *Response_HeaderRsp // *Response_HeadersRsp // *Response_BlockRsp // *Response_BlocksRsp Msg isResponse_Msg `protobuf_oneof:"msg"` }
func NewBlockResponse ¶
NewBlockResponse returns a response object of type BlockRsp.
func NewBlocksResponse ¶
NewBlocksResponse returns a response object of type BlocksRsp.
func NewHeaderResponse ¶
NewHeaderResponse returns a response object of type HeaderRsp.
func NewHeadersResponse ¶
NewHeadersResponse returns a response object of type HeadersRsp.
func (*Response) Descriptor ¶
func (*Response) GetBlock ¶
GetBlock returns the Block of a BlockRsp or fails for other response types.
func (*Response) GetBlockRsp ¶
func (*Response) GetBlocks ¶
GetBlocks returns the Blocks of a BlocksRsp or fails for other response types.
func (*Response) GetBlocksRsp ¶
func (*Response) GetHeader ¶
GetHeader returns the Header of a HeaderRsp or fails for other response types.
func (*Response) GetHeaderRsp ¶
func (*Response) GetHeaders ¶
GetHeaders returns the Headers of a HeadersRsp or fails for other response types.
func (*Response) GetHeadersRsp ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Response_BlockRsp ¶
type Response_BlockRsp struct {
BlockRsp *Block `protobuf:"bytes,3,opt,name=block_rsp,json=blockRsp,oneof"`
}
func (*Response_BlockRsp) MarshalTo ¶
func (m *Response_BlockRsp) MarshalTo(dAtA []byte) (int, error)
func (*Response_BlockRsp) Size ¶
func (m *Response_BlockRsp) Size() (n int)
type Response_BlocksRsp ¶
type Response_BlocksRsp struct {
BlocksRsp *Blocks `protobuf:"bytes,4,opt,name=blocks_rsp,json=blocksRsp,oneof"`
}
func (*Response_BlocksRsp) MarshalTo ¶
func (m *Response_BlocksRsp) MarshalTo(dAtA []byte) (int, error)
func (*Response_BlocksRsp) Size ¶
func (m *Response_BlocksRsp) Size() (n int)
type Response_HeaderRsp ¶
type Response_HeaderRsp struct {
HeaderRsp *Header `protobuf:"bytes,1,opt,name=header_rsp,json=headerRsp,oneof"`
}
func (*Response_HeaderRsp) MarshalTo ¶
func (m *Response_HeaderRsp) MarshalTo(dAtA []byte) (int, error)
func (*Response_HeaderRsp) Size ¶
func (m *Response_HeaderRsp) Size() (n int)
type Response_HeadersRsp ¶
type Response_HeadersRsp struct {
HeadersRsp *Headers `protobuf:"bytes,2,opt,name=headers_rsp,json=headersRsp,oneof"`
}
func (*Response_HeadersRsp) MarshalTo ¶
func (m *Response_HeadersRsp) MarshalTo(dAtA []byte) (int, error)
func (*Response_HeadersRsp) Size ¶
func (m *Response_HeadersRsp) Size() (n int)
type Signature ¶
type Signature struct { KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=stratumn.indigonode.app.coin.KeyType" json:"key_type,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` }
A digital signature.
func (*Signature) Descriptor ¶
func (*Signature) GetKeyType ¶
func (*Signature) GetPublicKey ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
type Transaction ¶
type Transaction struct { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` Signature *Signature `protobuf:"bytes,6,opt,name=signature" json:"signature,omitempty"` }
A coin transaction.
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetFee ¶
func (m *Transaction) GetFee() uint64
func (*Transaction) GetFrom ¶
func (m *Transaction) GetFrom() []byte
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() uint64
func (*Transaction) GetSignature ¶
func (m *Transaction) GetSignature() *Signature
func (*Transaction) GetTo ¶
func (m *Transaction) GetTo() []byte
func (*Transaction) GetValue ¶
func (m *Transaction) GetValue() uint64
func (*Transaction) Loggable ¶
func (tx *Transaction) Loggable() map[string]interface{}
Loggable returns a loggable form of a transaction.
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err 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