celestia_da_light_clientv1

package
v0.0.0-...-3696823 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_rollchains_celestia_da_light_client_v1_celestia_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BlobProof

type BlobProof struct {
	ShareProof       *ShareProof `protobuf:"bytes,1,opt,name=share_proof,json=shareProof,proto3" json:"share_proof,omitempty"`
	CelestiaHeight   int64       `protobuf:"varint,2,opt,name=celestia_height,json=celestiaHeight,proto3" json:"celestia_height,omitempty"`
	RollchainHeights []int64     `protobuf:"varint,3,rep,packed,name=rollchain_heights,json=rollchainHeights,proto3" json:"rollchain_heights,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobProof) Descriptor deprecated

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

Deprecated: Use BlobProof.ProtoReflect.Descriptor instead.

func (*BlobProof) GetCelestiaHeight

func (x *BlobProof) GetCelestiaHeight() int64

func (*BlobProof) GetRollchainHeights

func (x *BlobProof) GetRollchainHeights() []int64

func (*BlobProof) GetShareProof

func (x *BlobProof) GetShareProof() *ShareProof

func (*BlobProof) ProtoMessage

func (*BlobProof) ProtoMessage()

func (*BlobProof) ProtoReflect

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

func (*BlobProof) Reset

func (x *BlobProof) Reset()

func (*BlobProof) String

func (x *BlobProof) String() string

type ClientState

type ClientState struct {
	ChainId    string    `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	TrustLevel *Fraction `protobuf:"bytes,2,opt,name=trust_level,json=trustLevel,proto3" json:"trust_level,omitempty"`
	// duration of the period since the LatestTimestamp during which the
	// submitted headers are valid for upgrade
	TrustingPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"`
	// duration of the staking unbonding period
	UnbondingPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=unbonding_period,json=unbondingPeriod,proto3" json:"unbonding_period,omitempty"`
	// defines how much new (untrusted) header's Time can drift into the future.
	MaxClockDrift *durationpb.Duration `protobuf:"bytes,5,opt,name=max_clock_drift,json=maxClockDrift,proto3" json:"max_clock_drift,omitempty"`
	// Block height when the client was frozen due to a misbehaviour
	FrozenHeight *Height `protobuf:"bytes,6,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	// Latest height the client was updated to
	LatestHeight *Height `protobuf:"bytes,7,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"`
	// contains filtered or unexported fields
}

ClientState from Celestia tracks the current validator set, latest height, and a possible frozen height.

func (*ClientState) Descriptor deprecated

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

Deprecated: Use ClientState.ProtoReflect.Descriptor instead.

func (*ClientState) GetChainId

func (x *ClientState) GetChainId() string

func (*ClientState) GetFrozenHeight

func (x *ClientState) GetFrozenHeight() *Height

func (*ClientState) GetLatestHeight

func (x *ClientState) GetLatestHeight() *Height

func (*ClientState) GetMaxClockDrift

func (x *ClientState) GetMaxClockDrift() *durationpb.Duration

func (*ClientState) GetTrustLevel

func (x *ClientState) GetTrustLevel() *Fraction

func (*ClientState) GetTrustingPeriod

func (x *ClientState) GetTrustingPeriod() *durationpb.Duration

func (*ClientState) GetUnbondingPeriod

func (x *ClientState) GetUnbondingPeriod() *durationpb.Duration

func (*ClientState) ProtoMessage

func (*ClientState) ProtoMessage()

func (*ClientState) ProtoReflect

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

func (*ClientState) Reset

func (x *ClientState) Reset()

func (*ClientState) String

func (x *ClientState) String() string

type ConsensusState

type ConsensusState struct {

	// timestamp that corresponds to the block height in which the ConsensusState
	// was stored.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// commitment root (i.e app hash)
	Root               []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	NextValidatorsHash []byte `protobuf:"bytes,3,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
	// contains filtered or unexported fields
}

ConsensusState defines the consensus state from Tendermint.

func (*ConsensusState) Descriptor deprecated

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

Deprecated: Use ConsensusState.ProtoReflect.Descriptor instead.

func (*ConsensusState) GetNextValidatorsHash

func (x *ConsensusState) GetNextValidatorsHash() []byte

func (*ConsensusState) GetRoot

func (x *ConsensusState) GetRoot() []byte

