Documentation ¶
Index ¶
- Constants
- Variables
- func ChannelCommitmentKey(prefix []byte, portId, channelId string) ([]byte, error)
- func ClientCommitmentKey(prefix []byte, clientId string) ([]byte, error)
- func ClientStateSignBytes(cdc codec.BinaryCodec, height clienttypes.Height, timestamp uint64, ...) ([]byte, error)
- func ConnectionCommitmentKey(prefix []byte, connectionId string) ([]byte, error)
- func ConsensusCommitmentKey(prefix []byte, clientId string, height uint64) ([]byte, error)
- func ConsensusStateSignBytes(cdc codec.BinaryCodec, height clienttypes.Height, timestamp uint64, ...) ([]byte, error)
- func PacketAcknowledgementCommitmentKey(prefix []byte, portId, channelId string, sequence uint64) ([]byte, error)
- func PacketCommitmentKey(prefix []byte, portId, channelId string, sequence uint64) ([]byte, error)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func VerifySignature(addresses []common.Address, multiSig *MultiSignature, signBytes []byte) error
- type ClientState
- func (cs *ClientState) CheckHeaderAndUpdateState(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.Header) (exported.ClientState, exported.ConsensusState, error)
- func (cs *ClientState) CheckMisbehaviourAndUpdateState(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.Misbehaviour) (exported.ClientState, error)
- func (cs *ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore sdk.KVStore, ...) (exported.ClientState, error)
- func (cs *ClientState) ClientType() string
- func (*ClientState) Descriptor() ([]byte, []int)
- func (cs *ClientState) ExportMetadata(_ sdk.KVStore) []exported.GenesisMetadata
- func (cs *ClientState) GetLatestHeight() exported.Height
- func (cs *ClientState) GetProofSpecs() []*ics23.ProofSpec
- func (cs *ClientState) Initialize(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.ConsensusState) error
- 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 (cs *ClientState) Status(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec) exported.Status
- func (m *ClientState) String() string
- func (m *ClientState) Unmarshal(dAtA []byte) error
- func (cs *ClientState) Validate() error
- func (cs *ClientState) VerifyChannelState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error
- func (cs ClientState) VerifyClientConsensusState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error
- func (cs ClientState) VerifyClientState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error
- func (cs *ClientState) VerifyConnectionState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error
- func (cs *ClientState) VerifyNextSequenceRecv(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (cs *ClientState) VerifyPacketAcknowledgement(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (cs *ClientState) VerifyPacketCommitment(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (cs *ClientState) VerifyPacketReceiptAbsence(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error
- func (cs *ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, 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
- func (cs *ClientState) ZeroCustomFields() exported.ClientState
- type ConsensusState
- func (cs *ConsensusState) ClientType() string
- func (*ConsensusState) Descriptor() ([]byte, []int)
- func (cs *ConsensusState) GetAddresses() []common.Address
- func (cs *ConsensusState) GetRoot() exported.Root
- func (cs *ConsensusState) GetTimestamp() uint64
- 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 (cs *ConsensusState) ValidateBasic() 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 (h *Header) ClientType() string
- func (*Header) Descriptor() ([]byte, []int)
- func (h *Header) GetHeight() exported.Height
- 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 (h *Header) ValidateBasic() 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 Height
- func (*Height) Descriptor() ([]byte, []int)
- func (m *Height) GetRevisionHeight() uint64
- func (m *Height) GetRevisionNumber() uint64
- func (m *Height) Marshal() (dAtA []byte, err error)
- func (m *Height) MarshalTo(dAtA []byte) (int, error)
- func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Height) ProtoMessage()
- func (m *Height) Reset()
- func (m *Height) Size() (n int)
- func (m *Height) String() string
- func (m *Height) Unmarshal(dAtA []byte) error
- func (m *Height) XXX_DiscardUnknown()
- func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Height) XXX_Merge(src proto.Message)
- func (m *Height) XXX_Size() int
- func (m *Height) XXX_Unmarshal(b []byte) error
- type MultiSignature
- func (*MultiSignature) Descriptor() ([]byte, []int)
- func (m *MultiSignature) GetSignatures() [][]byte
- func (m *MultiSignature) GetTimestamp() uint64
- func (m *MultiSignature) Marshal() (dAtA []byte, err error)
- func (m *MultiSignature) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiSignature) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiSignature) ProtoMessage()
- func (m *MultiSignature) Reset()
- func (m *MultiSignature) Size() (n int)
- func (m *MultiSignature) String() string
- func (m *MultiSignature) Unmarshal(dAtA []byte) error
- func (m *MultiSignature) XXX_DiscardUnknown()
- func (m *MultiSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiSignature) XXX_Merge(src proto.Message)
- func (m *MultiSignature) XXX_Size() int
- func (m *MultiSignature) 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 SignBytes_DataType
- type StateData
- func (*StateData) Descriptor() ([]byte, []int)
- func (m *StateData) Marshal() (dAtA []byte, err error)
- func (m *StateData) MarshalTo(dAtA []byte) (int, error)
- func (m *StateData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StateData) ProtoMessage()
- func (m *StateData) Reset()
- func (m *StateData) Size() (n int)
- func (m *StateData) String() string
- func (m *StateData) Unmarshal(dAtA []byte) error
- func (m *StateData) XXX_DiscardUnknown()
- func (m *StateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StateData) XXX_Merge(src proto.Message)
- func (m *StateData) XXX_Size() int
- func (m *StateData) XXX_Unmarshal(b []byte) error
Constants ¶
const ( ModuleName = "ethmultisig-client" ClientType = "ethmultisig-client" )
Variables ¶
var ( ErrInvalidProof = sdkerrors.Register(ModuleName, 1, "invalid Multisig proof") ErrInvalidSignatureCount = sdkerrors.Register(ModuleName, 2, "invalid signature count") )
var ( ErrInvalidLengthEthmultisig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEthmultisig = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEthmultisig = fmt.Errorf("proto: unexpected end of group") )
var SignBytes_DataType_name = map[int32]string{
0: "DATA_TYPE_UNINITIALIZED_UNSPECIFIED",
1: "DATA_TYPE_CLIENT_STATE",
2: "DATA_TYPE_CONSENSUS_STATE",
3: "DATA_TYPE_CONNECTION_STATE",
4: "DATA_TYPE_CHANNEL_STATE",
5: "DATA_TYPE_PACKET_COMMITMENT",
6: "DATA_TYPE_PACKET_ACKNOWLEDGEMENT",
7: "DATA_TYPE_PACKET_RECEIPT_ABSENCE",
8: "DATA_TYPE_NEXT_SEQUENCE_RECV",
9: "DATA_TYPE_HEADER",
}
var SignBytes_DataType_value = map[string]int32{
"DATA_TYPE_UNINITIALIZED_UNSPECIFIED": 0,
"DATA_TYPE_CLIENT_STATE": 1,
"DATA_TYPE_CONSENSUS_STATE": 2,
"DATA_TYPE_CONNECTION_STATE": 3,
"DATA_TYPE_CHANNEL_STATE": 4,
"DATA_TYPE_PACKET_COMMITMENT": 5,
"DATA_TYPE_PACKET_ACKNOWLEDGEMENT": 6,
"DATA_TYPE_PACKET_RECEIPT_ABSENCE": 7,
"DATA_TYPE_NEXT_SEQUENCE_RECV": 8,
"DATA_TYPE_HEADER": 9,
}
Functions ¶
func ChannelCommitmentKey ¶
func ClientStateSignBytes ¶
func ClientStateSignBytes( cdc codec.BinaryCodec, height clienttypes.Height, timestamp uint64, diversifier string, path []byte, clientState exported.ClientState, ) ([]byte, error)
ClientStateSignBytes returns the sign bytes for verification of the client state.
func ConnectionCommitmentKey ¶
func ConsensusCommitmentKey ¶
func ConsensusStateSignBytes ¶
func ConsensusStateSignBytes( cdc codec.BinaryCodec, height clienttypes.Height, timestamp uint64, diversifier string, path []byte, consensusState exported.ConsensusState, ) ([]byte, error)
ConsensusStateSignBytes returns the sign bytes for verification of the consensus state.
func PacketCommitmentKey ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the module interfaces to protobuf Any.
func VerifySignature ¶
func VerifySignature(addresses []common.Address, multiSig *MultiSignature, signBytes []byte) error
Types ¶
type ClientState ¶
type ClientState struct { LatestHeight Height `protobuf:"bytes,1,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height"` FrozenHeight Height `protobuf:"bytes,2,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height" yaml:"frozen_height"` }
func (*ClientState) CheckHeaderAndUpdateState ¶
func (cs *ClientState) CheckHeaderAndUpdateState(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.Header) (exported.ClientState, exported.ConsensusState, error)
Update and Misbehaviour functions
func (*ClientState) CheckMisbehaviourAndUpdateState ¶
func (cs *ClientState) CheckMisbehaviourAndUpdateState(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.Misbehaviour) (exported.ClientState, error)
func (*ClientState) CheckSubstituteAndUpdateState ¶
func (cs *ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore sdk.KVStore, substituteClientStore sdk.KVStore, substituteClient exported.ClientState) (exported.ClientState, error)
func (*ClientState) ClientType ¶
func (cs *ClientState) ClientType() string
func (*ClientState) Descriptor ¶
func (*ClientState) Descriptor() ([]byte, []int)
func (*ClientState) ExportMetadata ¶
func (cs *ClientState) ExportMetadata(_ sdk.KVStore) []exported.GenesisMetadata
Genesis function
func (*ClientState) GetLatestHeight ¶
func (cs *ClientState) GetLatestHeight() exported.Height
func (*ClientState) GetProofSpecs ¶
func (cs *ClientState) GetProofSpecs() []*ics23.ProofSpec
func (*ClientState) Initialize ¶
func (cs *ClientState) Initialize(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.ConsensusState) error
Initialization function Clients must validate the initial consensus state, and may store any client-specific metadata necessary for correct light client operation
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) Status ¶
func (cs *ClientState) Status(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec) exported.Status
Status function Clients must return their status. Only Active clients are allowed to process packets.
func (*ClientState) String ¶
func (m *ClientState) String() string
func (*ClientState) Unmarshal ¶
func (m *ClientState) Unmarshal(dAtA []byte) error
func (*ClientState) Validate ¶
func (cs *ClientState) Validate() error
func (*ClientState) VerifyChannelState ¶
func (ClientState) VerifyClientConsensusState ¶
func (ClientState) VerifyClientState ¶
func (cs ClientState) VerifyClientState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, prefix exported.Prefix, counterpartyClientIdentifier string, proof []byte, clientState exported.ClientState) error
State verification functions
func (*ClientState) VerifyConnectionState ¶
func (cs *ClientState) VerifyConnectionState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, prefix exported.Prefix, proof []byte, connectionID string, connectionEnd exported.ConnectionI) error
func (*ClientState) VerifyNextSequenceRecv ¶
func (*ClientState) VerifyPacketAcknowledgement ¶
func (cs *ClientState) VerifyPacketAcknowledgement(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, delayTimePeriod uint64, delayBlockPeriod uint64, prefix exported.Prefix, proof []byte, portID string, channelID string, sequence uint64, acknowledgement []byte) error
func (*ClientState) VerifyPacketCommitment ¶
func (*ClientState) VerifyPacketReceiptAbsence ¶
func (*ClientState) VerifyUpgradeAndUpdateState ¶
func (cs *ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, newClient exported.ClientState, newConsState exported.ConsensusState, proofUpgradeClient []byte, proofUpgradeConsState []byte) (exported.ClientState, exported.ConsensusState, error)
Upgrade functions NOTE: proof heights are not included as upgrade to a new revision is expected to pass only on the last height committed by the current revision. Clients are responsible for ensuring that the planned last height of the current revision is somehow encoded in the proof verification process. This is to ensure that no premature upgrades occur, since upgrade plans committed to by the counterparty may be cancelled or modified before the last planned height.
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
func (*ClientState) ZeroCustomFields ¶
func (cs *ClientState) ZeroCustomFields() exported.ClientState
Utility function that zeroes out any client customizable fields in client state Ledger enforced fields are maintained while all custom fields are zero values Used to verify upgrades
type ConsensusState ¶
type ConsensusState struct { Addresses [][]byte `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty" yaml:"addresses"` Diversifier string `protobuf:"bytes,2,opt,name=diversifier,proto3" json:"diversifier,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*ConsensusState) ClientType ¶
func (cs *ConsensusState) ClientType() string
func (*ConsensusState) Descriptor ¶
func (*ConsensusState) Descriptor() ([]byte, []int)
func (*ConsensusState) GetAddresses ¶
func (cs *ConsensusState) GetAddresses() []common.Address
func (*ConsensusState) GetRoot ¶
func (cs *ConsensusState) GetRoot() exported.Root
GetRoot returns the commitment root of the consensus state, which is used for key-value pair verification.
func (*ConsensusState) GetTimestamp ¶
func (cs *ConsensusState) GetTimestamp() uint64
GetTimestamp returns the timestamp (in nanoseconds) of the consensus state
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) ValidateBasic ¶
func (cs *ConsensusState) ValidateBasic() 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 { // height to update multisig public key at Height Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Signature *MultiSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` NewAddresses [][]byte `protobuf:"bytes,4,rep,name=new_addresses,json=newAddresses,proto3" json:"new_addresses,omitempty" yaml:"new_addresses"` NewDiversifier string `` /* 126-byte string literal not displayed */ }
Header defines a multisig consensus header
func (*Header) ClientType ¶
func (*Header) Descriptor ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ValidateBasic ¶
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 NewAddresses [][]byte `protobuf:"bytes,1,rep,name=new_addresses,json=newAddresses,proto3" json:"new_addresses,omitempty" yaml:"new_addresses"` // 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 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"` }
func (*Height) Descriptor ¶
func (*Height) GetRevisionHeight ¶
func (*Height) GetRevisionNumber ¶
func (*Height) MarshalToSizedBuffer ¶
func (*Height) ProtoMessage ¶
func (*Height) ProtoMessage()
func (*Height) XXX_DiscardUnknown ¶
func (m *Height) XXX_DiscardUnknown()
func (*Height) XXX_Marshal ¶
func (*Height) XXX_Unmarshal ¶
type MultiSignature ¶
type MultiSignature struct { Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*MultiSignature) Descriptor ¶
func (*MultiSignature) Descriptor() ([]byte, []int)
func (*MultiSignature) GetSignatures ¶
func (m *MultiSignature) GetSignatures() [][]byte
func (*MultiSignature) GetTimestamp ¶
func (m *MultiSignature) GetTimestamp() uint64
func (*MultiSignature) Marshal ¶
func (m *MultiSignature) Marshal() (dAtA []byte, err error)
func (*MultiSignature) MarshalToSizedBuffer ¶
func (m *MultiSignature) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiSignature) ProtoMessage ¶
func (*MultiSignature) ProtoMessage()
func (*MultiSignature) Reset ¶
func (m *MultiSignature) Reset()
func (*MultiSignature) Size ¶
func (m *MultiSignature) Size() (n int)
func (*MultiSignature) String ¶
func (m *MultiSignature) String() string
func (*MultiSignature) Unmarshal ¶
func (m *MultiSignature) Unmarshal(dAtA []byte) error
func (*MultiSignature) XXX_DiscardUnknown ¶
func (m *MultiSignature) XXX_DiscardUnknown()
func (*MultiSignature) XXX_Marshal ¶
func (m *MultiSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiSignature) XXX_Merge ¶
func (m *MultiSignature) XXX_Merge(src proto.Message)
func (*MultiSignature) XXX_Size ¶
func (m *MultiSignature) XXX_Size() int
func (*MultiSignature) XXX_Unmarshal ¶
func (m *MultiSignature) XXX_Unmarshal(b []byte) error
type SignBytes ¶
type SignBytes struct { Height Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Diversifier string `protobuf:"bytes,3,opt,name=diversifier,proto3" json:"diversifier,omitempty"` // type of the data used DataType SignBytes_DataType `` /* 127-byte string literal not displayed */ // marshaled HeaderData or StateData Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` }
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 SignBytes_DataType ¶
type SignBytes_DataType int32
DataType defines the type of multisig proof being created. This is done to preserve uniqueness of different data sign byte encodings.
const ( // Default State UNSPECIFIED SignBytes_DataType = 0 // Data type for client state verification CLIENT SignBytes_DataType = 1 // Data type for consensus state verification CONSENSUS SignBytes_DataType = 2 // Data type for connection state verification CONNECTION SignBytes_DataType = 3 // Data type for channel state verification CHANNEL SignBytes_DataType = 4 // Data type for packet commitment verification PACKETCOMMITMENT SignBytes_DataType = 5 // Data type for packet acknowledgement verification PACKETACKNOWLEDGEMENT SignBytes_DataType = 6 // Data type for packet receipt absence verification PACKETRECEIPTABSENCE SignBytes_DataType = 7 // Data type for next sequence recv verification NEXTSEQUENCERECV SignBytes_DataType = 8 // Data type for header verification HEADER SignBytes_DataType = 9 )
func (SignBytes_DataType) EnumDescriptor ¶
func (SignBytes_DataType) EnumDescriptor() ([]byte, []int)
func (SignBytes_DataType) String ¶
func (x SignBytes_DataType) String() string
type StateData ¶
type StateData struct { Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*StateData) Descriptor ¶
func (*StateData) MarshalToSizedBuffer ¶
func (*StateData) ProtoMessage ¶
func (*StateData) ProtoMessage()
func (*StateData) XXX_DiscardUnknown ¶
func (m *StateData) XXX_DiscardUnknown()