corepb

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Block) GetHeader

func (m *Block) GetHeader() *BlockHeader

func (*Block) GetParentHash

func (m *Block) GetParentHash() []byte

func (*Block) GetTransactions

func (m *Block) GetTransactions() []*Transaction

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

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

func (*Block) XXX_Merge

func (dst *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*TXInput) GetPubKey

func (m *TXInput) GetPubKey() []byte

func (*TXInput) GetSignature

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

func (*TXInput) GetTxid

func (m *TXInput) GetTxid() []byte

func (*TXInput) GetVout

func (m *TXInput) GetVout() int32

func (*TXInput) ProtoMessage

func (*TXInput) ProtoMessage()

func (*TXInput) Reset

func (m *TXInput) Reset()

func (*TXInput) String

func (m *TXInput) String() string

func (*TXInput) XXX_DiscardUnknown

func (m *TXInput) XXX_DiscardUnknown()

func (*TXInput) XXX_Marshal

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

func (*TXInput) XXX_Merge

func (dst *TXInput) XXX_Merge(src proto.Message)

func (*TXInput) XXX_Size

func (m *TXInput) XXX_Size() int

func (*TXInput) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*TXOutput) GetContract added in v0.1.2

func (m *TXOutput) GetContract() string

func (*TXOutput) GetPubKeyHash

func (m *TXOutput) GetPubKeyHash() []byte

func (*TXOutput) GetValue

func (m *TXOutput) GetValue() []byte

func (*TXOutput) ProtoMessage

func (*TXOutput) ProtoMessage()

func (*TXOutput) Reset

func (m *TXOutput) Reset()

func (*TXOutput) String

func (m *TXOutput) String() string

func (*TXOutput) XXX_DiscardUnknown

func (m *TXOutput) XXX_DiscardUnknown()

func (*TXOutput) XXX_Marshal

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

func (*TXOutput) XXX_Merge

func (dst *TXOutput) XXX_Merge(src proto.Message)

func (*TXOutput) XXX_Size

func (m *TXOutput) XXX_Size() int

func (*TXOutput) XXX_Unmarshal

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL