solomachinev3

package
v0.0.0-...-c13f9de Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var File_ibc_lightclients_solomachine_v3_solomachine_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientState

type ClientState struct {

	// latest sequence of the client state
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// frozen sequence of the solo machine
	IsFrozen       bool            `protobuf:"varint,2,opt,name=is_frozen,json=isFrozen,proto3" json:"is_frozen,omitempty"`
	ConsensusState *ConsensusState `protobuf:"bytes,3,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"`
	// contains filtered or unexported fields
}

ClientState defines a solo machine client that tracks the current consensus state and if the client is frozen.

func (*ClientState) Descriptor deprecated

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

Deprecated: Use ClientState.ProtoReflect.Descriptor instead.

func (*ClientState) GetConsensusState

func (x *ClientState) GetConsensusState() *ConsensusState

func (*ClientState) GetIsFrozen

func (x *ClientState) GetIsFrozen() bool

func (*ClientState) GetSequence

func (x *ClientState) GetSequence() uint64

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 {

	// public key of the solo machine
	PublicKey *anypb.Any `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// diversifier allows the same public key to be re-used across different solo
	// machine clients (potentially on different chains) without being considered
	// misbehaviour.
	Diversifier string `protobuf:"bytes,2,opt,name=diversifier,proto3" json:"diversifier,omitempty"`
	Timestamp   uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

ConsensusState defines a solo machine consensus state. The sequence of a consensus state is contained in the "height" key used in storing the consensus state.

func (*ConsensusState) Descriptor deprecated

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

Deprecated: Use ConsensusState.ProtoReflect.Descriptor instead.

func (*ConsensusState) GetDiversifier

func (x *ConsensusState) GetDiversifier() string

func (*ConsensusState) GetPublicKey

func (x *ConsensusState) GetPublicKey() *anypb.Any

func (*ConsensusState) GetTimestamp

func (x *ConsensusState) GetTimestamp() uint64

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 Header struct {
	Timestamp      uint64     `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Signature      []byte     `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	NewPublicKey   *anypb.Any `protobuf:"bytes,3,opt,name=new_public_key,json=newPublicKey,proto3" json:"new_public_key,omitempty"`
	NewDiversifier string     `protobuf:"bytes,4,opt,name=new_diversifier,json=newDiversifier,proto3" json:"new_diversifier,omitempty"`
	// contains filtered or unexported fields
}

Header defines a solo machine consensus header

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetNewDiversifier

func (x *Header) GetNewDiversifier() string

func (*Header) GetNewPublicKey

func (x *Header) GetNewPublicKey() *anypb.Any

func (*Header) GetSignature

func (x *Header) GetSignature() []byte

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() uint64

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 HeaderData

type HeaderData struct {

	// header public key
	NewPubKey *anypb.Any `protobuf:"bytes,1,opt,name=new_pub_key,json=newPubKey,proto3" json:"new_pub_key,omitempty"`
	// header diversifier
	NewDiversifier string `protobuf:"bytes,2,opt,name=new_diversifier,json=newDiversifier,proto3" json:"new_diversifier,omitempty"`
	// contains filtered or unexported fields
}

HeaderData returns the SignBytes data for update verification.

func (*HeaderData) Descriptor deprecated

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

Deprecated: Use HeaderData.ProtoReflect.Descriptor instead.

func (*HeaderData) GetNewDiversifier

func (x *HeaderData) GetNewDiversifier() string

func (*HeaderData) GetNewPubKey

func (x *HeaderData) GetNewPubKey() *anypb.Any

func (*HeaderData) ProtoMessage

func (*HeaderData) ProtoMessage()

func (*HeaderData) ProtoReflect

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

func (*HeaderData) Reset

func (x *HeaderData) Reset()

func (*HeaderData) String

func (x *HeaderData) String() string

type Misbehaviour

type Misbehaviour struct {
	Sequence     uint64            `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	SignatureOne *SignatureAndData `protobuf:"bytes,2,opt,name=signature_one,json=signatureOne,proto3" json:"signature_one,omitempty"`
	SignatureTwo *SignatureAndData `protobuf:"bytes,3,opt,name=signature_two,json=signatureTwo,proto3" json:"signature_two,omitempty"`
	// contains filtered or unexported fields
}

