ethereum_sharding_p2p_v1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessages   = fmt.Errorf("proto: integer overflow")
)
View Source
var Topic_name = map[int32]string{
	0: "UNKNOWN",
	1: "COLLATION_BODY_REQUEST",
	2: "COLLATION_BODY_RESPONSE",
	3: "TRANSACTIONS",
}
View Source
var Topic_value = map[string]int32{
	"UNKNOWN":                 0,
	"COLLATION_BODY_REQUEST":  1,
	"COLLATION_BODY_RESPONSE": 2,
	"TRANSACTIONS":            3,
}

Functions

This section is empty.

Types

type CollationBodyRequest

type CollationBodyRequest struct {
	ShardId              uint64   `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
	Period               uint64   `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
	ChunkRoot            []byte   `protobuf:"bytes,3,opt,name=chunk_root,json=chunkRoot,proto3" json:"chunk_root,omitempty"`
	ProposerAddress      []byte   `protobuf:"bytes,4,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
	Signature            []byte   `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollationBodyRequest) Descriptor

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

func (*CollationBodyRequest) GetChunkRoot

func (m *CollationBodyRequest) GetChunkRoot() []byte

func (*CollationBodyRequest) GetPeriod

func (m *CollationBodyRequest) GetPeriod() uint64

func (*CollationBodyRequest) GetProposerAddress

func (m *CollationBodyRequest) GetProposerAddress() []byte

func (*CollationBodyRequest) GetShardId

func (m *CollationBodyRequest) GetShardId() uint64

func (*CollationBodyRequest) GetSignature

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

func (*CollationBodyRequest) Marshal

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

func (*CollationBodyRequest) MarshalTo

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

func (*CollationBodyRequest) ProtoMessage

func (*CollationBodyRequest) ProtoMessage()

func (*CollationBodyRequest) Reset

func (m *CollationBodyRequest) Reset()

func (*CollationBodyRequest) Size

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

func (*CollationBodyRequest) String

func (m *CollationBodyRequest) String() string

func (*CollationBodyRequest) Unmarshal

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

func (*CollationBodyRequest) XXX_DiscardUnknown

func (m *CollationBodyRequest) XXX_DiscardUnknown()

func (*CollationBodyRequest) XXX_Marshal

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

func (*CollationBodyRequest) XXX_Merge

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

func (*CollationBodyRequest) XXX_Size

func (m *CollationBodyRequest) XXX_Size() int

func (*CollationBodyRequest) XXX_Unmarshal

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

type CollationBodyResponse

type CollationBodyResponse struct {
	HeaderHash           []byte   `protobuf:"bytes,1,opt,name=header_hash,json=headerHash,proto3" json:"header_hash,omitempty"`
	Body                 []byte   `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollationBodyResponse) Descriptor

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

func (*CollationBodyResponse) GetBody

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

func (*CollationBodyResponse) GetHeaderHash

func (m *CollationBodyResponse) GetHeaderHash() []byte

func (*CollationBodyResponse) Marshal

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

func (*CollationBodyResponse) MarshalTo

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

func (*CollationBodyResponse) ProtoMessage

func (*CollationBodyResponse) ProtoMessage()

func (*CollationBodyResponse) Reset

func (m *CollationBodyResponse) Reset()

func (*CollationBodyResponse) Size

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

func (*CollationBodyResponse) String

func (m *CollationBodyResponse) String() string

func (*CollationBodyResponse) Unmarshal

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

func (*CollationBodyResponse) XXX_DiscardUnknown

func (m *CollationBodyResponse) XXX_DiscardUnknown()

func (*CollationBodyResponse) XXX_Marshal

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

func (*CollationBodyResponse) XXX_Merge

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

func (*CollationBodyResponse) XXX_Size

func (m *CollationBodyResponse) XXX_Size() int

func (*CollationBodyResponse) XXX_Unmarshal

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

type Signature

type Signature struct {
	V                    uint64   `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
	R                    uint64   `protobuf:"varint,2,opt,name=r,proto3" json:"r,omitempty"`
	S                    uint64   `protobuf:"varint,3,opt,name=s,proto3" json:"s,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Signature) Descriptor

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

func (*Signature) GetR

func (m *Signature) GetR() uint64

func (*Signature) GetS

func (m *Signature) GetS() uint64

func (*Signature) GetV

func (m *Signature) GetV() uint64

func (*Signature) Marshal

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

func (*Signature) MarshalTo

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

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) Size

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

func (*Signature) String

func (m *Signature) String() string

func (*Signature) Unmarshal

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

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

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

func (*Signature) XXX_Merge

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

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

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

type Topic

type Topic int32
const (
	Topic_UNKNOWN                 Topic = 0
	Topic_COLLATION_BODY_REQUEST  Topic = 1
	Topic_COLLATION_BODY_RESPONSE Topic = 2
	Topic_TRANSACTIONS            Topic = 3
)

func (Topic) EnumDescriptor

func (Topic) EnumDescriptor() ([]byte, []int)

func (Topic) String

func (x Topic) String() string

type Transaction

type Transaction struct {
	Nonce                uint64     `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	GasPrice             uint64     `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasLimit             uint64     `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	Recipient            []byte     `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Value                uint64     `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
	Input                []byte     `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	Signature            *Signature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Transaction) Descriptor

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

func (*Transaction) GetGasLimit

func (m *Transaction) GetGasLimit() uint64

func (*Transaction) GetGasPrice

func (m *Transaction) GetGasPrice() uint64

func (*Transaction) GetInput

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

func (*Transaction) GetNonce

func (m *Transaction) GetNonce() uint64

func (*Transaction) GetRecipient

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

func (*Transaction) GetSignature

func (m *Transaction) GetSignature() *Signature

func (*Transaction) GetValue

func (m *Transaction) GetValue() uint64

func (*Transaction) Marshal

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

func (*Transaction) MarshalTo

func (m *Transaction) MarshalTo(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

Jump to

Keyboard shortcuts

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