func (*ConsensusState) GetTimestamp

func (x *ConsensusState) GetTimestamp() *timestamppb.Timestamp

func (*ConsensusState) ProtoMessage

func (*ConsensusState) ProtoMessage()

func (*ConsensusState) ProtoReflect

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

func (*ConsensusState) Reset

func (x *ConsensusState) Reset()

func (*ConsensusState) String

func (x *ConsensusState) String() string

type ConsensusStateWithHeight

type ConsensusStateWithHeight struct {
	Height         *Height         `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"`
	ConsensusState *ConsensusState `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
	// contains filtered or unexported fields
}

Consensus state with height attached for import/export genesis

func (*ConsensusStateWithHeight) Descriptor deprecated

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

Deprecated: Use ConsensusStateWithHeight.ProtoReflect.Descriptor instead.

func (*ConsensusStateWithHeight) GetConsensusState

func (x *ConsensusStateWithHeight) GetConsensusState() *ConsensusState

func (*ConsensusStateWithHeight) GetHeight

func (x *ConsensusStateWithHeight) GetHeight() *Height

func (*ConsensusStateWithHeight) ProtoMessage

func (*ConsensusStateWithHeight) ProtoMessage()

func (*ConsensusStateWithHeight) ProtoReflect

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

func (*ConsensusStateWithHeight) Reset

func (x *ConsensusStateWithHeight) Reset()

func (*ConsensusStateWithHeight) String

func (x *ConsensusStateWithHeight) String() string

type CreateClient

type CreateClient struct {
	ClientState    *ClientState    `protobuf:"bytes,1,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
	ConsensusState *ConsensusState `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClient) Descriptor deprecated

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

Deprecated: Use CreateClient.ProtoReflect.Descriptor instead.

func (*CreateClient) GetClientState

func (x *CreateClient) GetClientState() *ClientState

func (*CreateClient) GetConsensusState

func (x *CreateClient) GetConsensusState() *ConsensusState

func (*CreateClient) ProtoMessage

func (*CreateClient) ProtoMessage()

func (*CreateClient) ProtoReflect

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

func (*CreateClient) Reset

func (x *CreateClient) Reset()

func (*CreateClient) String

func (x *CreateClient) String() string

type Fraction

type Fraction struct {
	Numerator   uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
	// contains filtered or unexported fields
}

Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.

func (*Fraction) Descriptor deprecated

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

Deprecated: Use Fraction.ProtoReflect.Descriptor instead.

func (*Fraction) GetDenominator

func (x *Fraction) GetDenominator() uint64

func (*Fraction) GetNumerator

func (x *Fraction) GetNumerator() uint64

func (*Fraction) ProtoMessage

func (*Fraction) ProtoMessage()

func (*Fraction) ProtoReflect

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

func (*Fraction) Reset

func (x *Fraction) Reset()

func (*Fraction) String

func (x *Fraction) String() string

type GenesisMetadata

type GenesisMetadata struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Clients key/value metadata for import/export genesis

func (*GenesisMetadata) Descriptor deprecated

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

Deprecated: Use GenesisMetadata.ProtoReflect.Descriptor instead.

func (*GenesisMetadata) GetKey

func (x *GenesisMetadata) GetKey() []byte

func (*GenesisMetadata) GetValue

func (x *GenesisMetadata) GetValue() []byte

func (*GenesisMetadata) ProtoMessage

func (*GenesisMetadata) ProtoMessage()

func (*GenesisMetadata) ProtoReflect

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

func (*GenesisMetadata) Reset

func (x *GenesisMetadata) Reset()

func (*GenesisMetadata) String

func (x *GenesisMetadata) String() string

type GenesisState

type GenesisState struct {
	ClientState     *ClientState                `protobuf:"bytes,1,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
	ConsensusStates []*ConsensusStateWithHeight `protobuf:"bytes,2,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states,omitempty"`
	Metadata        []*GenesisMetadata          `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

All client state for import/export genesis

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetClientState

func (x *GenesisState) GetClientState() *ClientState

func (*GenesisState) GetConsensusStates

func (x *GenesisState) GetConsensusStates() []*ConsensusStateWithHeight

func (*GenesisState) GetMetadata

func (x *GenesisState) GetMetadata() []*GenesisMetadata

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string
type Header struct {
	SignedHeader      *types.SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"`
	ValidatorSet      *types.ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
	TrustedHeight     *Height             `protobuf:"bytes,3,opt,name=trusted_height,json=trustedHeight,proto3" json:"trusted_height,omitempty"`
	TrustedValidators *types.ValidatorSet `protobuf:"bytes,4,opt,name=trusted_validators,json=trustedValidators,proto3" json:"trusted_validators,omitempty"`
	// contains filtered or unexported fields
}

