Documentation
¶
Index ¶
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetHeader() *BlockHeader
- func (m *Block) GetParentHash() []byte
- func (m *Block) GetTransactions() []*Transaction
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetHash() []byte
- func (m *BlockHeader) GetHeight() uint64
- func (m *BlockHeader) GetNonce() int64
- func (m *BlockHeader) GetPrevhash() []byte
- func (m *BlockHeader) GetSign() []byte
- func (m *BlockHeader) GetTimestamp() int64
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) String() string
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type TXInput
- func (*TXInput) Descriptor() ([]byte, []int)
- func (m *TXInput) GetPubKey() []byte
- func (m *TXInput) GetSignature() []byte
- func (m *TXInput) GetTxid() []byte
- func (m *TXInput) GetVout() int32
- func (*TXInput) ProtoMessage()
- func (m *TXInput) Reset()
- func (m *TXInput) String() string
- func (m *TXInput) XXX_DiscardUnknown()
- func (m *TXInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TXInput) XXX_Merge(src proto.Message)
- func (m *TXInput) XXX_Size() int
- func (m *TXInput) XXX_Unmarshal(b []byte) error
- type TXOutput
- func (*TXOutput) Descriptor() ([]byte, []int)
- func (m *TXOutput) GetContract() string
- func (m *TXOutput) GetPubKeyHash() []byte
- func (m *TXOutput) GetValue() []byte
- func (*TXOutput) ProtoMessage()
- func (m *TXOutput) Reset()
- func (m *TXOutput) String() string
- func (m *TXOutput) XXX_DiscardUnknown()
- func (m *TXOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TXOutput) XXX_Merge(src proto.Message)
- func (m *TXOutput) XXX_Size() int
- func (m *TXOutput) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetID() []byte
- func (m *Transaction) GetTip() uint64
- func (m *Transaction) GetVin() []*TXInput
- func (m *Transaction) GetVout() []*TXOutput
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header *BlockHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=Transactions,proto3" json:"Transactions,omitempty"` ParentHash []byte `protobuf:"bytes,3,opt,name=parentHash,proto3" json:"parentHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) GetHeader ¶
func (m *Block) GetHeader() *BlockHeader
func (*Block) GetParentHash ¶
func (*Block) GetTransactions ¶
func (m *Block) GetTransactions() []*Transaction
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockHeader ¶
type BlockHeader struct { Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Prevhash []byte `protobuf:"bytes,2,opt,name=Prevhash,proto3" json:"Prevhash,omitempty"` Nonce int64 `protobuf:"varint,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Sign []byte `protobuf:"bytes,5,opt,name=Sign,proto3" json:"Sign,omitempty"` Height uint64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetHash ¶
func (m *BlockHeader) GetHash() []byte
func (*BlockHeader) GetHeight ¶ added in v0.1.2
func (m *BlockHeader) GetHeight() uint64
func (*BlockHeader) GetNonce ¶
func (m *BlockHeader) GetNonce() int64
func (*BlockHeader) GetPrevhash ¶
func (m *BlockHeader) GetPrevhash() []byte
func (*BlockHeader) GetSign ¶ added in v0.1.2
func (m *BlockHeader) GetSign() []byte
func (*BlockHeader) GetTimestamp ¶
func (m *BlockHeader) GetTimestamp() int64
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (dst *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type TXInput ¶
type TXInput struct { Txid []byte `protobuf:"bytes,1,opt,name=Txid,proto3" json:"Txid,omitempty"` Vout int32 `protobuf:"varint,2,opt,name=Vout,proto3" json:"Vout,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=Signature,proto3" json:"Signature,omitempty"` PubKey []byte `protobuf:"bytes,4,opt,name=PubKey,proto3" json:"PubKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TXInput) Descriptor ¶
func (*TXInput) GetSignature ¶
func (*TXInput) ProtoMessage ¶
func (*TXInput) ProtoMessage()
func (*TXInput) XXX_DiscardUnknown ¶
func (m *TXInput) XXX_DiscardUnknown()
func (*TXInput) XXX_Marshal ¶
func (*TXInput) XXX_Unmarshal ¶
type TXOutput ¶
type TXOutput struct { Value []byte `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` PubKeyHash []byte `protobuf:"bytes,2,opt,name=PubKeyHash,proto3" json:"PubKeyHash,omitempty"` Contract string `protobuf:"bytes,3,opt,name=Contract,proto3" json:"Contract,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TXOutput) Descriptor ¶
func (*TXOutput) GetContract ¶ added in v0.1.2
func (*TXOutput) GetPubKeyHash ¶
func (*TXOutput) ProtoMessage ¶
func (*TXOutput) ProtoMessage()
func (*TXOutput) XXX_DiscardUnknown ¶
func (m *TXOutput) XXX_DiscardUnknown()
func (*TXOutput) XXX_Marshal ¶
func (*TXOutput) XXX_Unmarshal ¶
type Transaction ¶
type Transaction struct { ID []byte `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Vin []*TXInput `protobuf:"bytes,2,rep,name=Vin,proto3" json:"Vin,omitempty"` Vout []*TXOutput `protobuf:"bytes,3,rep,name=Vout,proto3" json:"Vout,omitempty"` Tip uint64 `protobuf:"varint,4,opt,name=Tip,proto3" json:"Tip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetID ¶
func (m *Transaction) GetID() []byte
func (*Transaction) GetTip ¶
func (m *Transaction) GetTip() uint64
func (*Transaction) GetVin ¶
func (m *Transaction) GetVin() []*TXInput
func (*Transaction) GetVout ¶
func (m *Transaction) GetVout() []*TXOutput
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
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 (dst *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
Click to show internal directories.
Click to hide internal directories.