Misbehaviour defines misbehaviour for a solo machine which consists of a sequence and two signatures over different messages at that sequence.

func (*Misbehaviour) Descriptor deprecated

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

Deprecated: Use Misbehaviour.ProtoReflect.Descriptor instead.

func (*Misbehaviour) GetSequence

func (x *Misbehaviour) GetSequence() uint64

func (*Misbehaviour) GetSignatureOne

func (x *Misbehaviour) GetSignatureOne() *SignatureAndData

func (*Misbehaviour) GetSignatureTwo

func (x *Misbehaviour) GetSignatureTwo() *SignatureAndData

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 SignBytes

type SignBytes struct {

	// the sequence number
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// the proof timestamp
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// the public key diversifier
	Diversifier string `protobuf:"bytes,3,opt,name=diversifier,proto3" json:"diversifier,omitempty"`
	// the standardised path bytes
	Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// the marshaled data bytes
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

SignBytes defines the signed bytes used for signature verification.

func (*SignBytes) Descriptor deprecated

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

Deprecated: Use SignBytes.ProtoReflect.Descriptor instead.

func (*SignBytes) GetData

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

func (*SignBytes) GetDiversifier

func (x *SignBytes) GetDiversifier() string

func (*SignBytes) GetPath

func (x *SignBytes) GetPath() []byte

func (*SignBytes) GetSequence

func (x *SignBytes) GetSequence() uint64

func (*SignBytes) GetTimestamp

func (x *SignBytes) GetTimestamp() uint64

func (*SignBytes) ProtoMessage

func (*SignBytes) ProtoMessage()

func (*SignBytes) ProtoReflect

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

func (*SignBytes) Reset

func (x *SignBytes) Reset()

func (*SignBytes) String

func (x *SignBytes) String() string

type SignatureAndData

type SignatureAndData struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Path      []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Data      []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

SignatureAndData contains a signature and the data signed over to create that signature.

func (*SignatureAndData) Descriptor deprecated

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

Deprecated: Use SignatureAndData.ProtoReflect.Descriptor instead.

func (*SignatureAndData) GetData

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

func (*SignatureAndData) GetPath

func (x *SignatureAndData) GetPath() []byte

func (*SignatureAndData) GetSignature

func (x *SignatureAndData) GetSignature() []byte

func (*SignatureAndData) GetTimestamp

func (x *SignatureAndData) GetTimestamp() uint64

func (*SignatureAndData) ProtoMessage

func (*SignatureAndData) ProtoMessage()

func (*SignatureAndData) ProtoReflect

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

func (*SignatureAndData) Reset

func (x *SignatureAndData) Reset()

func (*SignatureAndData) String

func (x *SignatureAndData) String() string

type TimestampedSignatureData

type TimestampedSignatureData struct {
	SignatureData []byte `protobuf:"bytes,1,opt,name=signature_data,json=signatureData,proto3" json:"signature_data,omitempty"`
	Timestamp     uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

TimestampedSignatureData contains the signature data and the timestamp of the signature.

func (*TimestampedSignatureData) Descriptor deprecated

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

Deprecated: Use TimestampedSignatureData.ProtoReflect.Descriptor instead.

func (*TimestampedSignatureData) GetSignatureData

func (x *TimestampedSignatureData) GetSignatureData() []byte

func (*TimestampedSignatureData) GetTimestamp

func (x *TimestampedSignatureData) GetTimestamp() uint64

func (*TimestampedSignatureData) ProtoMessage

func (*TimestampedSignatureData) ProtoMessage()

func (*TimestampedSignatureData) ProtoReflect

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

func (*TimestampedSignatureData) Reset

func (x *TimestampedSignatureData) Reset()

func (*TimestampedSignatureData) String

func (x *TimestampedSignatureData) String() string

Jump to

Keyboard shortcuts

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