Header defines the Tendermint client consensus Header. It encapsulates all the information necessary to update from a trusted Tendermint ConsensusState. The inclusion of TrustedHeight and TrustedValidators allows this update to process correctly, so long as the ConsensusState for the TrustedHeight exists, this removes race conditions among relayers The SignedHeader and ValidatorSet are the new untrusted update fields for the client. The TrustedHeight is the height of a stored ConsensusState on the client that will be used to verify the new untrusted header. The Trusted ConsensusState must be within the unbonding period of current time in order to correctly verify, and the TrustedValidators must hash to TrustedConsensusState.NextValidatorsHash since that is the last trusted validator set at the TrustedHeight.

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetSignedHeader

func (x *Header) GetSignedHeader() *types.SignedHeader

func (*Header) GetTrustedHeight

func (x *Header) GetTrustedHeight() *Height

func (*Header) GetTrustedValidators

func (x *Header) GetTrustedValidators() *types.ValidatorSet

func (*Header) GetValidatorSet

func (x *Header) GetValidatorSet() *types.ValidatorSet

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Height

type Height struct {

	// the revision that the client is currently on
	RevisionNumber uint64 `protobuf:"varint,1,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
	// the height within the given revision
	RevisionHeight uint64 `protobuf:"varint,2,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height,omitempty"`
	// contains filtered or unexported fields
}

Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients

Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset

func (*Height) Descriptor deprecated

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

Deprecated: Use Height.ProtoReflect.Descriptor instead.

func (*Height) GetRevisionHeight

func (x *Height) GetRevisionHeight() uint64

func (*Height) GetRevisionNumber

func (x *Height) GetRevisionNumber() uint64

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) ProtoReflect

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

func (*Height) Reset

func (x *Height) Reset()

func (*Height) String

func (x *Height) String() string

type Misbehaviour

type Misbehaviour struct {

	// ClientID is deprecated
	//
	// Deprecated: Do not use.
	ClientId string  `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	Header_1 *Header `protobuf:"bytes,2,opt,name=header_1,json=header1,proto3" json:"header_1,omitempty"`
	Header_2 *Header `protobuf:"bytes,3,opt,name=header_2,json=header2,proto3" json:"header_2,omitempty"`
	// contains filtered or unexported fields
}

Misbehaviour is a wrapper over two conflicting Headers that implements Misbehaviour interface expected by ICS-02

func (*Misbehaviour) Descriptor deprecated

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

Deprecated: Use Misbehaviour.ProtoReflect.Descriptor instead.

func (*Misbehaviour) GetClientId deprecated

func (x *Misbehaviour) GetClientId() string

Deprecated: Do not use.

func (*Misbehaviour) GetHeader_1

func (x *Misbehaviour) GetHeader_1() *Header

func (*Misbehaviour) GetHeader_2

func (x *Misbehaviour) GetHeader_2() *Header

func (*Misbehaviour) ProtoMessage

func (*Misbehaviour) ProtoMessage()

func (*Misbehaviour) ProtoReflect

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

func (*Misbehaviour) Reset

func (x *Misbehaviour) Reset()

func (*Misbehaviour) String

func (x *Misbehaviour) String() string

type NMTProof

type NMTProof struct {

	// Start index of this proof.
	Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// End index of this proof.
	End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// Nodes that together with the corresponding leaf values can be used to
	// recompute the root and verify this proof. Nodes should consist of the max
	// and min namespaces along with the actual hash, resulting in each being 48
	// bytes each
	Nodes [][]byte `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// leafHash are nil if the namespace is present in the NMT. In case the
	// namespace to be proved is in the min/max range of the tree but absent, this
	// will contain the leaf hash necessary to verify the proof of absence. Leaf
	// hashes should consist of the namespace along with the actual hash,
	// resulting 40 bytes total.
	LeafHash []byte `protobuf:"bytes,4,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
	// contains filtered or unexported fields
}

