Documentation
¶
Index ¶
- Variables
- type Address
- type BlockID
- type BlockProof
- type ConsensusSignature
- func (*ConsensusSignature) Descriptor() ([]byte, []int)deprecated
- func (x *ConsensusSignature) GetR() *Felt252
- func (x *ConsensusSignature) GetS() *Felt252
- func (*ConsensusSignature) ProtoMessage()
- func (x *ConsensusSignature) ProtoReflect() protoreflect.Message
- func (x *ConsensusSignature) Reset()
- func (x *ConsensusSignature) String() string
- type Felt252
- type Fin
- type Hash
- type Hash256
- type Hashes
- type L1DataAvailabilityMode
- func (L1DataAvailabilityMode) Descriptor() protoreflect.EnumDescriptor
- func (x L1DataAvailabilityMode) Enum() *L1DataAvailabilityMode
- func (L1DataAvailabilityMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x L1DataAvailabilityMode) Number() protoreflect.EnumNumber
- func (x L1DataAvailabilityMode) String() string
- func (L1DataAvailabilityMode) Type() protoreflect.EnumType
- type Patricia
- type PeerID
- type Uint128
- type VolitionDomain
- func (VolitionDomain) Descriptor() protoreflect.EnumDescriptor
- func (x VolitionDomain) Enum() *VolitionDomain
- func (VolitionDomain) EnumDescriptor() ([]byte, []int)deprecated
- func (x VolitionDomain) Number() protoreflect.EnumNumber
- func (x VolitionDomain) String() string
- func (VolitionDomain) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( L1DataAvailabilityMode_name = map[int32]string{ 0: "Calldata", 1: "Blob", } L1DataAvailabilityMode_value = map[string]int32{ "Calldata": 0, "Blob": 1, } )
Enum value maps for L1DataAvailabilityMode.
View Source
var ( VolitionDomain_name = map[int32]string{ 0: "L1", 1: "L2", } VolitionDomain_value = map[string]int32{ "L1": 0, "L2": 1, } )
Enum value maps for VolitionDomain.
View Source
var File_p2p_proto_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"`
// contains filtered or unexported fields
}
func (*Address) Descriptor
deprecated
func (*Address) GetElements ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type BlockID ¶
type BlockID struct {
Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
Header *Hash `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*BlockID) Descriptor
deprecated
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
func (*BlockID) ProtoReflect ¶
func (x *BlockID) ProtoReflect() protoreflect.Message
type BlockProof ¶
type BlockProof struct {
Proof [][]byte `protobuf:"bytes,1,rep,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
func (*BlockProof) Descriptor
deprecated
func (*BlockProof) Descriptor() ([]byte, []int)
Deprecated: Use BlockProof.ProtoReflect.Descriptor instead.
func (*BlockProof) GetProof ¶
func (x *BlockProof) GetProof() [][]byte
func (*BlockProof) ProtoMessage ¶
func (*BlockProof) ProtoMessage()
func (*BlockProof) ProtoReflect ¶
func (x *BlockProof) ProtoReflect() protoreflect.Message
func (*BlockProof) Reset ¶
func (x *BlockProof) Reset()
func (*BlockProof) String ¶
func (x *BlockProof) String() string
type ConsensusSignature ¶
type ConsensusSignature struct {
R *Felt252 `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"`
S *Felt252 `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"`
// contains filtered or unexported fields
}
func (*ConsensusSignature) Descriptor
deprecated
func (*ConsensusSignature) Descriptor() ([]byte, []int)
Deprecated: Use ConsensusSignature.ProtoReflect.Descriptor instead.
func (*ConsensusSignature) GetR ¶
func (x *ConsensusSignature) GetR() *Felt252
func (*ConsensusSignature) GetS ¶
func (x *ConsensusSignature) GetS() *Felt252
func (*ConsensusSignature) ProtoMessage ¶
func (*ConsensusSignature) ProtoMessage()
func (*ConsensusSignature) ProtoReflect ¶
func (x *ConsensusSignature) ProtoReflect() protoreflect.Message
func (*ConsensusSignature) Reset ¶
func (x *ConsensusSignature) Reset()
func (*ConsensusSignature) String ¶
func (x *ConsensusSignature) String() string
type Felt252 ¶
type Felt252 struct {
Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"`
// contains filtered or unexported fields
}
func (*Felt252) Descriptor
deprecated
func (*Felt252) GetElements ¶
func (*Felt252) ProtoMessage ¶
func (*Felt252) ProtoMessage()
func (*Felt252) ProtoReflect ¶
func (x *Felt252) ProtoReflect() protoreflect.Message
type Fin ¶
type Fin struct {
// contains filtered or unexported fields
}
mark the end of a stream of messages
func (*Fin) Descriptor
deprecated
func (*Fin) ProtoMessage ¶
func (*Fin) ProtoMessage()
func (*Fin) ProtoReflect ¶
func (x *Fin) ProtoReflect() protoreflect.Message
type Hash ¶
type Hash struct {
Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"`
// contains filtered or unexported fields
}
A hash value representable as a Felt252
func (*Hash) Descriptor
deprecated
func (*Hash) GetElements ¶
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
func (*Hash) ProtoReflect ¶
func (x *Hash) ProtoReflect() protoreflect.Message
type Hash256 ¶
type Hash256 struct {
// Required to be 32 bytes long
Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"`
// contains filtered or unexported fields
}
A 256 bit hash value (like Keccak256)
func (*Hash256) Descriptor
deprecated
func (*Hash256) GetElements ¶
func (*Hash256) ProtoMessage ¶
func (*Hash256) ProtoMessage()
func (*Hash256) ProtoReflect ¶
func (x *Hash256) ProtoReflect() protoreflect.Message
type Hashes ¶
type Hashes struct {
Items []*Hash `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*Hashes) Descriptor
deprecated
func (*Hashes) ProtoMessage ¶
func (*Hashes) ProtoMessage()
func (*Hashes) ProtoReflect ¶
func (x *Hashes) ProtoReflect() protoreflect.Message
type L1DataAvailabilityMode ¶
type L1DataAvailabilityMode int32
const ( L1DataAvailabilityMode_Calldata L1DataAvailabilityMode = 0 L1DataAvailabilityMode_Blob L1DataAvailabilityMode = 1 )
func (L1DataAvailabilityMode) Descriptor ¶
func (L1DataAvailabilityMode) Descriptor() protoreflect.EnumDescriptor
func (L1DataAvailabilityMode) Enum ¶
func (x L1DataAvailabilityMode) Enum() *L1DataAvailabilityMode
func (L1DataAvailabilityMode) EnumDescriptor
deprecated
func (L1DataAvailabilityMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use L1DataAvailabilityMode.Descriptor instead.
func (L1DataAvailabilityMode) Number ¶
func (x L1DataAvailabilityMode) Number() protoreflect.EnumNumber
func (L1DataAvailabilityMode) String ¶
func (x L1DataAvailabilityMode) String() string
func (L1DataAvailabilityMode) Type ¶
func (L1DataAvailabilityMode) Type() protoreflect.EnumType
type Patricia ¶
type Patricia struct {
NLeaves uint64 `protobuf:"varint,1,opt,name=n_leaves,json=nLeaves,proto3" json:"n_leaves,omitempty"` // needed to know the height, so as to how many nodes to expect in a proof.
// and also when receiving all leaves, how many to expect
Root *Hash `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
// contains filtered or unexported fields
}
func (*Patricia) Descriptor
deprecated
func (*Patricia) GetNLeaves ¶
func (*Patricia) ProtoMessage ¶
func (*Patricia) ProtoMessage()
func (*Patricia) ProtoReflect ¶
func (x *Patricia) ProtoReflect() protoreflect.Message
type PeerID ¶
type PeerID struct {
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*PeerID) Descriptor
deprecated
func (*PeerID) ProtoMessage ¶
func (*PeerID) ProtoMessage()
func (*PeerID) ProtoReflect ¶
func (x *PeerID) ProtoReflect() protoreflect.Message
type Uint128 ¶
type Uint128 struct {
Low uint64 `protobuf:"varint,1,opt,name=low,proto3" json:"low,omitempty"`
High uint64 `protobuf:"varint,2,opt,name=high,proto3" json:"high,omitempty"`
// contains filtered or unexported fields
}
func (*Uint128) Descriptor
deprecated
func (*Uint128) ProtoMessage ¶
func (*Uint128) ProtoMessage()
func (*Uint128) ProtoReflect ¶
func (x *Uint128) ProtoReflect() protoreflect.Message
type VolitionDomain ¶
type VolitionDomain int32
const ( VolitionDomain_L1 VolitionDomain = 0 VolitionDomain_L2 VolitionDomain = 1 )
func (VolitionDomain) Descriptor ¶
func (VolitionDomain) Descriptor() protoreflect.EnumDescriptor
func (VolitionDomain) Enum ¶
func (x VolitionDomain) Enum() *VolitionDomain
func (VolitionDomain) EnumDescriptor
deprecated
func (VolitionDomain) EnumDescriptor() ([]byte, []int)
Deprecated: Use VolitionDomain.Descriptor instead.
func (VolitionDomain) Number ¶
func (x VolitionDomain) Number() protoreflect.EnumNumber
func (VolitionDomain) String ¶
func (x VolitionDomain) String() string
func (VolitionDomain) Type ¶
func (VolitionDomain) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.