Documentation ¶
Index ¶
- Variables
- type ClientState
- func (*ClientState) Descriptor() ([]byte, []int)
- func (m *ClientState) Marshal() (dAtA []byte, err error)
- func (m *ClientState) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientState) ProtoMessage()
- func (m *ClientState) Reset()
- func (m *ClientState) Size() (n int)
- func (m *ClientState) String() string
- func (m *ClientState) Unmarshal(dAtA []byte) error
- func (m *ClientState) XXX_DiscardUnknown()
- func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientState) XXX_Merge(src proto.Message)
- func (m *ClientState) XXX_Size() int
- func (m *ClientState) XXX_Unmarshal(b []byte) error
- type ConsensusState
- func (*ConsensusState) Descriptor() ([]byte, []int)
- func (m *ConsensusState) Marshal() (dAtA []byte, err error)
- func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsensusState) ProtoMessage()
- func (m *ConsensusState) Reset()
- func (m *ConsensusState) Size() (n int)
- func (m *ConsensusState) String() string
- func (m *ConsensusState) Unmarshal(dAtA []byte) error
- func (m *ConsensusState) XXX_DiscardUnknown()
- func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsensusState) XXX_Merge(src proto.Message)
- func (m *ConsensusState) XXX_Size() int
- func (m *ConsensusState) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type HeaderData
- func (*HeaderData) Descriptor() ([]byte, []int)
- func (m *HeaderData) Marshal() (dAtA []byte, err error)
- func (m *HeaderData) MarshalTo(dAtA []byte) (int, error)
- func (m *HeaderData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeaderData) ProtoMessage()
- func (m *HeaderData) Reset()
- func (m *HeaderData) Size() (n int)
- func (m *HeaderData) String() string
- func (m *HeaderData) Unmarshal(dAtA []byte) error
- func (m *HeaderData) XXX_DiscardUnknown()
- func (m *HeaderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderData) XXX_Merge(src proto.Message)
- func (m *HeaderData) XXX_Size() int
- func (m *HeaderData) XXX_Unmarshal(b []byte) error
- type Misbehaviour
- func (*Misbehaviour) Descriptor() ([]byte, []int)
- func (m *Misbehaviour) Marshal() (dAtA []byte, err error)
- func (m *Misbehaviour) MarshalTo(dAtA []byte) (int, error)
- func (m *Misbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Misbehaviour) ProtoMessage()
- func (m *Misbehaviour) Reset()
- func (m *Misbehaviour) Size() (n int)
- func (m *Misbehaviour) String() string
- func (m *Misbehaviour) Unmarshal(dAtA []byte) error
- func (m *Misbehaviour) XXX_DiscardUnknown()
- func (m *Misbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Misbehaviour) XXX_Merge(src proto.Message)
- func (m *Misbehaviour) XXX_Size() int
- func (m *Misbehaviour) XXX_Unmarshal(b []byte) error
- type SignBytes
- func (*SignBytes) Descriptor() ([]byte, []int)
- func (m *SignBytes) Marshal() (dAtA []byte, err error)
- func (m *SignBytes) MarshalTo(dAtA []byte) (int, error)
- func (m *SignBytes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignBytes) ProtoMessage()
- func (m *SignBytes) Reset()
- func (m *SignBytes) Size() (n int)
- func (m *SignBytes) String() string
- func (m *SignBytes) Unmarshal(dAtA []byte) error
- func (m *SignBytes) XXX_DiscardUnknown()
- func (m *SignBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignBytes) XXX_Merge(src proto.Message)
- func (m *SignBytes) XXX_Size() int
- func (m *SignBytes) XXX_Unmarshal(b []byte) error
- type SignatureAndData
- func (*SignatureAndData) Descriptor() ([]byte, []int)
- func (m *SignatureAndData) Marshal() (dAtA []byte, err error)
- func (m *SignatureAndData) MarshalTo(dAtA []byte) (int, error)
- func (m *SignatureAndData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignatureAndData) ProtoMessage()
- func (m *SignatureAndData) Reset()
- func (m *SignatureAndData) Size() (n int)
- func (m *SignatureAndData) String() string
- func (m *SignatureAndData) Unmarshal(dAtA []byte) error
- func (m *SignatureAndData) XXX_DiscardUnknown()
- func (m *SignatureAndData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignatureAndData) XXX_Merge(src proto.Message)
- func (m *SignatureAndData) XXX_Size() int
- func (m *SignatureAndData) XXX_Unmarshal(b []byte) error
- type TimestampedSignatureData
- func (*TimestampedSignatureData) Descriptor() ([]byte, []int)
- func (m *TimestampedSignatureData) Marshal() (dAtA []byte, err error)
- func (m *TimestampedSignatureData) MarshalTo(dAtA []byte) (int, error)
- func (m *TimestampedSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimestampedSignatureData) ProtoMessage()
- func (m *TimestampedSignatureData) Reset()
- func (m *TimestampedSignatureData) Size() (n int)
- func (m *TimestampedSignatureData) String() string
- func (m *TimestampedSignatureData) Unmarshal(dAtA []byte) error
- func (m *TimestampedSignatureData) XXX_DiscardUnknown()
- func (m *TimestampedSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimestampedSignatureData) XXX_Merge(src proto.Message)
- func (m *TimestampedSignatureData) XXX_Size() int
- func (m *TimestampedSignatureData) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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" yaml:"is_frozen"` ConsensusState *ConsensusState `` /* 126-byte string literal not displayed */ }
ClientState defines a solo machine client that tracks the current consensus state and if the client is frozen.
func (*ClientState) Descriptor ¶
func (*ClientState) Descriptor() ([]byte, []int)
func (*ClientState) Marshal ¶
func (m *ClientState) Marshal() (dAtA []byte, err error)
func (*ClientState) MarshalToSizedBuffer ¶
func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientState) ProtoMessage ¶
func (*ClientState) ProtoMessage()
func (*ClientState) Reset ¶
func (m *ClientState) Reset()
func (*ClientState) Size ¶
func (m *ClientState) Size() (n int)
func (*ClientState) String ¶
func (m *ClientState) String() string
func (*ClientState) Unmarshal ¶
func (m *ClientState) Unmarshal(dAtA []byte) error
func (*ClientState) XXX_DiscardUnknown ¶
func (m *ClientState) XXX_DiscardUnknown()
func (*ClientState) XXX_Marshal ¶
func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientState) XXX_Merge ¶
func (m *ClientState) XXX_Merge(src proto.Message)
func (*ClientState) XXX_Size ¶
func (m *ClientState) XXX_Size() int
func (*ClientState) XXX_Unmarshal ¶
func (m *ClientState) XXX_Unmarshal(b []byte) error
type ConsensusState ¶
type ConsensusState struct { // public key of the solo machine PublicKey *types.Any `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" yaml:"public_key"` // 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"` }
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 ¶
func (*ConsensusState) Descriptor() ([]byte, []int)
func (*ConsensusState) Marshal ¶
func (m *ConsensusState) Marshal() (dAtA []byte, err error)
func (*ConsensusState) MarshalToSizedBuffer ¶
func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusState) ProtoMessage ¶
func (*ConsensusState) ProtoMessage()
func (*ConsensusState) Reset ¶
func (m *ConsensusState) Reset()
func (*ConsensusState) Size ¶
func (m *ConsensusState) Size() (n int)
func (*ConsensusState) String ¶
func (m *ConsensusState) String() string
func (*ConsensusState) Unmarshal ¶
func (m *ConsensusState) Unmarshal(dAtA []byte) error
func (*ConsensusState) XXX_DiscardUnknown ¶
func (m *ConsensusState) XXX_DiscardUnknown()
func (*ConsensusState) XXX_Marshal ¶
func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusState) XXX_Merge ¶
func (m *ConsensusState) XXX_Merge(src proto.Message)
func (*ConsensusState) XXX_Size ¶
func (m *ConsensusState) XXX_Size() int
func (*ConsensusState) XXX_Unmarshal ¶
func (m *ConsensusState) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { // sequence to update solo machine public key at Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` NewPublicKey *types.Any `protobuf:"bytes,4,opt,name=new_public_key,json=newPublicKey,proto3" json:"new_public_key,omitempty" yaml:"new_public_key"` NewDiversifier string `` /* 126-byte string literal not displayed */ }
Header defines a solo machine consensus header
func (*Header) Descriptor ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type HeaderData ¶
type HeaderData struct { // header public key NewPubKey *types.Any `protobuf:"bytes,1,opt,name=new_pub_key,json=newPubKey,proto3" json:"new_pub_key,omitempty" yaml:"new_pub_key"` // header diversifier NewDiversifier string `` /* 126-byte string literal not displayed */ }
HeaderData returns the SignBytes data for update verification.
func (*HeaderData) Descriptor ¶
func (*HeaderData) Descriptor() ([]byte, []int)
func (*HeaderData) Marshal ¶
func (m *HeaderData) Marshal() (dAtA []byte, err error)
func (*HeaderData) MarshalToSizedBuffer ¶
func (m *HeaderData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderData) ProtoMessage ¶
func (*HeaderData) ProtoMessage()
func (*HeaderData) Reset ¶
func (m *HeaderData) Reset()
func (*HeaderData) Size ¶
func (m *HeaderData) Size() (n int)
func (*HeaderData) String ¶
func (m *HeaderData) String() string
func (*HeaderData) Unmarshal ¶
func (m *HeaderData) Unmarshal(dAtA []byte) error
func (*HeaderData) XXX_DiscardUnknown ¶
func (m *HeaderData) XXX_DiscardUnknown()
func (*HeaderData) XXX_Marshal ¶
func (m *HeaderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderData) XXX_Merge ¶
func (m *HeaderData) XXX_Merge(src proto.Message)
func (*HeaderData) XXX_Size ¶
func (m *HeaderData) XXX_Size() int
func (*HeaderData) XXX_Unmarshal ¶
func (m *HeaderData) XXX_Unmarshal(b []byte) error
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" yaml:"signature_one"` SignatureTwo *SignatureAndData `protobuf:"bytes,3,opt,name=signature_two,json=signatureTwo,proto3" json:"signature_two,omitempty" yaml:"signature_two"` }
Misbehaviour defines misbehaviour for a solo machine which consists of a sequence and two signatures over different messages at that sequence.
func (*Misbehaviour) Descriptor ¶
func (*Misbehaviour) Descriptor() ([]byte, []int)
func (*Misbehaviour) Marshal ¶
func (m *Misbehaviour) Marshal() (dAtA []byte, err error)
func (*Misbehaviour) MarshalToSizedBuffer ¶
func (m *Misbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Misbehaviour) ProtoMessage ¶
func (*Misbehaviour) ProtoMessage()
func (*Misbehaviour) Reset ¶
func (m *Misbehaviour) Reset()
func (*Misbehaviour) Size ¶
func (m *Misbehaviour) Size() (n int)
func (*Misbehaviour) String ¶
func (m *Misbehaviour) String() string
func (*Misbehaviour) Unmarshal ¶
func (m *Misbehaviour) Unmarshal(dAtA []byte) error
func (*Misbehaviour) XXX_DiscardUnknown ¶
func (m *Misbehaviour) XXX_DiscardUnknown()
func (*Misbehaviour) XXX_Marshal ¶
func (m *Misbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Misbehaviour) XXX_Merge ¶
func (m *Misbehaviour) XXX_Merge(src proto.Message)
func (*Misbehaviour) XXX_Size ¶
func (m *Misbehaviour) XXX_Size() int
func (*Misbehaviour) XXX_Unmarshal ¶
func (m *Misbehaviour) XXX_Unmarshal(b []byte) error
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"` }
SignBytes defines the signed bytes used for signature verification.
func (*SignBytes) Descriptor ¶
func (*SignBytes) MarshalToSizedBuffer ¶
func (*SignBytes) ProtoMessage ¶
func (*SignBytes) ProtoMessage()
func (*SignBytes) XXX_DiscardUnknown ¶
func (m *SignBytes) XXX_DiscardUnknown()
func (*SignBytes) XXX_Marshal ¶
func (*SignBytes) XXX_Unmarshal ¶
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"` }
SignatureAndData contains a signature and the data signed over to create that signature.
func (*SignatureAndData) Descriptor ¶
func (*SignatureAndData) Descriptor() ([]byte, []int)
func (*SignatureAndData) Marshal ¶
func (m *SignatureAndData) Marshal() (dAtA []byte, err error)
func (*SignatureAndData) MarshalToSizedBuffer ¶
func (m *SignatureAndData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignatureAndData) ProtoMessage ¶
func (*SignatureAndData) ProtoMessage()
func (*SignatureAndData) Reset ¶
func (m *SignatureAndData) Reset()
func (*SignatureAndData) Size ¶
func (m *SignatureAndData) Size() (n int)
func (*SignatureAndData) String ¶
func (m *SignatureAndData) String() string
func (*SignatureAndData) Unmarshal ¶
func (m *SignatureAndData) Unmarshal(dAtA []byte) error
func (*SignatureAndData) XXX_DiscardUnknown ¶
func (m *SignatureAndData) XXX_DiscardUnknown()
func (*SignatureAndData) XXX_Marshal ¶
func (m *SignatureAndData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignatureAndData) XXX_Merge ¶
func (m *SignatureAndData) XXX_Merge(src proto.Message)
func (*SignatureAndData) XXX_Size ¶
func (m *SignatureAndData) XXX_Size() int
func (*SignatureAndData) XXX_Unmarshal ¶
func (m *SignatureAndData) XXX_Unmarshal(b []byte) error
type TimestampedSignatureData ¶
type TimestampedSignatureData struct { SignatureData []byte `protobuf:"bytes,1,opt,name=signature_data,json=signatureData,proto3" json:"signature_data,omitempty" yaml:"signature_data"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
TimestampedSignatureData contains the signature data and the timestamp of the signature.
func (*TimestampedSignatureData) Descriptor ¶
func (*TimestampedSignatureData) Descriptor() ([]byte, []int)
func (*TimestampedSignatureData) Marshal ¶
func (m *TimestampedSignatureData) Marshal() (dAtA []byte, err error)
func (*TimestampedSignatureData) MarshalTo ¶
func (m *TimestampedSignatureData) MarshalTo(dAtA []byte) (int, error)
func (*TimestampedSignatureData) MarshalToSizedBuffer ¶
func (m *TimestampedSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimestampedSignatureData) ProtoMessage ¶
func (*TimestampedSignatureData) ProtoMessage()
func (*TimestampedSignatureData) Reset ¶
func (m *TimestampedSignatureData) Reset()
func (*TimestampedSignatureData) Size ¶
func (m *TimestampedSignatureData) Size() (n int)
func (*TimestampedSignatureData) String ¶
func (m *TimestampedSignatureData) String() string
func (*TimestampedSignatureData) Unmarshal ¶
func (m *TimestampedSignatureData) Unmarshal(dAtA []byte) error
func (*TimestampedSignatureData) XXX_DiscardUnknown ¶
func (m *TimestampedSignatureData) XXX_DiscardUnknown()
func (*TimestampedSignatureData) XXX_Marshal ¶
func (m *TimestampedSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimestampedSignatureData) XXX_Merge ¶
func (m *TimestampedSignatureData) XXX_Merge(src proto.Message)
func (*TimestampedSignatureData) XXX_Size ¶
func (m *TimestampedSignatureData) XXX_Size() int
func (*TimestampedSignatureData) XXX_Unmarshal ¶
func (m *TimestampedSignatureData) XXX_Unmarshal(b []byte) error