NMTProof is a proof of a namespace.ID in an NMT. In case this proof proves the absence of a namespace.ID in a tree it also contains the leaf hashes of the range where that namespace would be.

func (*NMTProof) Descriptor deprecated

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

Deprecated: Use NMTProof.ProtoReflect.Descriptor instead.

func (*NMTProof) GetEnd

func (x *NMTProof) GetEnd() int32

func (*NMTProof) GetLeafHash

func (x *NMTProof) GetLeafHash() []byte

func (*NMTProof) GetNodes

func (x *NMTProof) GetNodes() [][]byte

func (*NMTProof) GetStart

func (x *NMTProof) GetStart() int32

func (*NMTProof) ProtoMessage

func (*NMTProof) ProtoMessage()

func (*NMTProof) ProtoReflect

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

func (*NMTProof) Reset

func (x *NMTProof) Reset()

func (*NMTProof) String

func (x *NMTProof) String() string

type RowProof

type RowProof struct {
	RowRoots [][]byte        `protobuf:"bytes,1,rep,name=row_roots,json=rowRoots,proto3" json:"row_roots,omitempty"`
	Proofs   []*crypto.Proof `protobuf:"bytes,2,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Root     []byte          `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"`
	StartRow uint32          `protobuf:"varint,4,opt,name=start_row,json=startRow,proto3" json:"start_row,omitempty"`
	EndRow   uint32          `protobuf:"varint,5,opt,name=end_row,json=endRow,proto3" json:"end_row,omitempty"`
	// contains filtered or unexported fields
}

RowProof is a Merkle proof that a set of rows exist in a Merkle tree with a given data root.

func (*RowProof) Descriptor deprecated

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

Deprecated: Use RowProof.ProtoReflect.Descriptor instead.

func (*RowProof) GetEndRow

func (x *RowProof) GetEndRow() uint32

func (*RowProof) GetProofs

func (x *RowProof) GetProofs() []*crypto.Proof

func (*RowProof) GetRoot

func (x *RowProof) GetRoot() []byte

func (*RowProof) GetRowRoots

func (x *RowProof) GetRowRoots() [][]byte

func (*RowProof) GetStartRow

func (x *RowProof) GetStartRow() uint32

func (*RowProof) ProtoMessage

func (*RowProof) ProtoMessage()

func (*RowProof) ProtoReflect

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

func (*RowProof) Reset

func (x *RowProof) Reset()

func (*RowProof) String

func (x *RowProof) String() string

type ShareProof

type ShareProof struct {
	Data             [][]byte    `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	ShareProofs      []*NMTProof `protobuf:"bytes,2,rep,name=share_proofs,json=shareProofs,proto3" json:"share_proofs,omitempty"`
	NamespaceId      []byte      `protobuf:"bytes,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	RowProof         *RowProof   `protobuf:"bytes,4,opt,name=row_proof,json=rowProof,proto3" json:"row_proof,omitempty"`
	NamespaceVersion uint32      `protobuf:"varint,5,opt,name=namespace_version,json=namespaceVersion,proto3" json:"namespace_version,omitempty"`
	// contains filtered or unexported fields
}

ShareProof is an NMT proof that a set of shares exist in a set of rows and a Merkle proof that those rows exist in a Merkle tree with a given data root.

func (*ShareProof) Descriptor deprecated

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

Deprecated: Use ShareProof.ProtoReflect.Descriptor instead.

func (*ShareProof) GetData

func (x *ShareProof) GetData() [][]byte

func (*ShareProof) GetNamespaceId

func (x *ShareProof) GetNamespaceId() []byte

func (*ShareProof) GetNamespaceVersion

func (x *ShareProof) GetNamespaceVersion() uint32

func (*ShareProof) GetRowProof

func (x *ShareProof) GetRowProof() *RowProof

func (*ShareProof) GetShareProofs

func (x *ShareProof) GetShareProofs() []*NMTProof

func (*ShareProof) ProtoMessage

func (*ShareProof) ProtoMessage()

func (*ShareProof) ProtoReflect

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

func (*ShareProof) Reset

func (x *ShareProof) Reset()

func (*ShareProof) String

func (x *ShareProof) String() string

Jump to

Keyboard shortcuts

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