common

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetElements

func (x *Address) GetElements() []byte

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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

Deprecated: Use BlockID.ProtoReflect.Descriptor instead.

func (*BlockID) GetHeader

func (x *BlockID) GetHeader() *Hash

func (*BlockID) GetNumber

func (x *BlockID) GetNumber() uint64

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) ProtoReflect

func (x *BlockID) ProtoReflect() protoreflect.Message

func (*BlockID) Reset

func (x *BlockID) Reset()

func (*BlockID) String

func (x *BlockID) String() string

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

Deprecated: Use Felt252.ProtoReflect.Descriptor instead.

func (*Felt252) GetElements

func (x *Felt252) GetElements() []byte

func (*Felt252) ProtoMessage

func (*Felt252) ProtoMessage()

func (*Felt252) ProtoReflect

func (x *Felt252) ProtoReflect() protoreflect.Message

func (*Felt252) Reset

func (x *Felt252) Reset()

func (*Felt252) String

func (x *Felt252) String() string

type Fin

type Fin struct {
	// contains filtered or unexported fields
}

mark the end of a stream of messages

func (*Fin) Descriptor deprecated

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

Deprecated: Use Fin.ProtoReflect.Descriptor instead.

func (*Fin) ProtoMessage

func (*Fin) ProtoMessage()

func (*Fin) ProtoReflect

func (x *Fin) ProtoReflect() protoreflect.Message

func (*Fin) Reset

func (x *Fin) Reset()

func (*Fin) String

func (x *Fin) String() string

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

Deprecated: Use Hash.ProtoReflect.Descriptor instead.

func (*Hash) GetElements

func (x *Hash) GetElements() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) ProtoReflect

func (x *Hash) ProtoReflect() protoreflect.Message

func (*Hash) Reset

func (x *Hash) Reset()

func (*Hash) String

func (x *Hash) String() string

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

Deprecated: Use Hash256.ProtoReflect.Descriptor instead.

func (*Hash256) GetElements

func (x *Hash256) GetElements() []byte

func (*Hash256) ProtoMessage

func (*Hash256) ProtoMessage()

func (*Hash256) ProtoReflect

func (x *Hash256) ProtoReflect() protoreflect.Message

func (*Hash256) Reset

func (x *Hash256) Reset()

func (*Hash256) String

func (x *Hash256) String() string

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

Deprecated: Use Hashes.ProtoReflect.Descriptor instead.

func (*Hashes) GetItems

func (x *Hashes) GetItems() []*Hash

func (*Hashes) ProtoMessage

func (*Hashes) ProtoMessage()

func (*Hashes) ProtoReflect

func (x *Hashes) ProtoReflect() protoreflect.Message

func (*Hashes) Reset

func (x *Hashes) Reset()

func (*Hashes) String

func (x *Hashes) String() string

type L1DataAvailabilityMode

type L1DataAvailabilityMode int32
const (
	L1DataAvailabilityMode_Calldata L1DataAvailabilityMode = 0
	L1DataAvailabilityMode_Blob     L1DataAvailabilityMode = 1
)

func (L1DataAvailabilityMode) Descriptor

func (L1DataAvailabilityMode) Enum

func (L1DataAvailabilityMode) EnumDescriptor deprecated

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

Deprecated: Use L1DataAvailabilityMode.Descriptor instead.

func (L1DataAvailabilityMode) Number

func (L1DataAvailabilityMode) String

func (x L1DataAvailabilityMode) String() string

func (L1DataAvailabilityMode) Type

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

Deprecated: Use Patricia.ProtoReflect.Descriptor instead.

func (*Patricia) GetNLeaves

func (x *Patricia) GetNLeaves() uint64

func (*Patricia) GetRoot

func (x *Patricia) GetRoot() *Hash

func (*Patricia) ProtoMessage

func (*Patricia) ProtoMessage()

func (*Patricia) ProtoReflect

func (x *Patricia) ProtoReflect() protoreflect.Message

func (*Patricia) Reset

func (x *Patricia) Reset()

func (*Patricia) String

func (x *Patricia) String() string

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

Deprecated: Use PeerID.ProtoReflect.Descriptor instead.

func (*PeerID) GetId

func (x *PeerID) GetId() []byte

func (*PeerID) ProtoMessage

func (*PeerID) ProtoMessage()

func (*PeerID) ProtoReflect

func (x *PeerID) ProtoReflect() protoreflect.Message

func (*PeerID) Reset

func (x *PeerID) Reset()

func (*PeerID) String

func (x *PeerID) String() string

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

Deprecated: Use Uint128.ProtoReflect.Descriptor instead.

func (*Uint128) GetHigh

func (x *Uint128) GetHigh() uint64

func (*Uint128) GetLow

func (x *Uint128) GetLow() uint64

func (*Uint128) ProtoMessage

func (*Uint128) ProtoMessage()

func (*Uint128) ProtoReflect

func (x *Uint128) ProtoReflect() protoreflect.Message

func (*Uint128) Reset

func (x *Uint128) Reset()

func (*Uint128) String

func (x *Uint128) String() string

type VolitionDomain

type VolitionDomain int32
const (
	VolitionDomain_L1 VolitionDomain = 0
	VolitionDomain_L2 VolitionDomain = 1
)

func (VolitionDomain) Descriptor

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 (VolitionDomain) String

func (x VolitionDomain) String() string

func (VolitionDomain) Type

Jump to

Keyboard shortcuts

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