icon

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthChannel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChannel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChannel = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthClient        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClient          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClient = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConnection        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConnection          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConnection = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCommitment        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommitment          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommitment = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLight        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLight          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLight = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProofs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProofs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProofs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var BlockIDFlag_name = map[int32]string{
	0: "BLOCK_ID_FLAG_UNKNOWN",
	1: "BLOCK_ID_FLAG_ABSENT",
	2: "BLOCK_ID_FLAG_COMMIT",
	3: "BLOCK_ID_FLAG_NIL",
}
View Source
var BlockIDFlag_value = map[string]int32{
	"BLOCK_ID_FLAG_UNKNOWN": 0,
	"BLOCK_ID_FLAG_ABSENT":  1,
	"BLOCK_ID_FLAG_COMMIT":  2,
	"BLOCK_ID_FLAG_NIL":     3,
}
View Source
var Channel_Order_name = map[int32]string{
	0: "ORDER_NONE_UNSPECIFIED",
	1: "ORDER_UNORDERED",
	2: "ORDER_ORDERED",
}
View Source
var Channel_Order_value = map[string]int32{
	"ORDER_NONE_UNSPECIFIED": 0,
	"ORDER_UNORDERED":        1,
	"ORDER_ORDERED":          2,
}
View Source
var Channel_State_name = map[int32]string{
	0: "STATE_UNINITIALIZED_UNSPECIFIED",
	1: "STATE_INIT",
	2: "STATE_TRYOPEN",
	3: "STATE_OPEN",
	4: "STATE_CLOSED",
}
View Source
var Channel_State_value = map[string]int32{
	"STATE_UNINITIALIZED_UNSPECIFIED": 0,
	"STATE_INIT":                      1,
	"STATE_TRYOPEN":                   2,
	"STATE_OPEN":                      3,
	"STATE_CLOSED":                    4,
}
View Source
var ConnectionEnd_State_name = map[int32]string{
	0: "STATE_UNINITIALIZED_UNSPECIFIED",
	1: "STATE_INIT",
	2: "STATE_TRYOPEN",
	3: "STATE_OPEN",
}
View Source
var ConnectionEnd_State_value = map[string]int32{
	"STATE_UNINITIALIZED_UNSPECIFIED": 0,
	"STATE_INIT":                      1,
	"STATE_TRYOPEN":                   2,
	"STATE_OPEN":                      3,
}
View Source
var HashOp_name = map[int32]string{
	0: "NO_HASH",
	1: "SHA256",
	2: "SHA512",
	3: "KECCAK",
	4: "RIPEMD160",
	5: "BITCOIN",
	6: "SHA512_256",
}
View Source
var HashOp_value = map[string]int32{
	"NO_HASH":    0,
	"SHA256":     1,
	"SHA512":     2,
	"KECCAK":     3,
	"RIPEMD160":  4,
	"BITCOIN":    5,
	"SHA512_256": 6,
}
View Source
var LengthOp_name = map[int32]string{
	0: "NO_PREFIX",
	1: "VAR_PROTO",
	2: "VAR_RLP",
	3: "FIXED32_BIG",
	4: "FIXED32_LITTLE",
	5: "FIXED64_BIG",
	6: "FIXED64_LITTLE",
	7: "REQUIRE_32_BYTES",
	8: "REQUIRE_64_BYTES",
}
View Source
var LengthOp_value = map[string]int32{
	"NO_PREFIX":        0,
	"VAR_PROTO":        1,
	"VAR_RLP":          2,
	"FIXED32_BIG":      3,
	"FIXED32_LITTLE":   4,
	"FIXED64_BIG":      5,
	"FIXED64_LITTLE":   6,
	"REQUIRE_32_BYTES": 7,
	"REQUIRE_64_BYTES": 8,
}
View Source
var SignedMsgType_name = map[int32]string{
	0:  "SIGNED_MSG_TYPE_UNKNOWN",
	1:  "SIGNED_MSG_TYPE_PREVOTE",
	2:  "SIGNED_MSG_TYPE_PRECOMMIT",
	32: "SIGNED_MSG_TYPE_PROPOSAL",
}
View Source
var SignedMsgType_value = map[string]int32{
	"SIGNED_MSG_TYPE_UNKNOWN":   0,
	"SIGNED_MSG_TYPE_PREVOTE":   1,
	"SIGNED_MSG_TYPE_PRECOMMIT": 2,
	"SIGNED_MSG_TYPE_PROPOSAL":  32,
}

Functions

This section is empty.

Types

type BTPHeader

type BTPHeader struct {
	MainHeight             uint64        `protobuf:"varint,1,opt,name=main_height,json=mainHeight,proto3" json:"main_height,omitempty"`
	Round                  uint32        `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	NextProofContextHash   []byte        `protobuf:"bytes,3,opt,name=next_proof_context_hash,json=nextProofContextHash,proto3" json:"next_proof_context_hash,omitempty"`
	NetworkSectionToRoot   []*MerkleNode `protobuf:"bytes,4,rep,name=network_section_to_root,json=networkSectionToRoot,proto3" json:"network_section_to_root,omitempty"`
	NetworkId              uint64        `protobuf:"varint,5,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	UpdateNumber           uint64        `protobuf:"varint,6,opt,name=update_number,json=updateNumber,proto3" json:"update_number,omitempty"`
	PrevNetworkSectionHash []byte        `` /* 131-byte string literal not displayed */
	MessageCount           uint64        `protobuf:"varint,8,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
	MessageRoot            []byte        `protobuf:"bytes,9,opt,name=message_root,json=messageRoot,proto3" json:"message_root,omitempty"`
	NextValidators         [][]byte      `protobuf:"bytes,10,rep,name=nextValidators,proto3" json:"nextValidators,omitempty"`
}

func (*BTPHeader) Descriptor

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

func (*BTPHeader) GetMainHeight

func (m *BTPHeader) GetMainHeight() uint64

func (*BTPHeader) GetMessageCount

func (m *BTPHeader) GetMessageCount() uint64

func (*BTPHeader) GetMessageRoot

func (m *BTPHeader) GetMessageRoot() []byte

func (*BTPHeader) GetNetworkId

func (m *BTPHeader) GetNetworkId() uint64

func (*BTPHeader) GetNetworkSectionToRoot

func (m *BTPHeader) GetNetworkSectionToRoot() []*MerkleNode

func (*BTPHeader) GetNextProofContextHash

func (m *BTPHeader) GetNextProofContextHash() []byte

func (*BTPHeader) GetNextValidators

func (m *BTPHeader) GetNextValidators() [][]byte

func (*BTPHeader) GetPrevNetworkSectionHash

func (m *BTPHeader) GetPrevNetworkSectionHash() []byte

func (*BTPHeader) GetRound

func (m *BTPHeader) GetRound() uint32

func (*BTPHeader) GetUpdateNumber

func (m *BTPHeader) GetUpdateNumber() uint64

func (*BTPHeader) Marshal

func (m *BTPHeader) Marshal() (dAtA []byte, err error)

func (*BTPHeader) MarshalTo

func (m *BTPHeader) MarshalTo(dAtA []byte) (int, error)

func (*BTPHeader) MarshalToSizedBuffer

func (m *BTPHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BTPHeader) ProtoMessage

func (*BTPHeader) ProtoMessage()

func (*BTPHeader) Reset

func (m *BTPHeader) Reset()

func (*BTPHeader) Size

func (m *BTPHeader) Size() (n int)

func (*BTPHeader) String

func (m *BTPHeader) String() string

func (*BTPHeader) Unmarshal

func (m *BTPHeader) Unmarshal(dAtA []byte) error

func (*BTPHeader) XXX_DiscardUnknown

func (m *BTPHeader) XXX_DiscardUnknown()

func (*BTPHeader) XXX_Marshal

func (m *BTPHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BTPHeader) XXX_Merge

func (m *BTPHeader) XXX_Merge(src proto.Message)

func (*BTPHeader) XXX_Size

func (m *BTPHeader) XXX_Size() int

func (*BTPHeader) XXX_Unmarshal

func (m *BTPHeader) XXX_Unmarshal(b []byte) error

type BatchEntry

type BatchEntry struct {
	// Types that are valid to be assigned to Proof:
	//
	//	*BatchEntry_Exist
	//	*BatchEntry_Nonexist
	Proof isBatchEntry_Proof `protobuf_oneof:"proof"`
}

Use BatchEntry not CommitmentProof, to avoid recursion

func (*BatchEntry) Descriptor

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

func (*BatchEntry) GetExist

func (m *BatchEntry) GetExist() *ExistenceProof

func (*BatchEntry) GetNonexist

func (m *BatchEntry) GetNonexist() *NonExistenceProof

func (*BatchEntry) GetProof

func (m *BatchEntry) GetProof() isBatchEntry_Proof

func (*BatchEntry) Marshal

func (m *BatchEntry) Marshal() (dAtA []byte, err error)

func (*BatchEntry) MarshalTo

func (m *BatchEntry) MarshalTo(dAtA []byte) (int, error)

func (*BatchEntry) MarshalToSizedBuffer

func (m *BatchEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchEntry) ProtoMessage

func (*BatchEntry) ProtoMessage()

func (*BatchEntry) Reset

func (m *BatchEntry) Reset()

func (*BatchEntry) Size

func (m *BatchEntry) Size() (n int)

func (*BatchEntry) String

func (m *BatchEntry) String() string

func (*BatchEntry) Unmarshal

func (m *BatchEntry) Unmarshal(dAtA []byte) error

func (*BatchEntry) XXX_DiscardUnknown

func (m *BatchEntry) XXX_DiscardUnknown()

func (*BatchEntry) XXX_Marshal

func (m *BatchEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchEntry) XXX_Merge

func (m *BatchEntry) XXX_Merge(src proto.Message)

func (*BatchEntry) XXX_OneofWrappers

func (*BatchEntry) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BatchEntry) XXX_Size

func (m *BatchEntry) XXX_Size() int

func (*BatchEntry) XXX_Unmarshal

func (m *BatchEntry) XXX_Unmarshal(b []byte) error

type BatchEntry_Exist

type BatchEntry_Exist struct {
	Exist *ExistenceProof `protobuf:"bytes,1,opt,name=exist,proto3,oneof" json:"exist,omitempty"`
}

func (*BatchEntry_Exist) MarshalTo

func (m *BatchEntry_Exist) MarshalTo(dAtA []byte) (int, error)

func (*BatchEntry_Exist) MarshalToSizedBuffer

func (m *BatchEntry_Exist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchEntry_Exist) Size

func (m *BatchEntry_Exist) Size() (n int)

type BatchEntry_Nonexist

type BatchEntry_Nonexist struct {
	Nonexist *NonExistenceProof `protobuf:"bytes,2,opt,name=nonexist,proto3,oneof" json:"nonexist,omitempty"`
}

func (*BatchEntry_Nonexist) MarshalTo

func (m *BatchEntry_Nonexist) MarshalTo(dAtA []byte) (int, error)

func (*BatchEntry_Nonexist) MarshalToSizedBuffer

func (m *BatchEntry_Nonexist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchEntry_Nonexist) Size

func (m *BatchEntry_Nonexist) Size() (n int)

type BatchProof

type BatchProof struct {
	Entries []*BatchEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}

BatchProof is a group of multiple proof types than can be compressed

func (*BatchProof) Descriptor

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

func (*BatchProof) GetEntries

func (m *BatchProof) GetEntries() []*BatchEntry

func (*BatchProof) Marshal

func (m *BatchProof) Marshal() (dAtA []byte, err error)

func (*BatchProof) MarshalTo

func (m *BatchProof) MarshalTo(dAtA []byte) (int, error)

func (*BatchProof) MarshalToSizedBuffer

func (m *BatchProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchProof) ProtoMessage

func (*BatchProof) ProtoMessage()

func (*BatchProof) Reset

func (m *BatchProof) Reset()

func (*BatchProof) Size

func (m *BatchProof) Size() (n int)

func (*BatchProof) String

func (m *BatchProof) String() string

func (*BatchProof) Unmarshal

func (m *BatchProof) Unmarshal(dAtA []byte) error

func (*BatchProof) XXX_DiscardUnknown

func (m *BatchProof) XXX_DiscardUnknown()

func (*BatchProof) XXX_Marshal

func (m *BatchProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchProof) XXX_Merge

func (m *BatchProof) XXX_Merge(src proto.Message)

func (*BatchProof) XXX_Size

func (m *BatchProof) XXX_Size() int

func (*BatchProof) XXX_Unmarshal

func (m *BatchProof) XXX_Unmarshal(b []byte) error

type BlockIDFlag

type BlockIDFlag int32

BlockIdFlag indicates which BlcokID the signature is for

const (
	BlockIDFlag_BLOCK_ID_FLAG_UNKNOWN BlockIDFlag = 0
	BlockIDFlag_BLOCK_ID_FLAG_ABSENT  BlockIDFlag = 1
	BlockIDFlag_BLOCK_ID_FLAG_COMMIT  BlockIDFlag = 2
	BlockIDFlag_BLOCK_ID_FLAG_NIL     BlockIDFlag = 3
)

func (BlockIDFlag) EnumDescriptor

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

func (BlockIDFlag) String

func (x BlockIDFlag) String() string

type BlockUpdate

type BlockUpdate struct {
	Header *SignedHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
}

func (*BlockUpdate) Descriptor

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

func (*BlockUpdate) GetHeader

func (m *BlockUpdate) GetHeader() *SignedHeader

func (*BlockUpdate) Marshal

func (m *BlockUpdate) Marshal() (dAtA []byte, err error)

func (*BlockUpdate) MarshalTo

func (m *BlockUpdate) MarshalTo(dAtA []byte) (int, error)

func (*BlockUpdate) MarshalToSizedBuffer

func (m *BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockUpdate) ProtoMessage

func (*BlockUpdate) ProtoMessage()

func (*BlockUpdate) Reset

func (m *BlockUpdate) Reset()

func (*BlockUpdate) Size

func (m *BlockUpdate) Size() (n int)

func (*BlockUpdate) String

func (m *BlockUpdate) String() string

func (*BlockUpdate) Unmarshal

func (m *BlockUpdate) Unmarshal(dAtA []byte) error

func (*BlockUpdate) XXX_DiscardUnknown

func (m *BlockUpdate) XXX_DiscardUnknown()

func (*BlockUpdate) XXX_Marshal

func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockUpdate) XXX_Merge

func (m *BlockUpdate) XXX_Merge(src proto.Message)

func (*BlockUpdate) XXX_Size

func (m *BlockUpdate) XXX_Size() int

func (*BlockUpdate) XXX_Unmarshal

func (m *BlockUpdate) XXX_Unmarshal(b []byte) error

type Channel

type Channel struct {
	// current state of the channel end
	State Channel_State `protobuf:"varint,1,opt,name=state,proto3,enum=icon.proto.core.channel.Channel_State" json:"state,omitempty"`
	// whether the channel is ordered or unordered
	Ordering Channel_Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=icon.proto.core.channel.Channel_Order" json:"ordering,omitempty"`
	// counterparty channel end
	Counterparty *Channel_Counterparty `protobuf:"bytes,3,opt,name=counterparty,proto3" json:"counterparty,omitempty"`
	// list of connection identifiers, in order, along which packets sent on
	// this channel will travel
	ConnectionHops []string `protobuf:"bytes,4,rep,name=connection_hops,json=connectionHops,proto3" json:"connection_hops,omitempty"`
	// opaque channel version, which is agreed upon during the handshake
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
}

Channel defines pipeline for exactly-once packet delivery between specific modules on separate blockchains, which has at least one end capable of sending packets and one end capable of receiving packets.

func (*Channel) Descriptor

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

func (*Channel) GetConnectionHops

func (m *Channel) GetConnectionHops() []string

func (*Channel) GetCounterparty

func (m *Channel) GetCounterparty() *Channel_Counterparty

func (*Channel) GetOrdering

func (m *Channel) GetOrdering() Channel_Order

func (*Channel) GetState

func (m *Channel) GetState() Channel_State

func (*Channel) GetVersion

func (m *Channel) GetVersion() string

func (*Channel) Marshal

func (m *Channel) Marshal() (dAtA []byte, err error)

func (*Channel) MarshalTo

func (m *Channel) MarshalTo(dAtA []byte) (int, error)

func (*Channel) MarshalToSizedBuffer

func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) Reset

func (m *Channel) Reset()

func (*Channel) Size

func (m *Channel) Size() (n int)

func (*Channel) String

func (m *Channel) String() string

func (*Channel) Unmarshal

func (m *Channel) Unmarshal(dAtA []byte) error

func (*Channel) XXX_DiscardUnknown

func (m *Channel) XXX_DiscardUnknown()

func (*Channel) XXX_Marshal

func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Channel) XXX_Merge

func (m *Channel) XXX_Merge(src proto.Message)

func (*Channel) XXX_Size

func (m *Channel) XXX_Size() int

func (*Channel) XXX_Unmarshal

func (m *Channel) XXX_Unmarshal(b []byte) error

type Channel_Counterparty

type Channel_Counterparty struct {
	// port on the counterparty chain which owns the other end of the channel.
	PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel end on the counterparty chain
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

Counterparty defines a channel end counterparty

func (*Channel_Counterparty) Descriptor

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

func (*Channel_Counterparty) GetChannelId

func (m *Channel_Counterparty) GetChannelId() string

func (*Channel_Counterparty) GetPortId

func (m *Channel_Counterparty) GetPortId() string

func (*Channel_Counterparty) Marshal

func (m *Channel_Counterparty) Marshal() (dAtA []byte, err error)

func (*Channel_Counterparty) MarshalTo

func (m *Channel_Counterparty) MarshalTo(dAtA []byte) (int, error)

func (*Channel_Counterparty) MarshalToSizedBuffer

func (m *Channel_Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Channel_Counterparty) ProtoMessage

func (*Channel_Counterparty) ProtoMessage()

func (*Channel_Counterparty) Reset

func (m *Channel_Counterparty) Reset()

func (*Channel_Counterparty) Size

func (m *Channel_Counterparty) Size() (n int)

func (*Channel_Counterparty) String

func (m *Channel_Counterparty) String() string

func (*Channel_Counterparty) Unmarshal

func (m *Channel_Counterparty) Unmarshal(dAtA []byte) error

func (*Channel_Counterparty) XXX_DiscardUnknown

func (m *Channel_Counterparty) XXX_DiscardUnknown()

func (*Channel_Counterparty) XXX_Marshal

func (m *Channel_Counterparty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Channel_Counterparty) XXX_Merge

func (m *Channel_Counterparty) XXX_Merge(src proto.Message)

func (*Channel_Counterparty) XXX_Size

func (m *Channel_Counterparty) XXX_Size() int

func (*Channel_Counterparty) XXX_Unmarshal

func (m *Channel_Counterparty) XXX_Unmarshal(b []byte) error

type Channel_IdentifiedChannel

type Channel_IdentifiedChannel struct {
	// current state of the channel end
	State Channel_State `protobuf:"varint,1,opt,name=state,proto3,enum=icon.proto.core.channel.Channel_State" json:"state,omitempty"`
	// whether the channel is ordered or unordered
	Ordering Channel_Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=icon.proto.core.channel.Channel_Order" json:"ordering,omitempty"`
	// counterparty channel end
	Counterparty *Channel_Counterparty `protobuf:"bytes,3,opt,name=counterparty,proto3" json:"counterparty,omitempty"`
	// list of connection identifiers, in order, along which packets sent on
	// this channel will travel
	ConnectionHops []string `protobuf:"bytes,4,rep,name=connection_hops,json=connectionHops,proto3" json:"connection_hops,omitempty"`
	// opaque channel version, which is agreed upon during the handshake
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// port identifier
	PortId string `protobuf:"bytes,6,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel identifier
	ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

IdentifiedChannel defines a channel with additional port and channel identifier fields.

func (*Channel_IdentifiedChannel) Descriptor

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

func (*Channel_IdentifiedChannel) GetChannelId

func (m *Channel_IdentifiedChannel) GetChannelId() string

func (*Channel_IdentifiedChannel) GetConnectionHops

func (m *Channel_IdentifiedChannel) GetConnectionHops() []string

func (*Channel_IdentifiedChannel) GetCounterparty

func (m *Channel_IdentifiedChannel) GetCounterparty() *Channel_Counterparty

func (*Channel_IdentifiedChannel) GetOrdering

func (m *Channel_IdentifiedChannel) GetOrdering() Channel_Order

func (*Channel_IdentifiedChannel) GetPortId

func (m *Channel_IdentifiedChannel) GetPortId() string

func (*Channel_IdentifiedChannel) GetState

func (*Channel_IdentifiedChannel) GetVersion

func (m *Channel_IdentifiedChannel) GetVersion() string

func (*Channel_IdentifiedChannel) Marshal

func (m *Channel_IdentifiedChannel) Marshal() (dAtA []byte, err error)

func (*Channel_IdentifiedChannel) MarshalTo

func (m *Channel_IdentifiedChannel) MarshalTo(dAtA []byte) (int, error)

func (*Channel_IdentifiedChannel) MarshalToSizedBuffer

func (m *Channel_IdentifiedChannel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Channel_IdentifiedChannel) ProtoMessage

func (*Channel_IdentifiedChannel) ProtoMessage()

func (*Channel_IdentifiedChannel) Reset

func (m *Channel_IdentifiedChannel) Reset()

func (*Channel_IdentifiedChannel) Size

func (m *Channel_IdentifiedChannel) Size() (n int)

func (*Channel_IdentifiedChannel) String

func (m *Channel_IdentifiedChannel) String() string

func (*Channel_IdentifiedChannel) Unmarshal

func (m *Channel_IdentifiedChannel) Unmarshal(dAtA []byte) error

func (*Channel_IdentifiedChannel) XXX_DiscardUnknown

func (m *Channel_IdentifiedChannel) XXX_DiscardUnknown()

func (*Channel_IdentifiedChannel) XXX_Marshal

func (m *Channel_IdentifiedChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Channel_IdentifiedChannel) XXX_Merge

func (m *Channel_IdentifiedChannel) XXX_Merge(src proto.Message)

func (*Channel_IdentifiedChannel) XXX_Size

func (m *Channel_IdentifiedChannel) XXX_Size() int

func (*Channel_IdentifiedChannel) XXX_Unmarshal

func (m *Channel_IdentifiedChannel) XXX_Unmarshal(b []byte) error

type Channel_Order

type Channel_Order int32

Order defines if a channel is ORDERED or UNORDERED

const (
	// zero-value for channel ordering
	Channel_ORDER_NONE_UNSPECIFIED Channel_Order = 0
	// packets can be delivered in any order, which may differ from the order in
	// which they were sent.
	Channel_ORDER_UNORDERED Channel_Order = 1
	// packets are delivered exactly in the order which they were sent
	Channel_ORDER_ORDERED Channel_Order = 2
)

func (Channel_Order) EnumDescriptor

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

func (Channel_Order) String

func (x Channel_Order) String() string

type Channel_State

type Channel_State int32

State defines if a channel is in one of the following states: CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.

const (
	// Default State
	Channel_STATE_UNINITIALIZED_UNSPECIFIED Channel_State = 0
	// A channel has just started the opening handshake.
	Channel_STATE_INIT Channel_State = 1
	// A channel has acknowledged the handshake step on the counterparty chain.
	Channel_STATE_TRYOPEN Channel_State = 2
	// A channel has completed the handshake. Open channels are
	// ready to send and receive packets.
	Channel_STATE_OPEN Channel_State = 3
	// A channel has been closed and can no longer be used to send or receive
	// packets.
	Channel_STATE_CLOSED Channel_State = 4
)

func (Channel_State) EnumDescriptor

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

func (Channel_State) String

func (x Channel_State) String() string

type ClientState

type ClientState struct {
	TrustingPeriod uint64 `protobuf:"varint,1,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"`
	FrozenHeight   uint64 `protobuf:"varint,2,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	MaxClockDrift  uint64 `protobuf:"varint,3,opt,name=max_clock_drift,json=maxClockDrift,proto3" json:"max_clock_drift,omitempty"`
	LatestHeight   uint64 `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"`
	SrcNetworkId   string `protobuf:"bytes,5,opt,name=src_network_id,json=srcNetworkId,proto3" json:"src_network_id,omitempty"`
	NetworkId      uint64 `protobuf:"varint,6,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	NetworkTypeId  uint64 `protobuf:"varint,7,opt,name=network_type_id,json=networkTypeId,proto3" json:"network_type_id,omitempty"`
}

func NewClientState

func NewClientState(
	TrustingPeriod uint64,
	FrozenHeight uint64,
	MaxClockDrift uint64,
	LatestHeight uint64,
	SrcNetworkId string,
	NetworkId uint64,
	NetworkTypeId uint64,
) *ClientState

func (ClientState) CheckForMisbehaviour

func (cs ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) bool

func (ClientState) CheckSubstituteAndUpdateState

func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore, substituteClientStore sdk.KVStore, substituteClient exported.ClientState) error

func (ClientState) ClientType

func (cs ClientState) ClientType() string

ClientType is icon

func (*ClientState) Descriptor

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

func (ClientState) ExportMetadata

func (cs ClientState) ExportMetadata(store sdk.KVStore) []exported.GenesisMetadata

func (ClientState) GetChainID

func (cs ClientState) GetChainID() string

GetChainID returns the chain-id

func (ClientState) GetLatestHeight

func (cs ClientState) GetLatestHeight() exported.Height

func (ClientState) GetProofSpecs

func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec

func (ClientState) GetTimestampAtHeight

func (cs ClientState) GetTimestampAtHeight(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
) (uint64, error)

GetTimestampAtHeight returns the timestamp in nanoseconds of the consensus state at the given height.

func (ClientState) Initialize

func (cs ClientState) Initialize(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, consState exported.ConsensusState) error

func (ClientState) IsExpired

func (cs ClientState) IsExpired(latestTimestamp, now time.Time) bool

func (*ClientState) Marshal

func (m *ClientState) Marshal() (dAtA []byte, err error)

func (*ClientState) MarshalTo

func (m *ClientState) MarshalTo(dAtA []byte) (int, 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

func (*ClientState) String

func (m *ClientState) String() string

func (*ClientState) Unmarshal

func (m *ClientState) Unmarshal(dAtA []byte) error

func (ClientState) UpdateState

func (cs ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) []exported.Height

func (ClientState) UpdateStateOnMisbehaviour

func (cs ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage)

func (ClientState) Validate

func (cs ClientState) Validate() error

func (ClientState) VerifyClientMessage

func (cs ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) error

func (ClientState) VerifyMembership

func (cs ClientState) VerifyMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
	value []byte,
) error

func (ClientState) VerifyNonMembership

func (cs ClientState) VerifyNonMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
) error

func (ClientState) VerifyUpgradeAndUpdateState

func (cs ClientState) VerifyUpgradeAndUpdateState(
	ctx sdk.Context,
	cdc codec.BinaryCodec,
	store sdk.KVStore,
	newClient exported.ClientState,
	newConsState exported.ConsensusState,
	proofUpgradeClient,
	proofUpgradeConsState []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

func (ClientState) ZeroCustomFields

func (cs ClientState) ZeroCustomFields() exported.ClientState

type CommitmentProof

type CommitmentProof struct {
	// Types that are valid to be assigned to Proof:
	//
	//	*CommitmentProof_Exist
	//	*CommitmentProof_Nonexist
	//	*CommitmentProof_Batch
	//	*CommitmentProof_Compressed
	Proof isCommitmentProof_Proof `protobuf_oneof:"proof"`
}

CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages

func (*CommitmentProof) Descriptor

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

func (*CommitmentProof) GetBatch

func (m *CommitmentProof) GetBatch() *BatchProof

func (*CommitmentProof) GetCompressed

func (m *CommitmentProof) GetCompressed() *CompressedBatchProof

func (*CommitmentProof) GetExist

func (m *CommitmentProof) GetExist() *ExistenceProof

func (*CommitmentProof) GetNonexist

func (m *CommitmentProof) GetNonexist() *NonExistenceProof

func (*CommitmentProof) GetProof

func (m *CommitmentProof) GetProof() isCommitmentProof_Proof

func (*CommitmentProof) Marshal

func (m *CommitmentProof) Marshal() (dAtA []byte, err error)

func (*CommitmentProof) MarshalTo

func (m *CommitmentProof) MarshalTo(dAtA []byte) (int, error)

func (*CommitmentProof) MarshalToSizedBuffer

func (m *CommitmentProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitmentProof) ProtoMessage

func (*CommitmentProof) ProtoMessage()

func (*CommitmentProof) Reset

func (m *CommitmentProof) Reset()

func (*CommitmentProof) Size

func (m *CommitmentProof) Size() (n int)

func (*CommitmentProof) String

func (m *CommitmentProof) String() string

func (*CommitmentProof) Unmarshal

func (m *CommitmentProof) Unmarshal(dAtA []byte) error

func (*CommitmentProof) XXX_DiscardUnknown

func (m *CommitmentProof) XXX_DiscardUnknown()

func (*CommitmentProof) XXX_Marshal

func (m *CommitmentProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitmentProof) XXX_Merge

func (m *CommitmentProof) XXX_Merge(src proto.Message)

func (*CommitmentProof) XXX_OneofWrappers

func (*CommitmentProof) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CommitmentProof) XXX_Size

func (m *CommitmentProof) XXX_Size() int

func (*CommitmentProof) XXX_Unmarshal

func (m *CommitmentProof) XXX_Unmarshal(b []byte) error

type CommitmentProof_Batch

type CommitmentProof_Batch struct {
	Batch *BatchProof `protobuf:"bytes,3,opt,name=batch,proto3,oneof" json:"batch,omitempty"`
}

func (*CommitmentProof_Batch) MarshalTo

func (m *CommitmentProof_Batch) MarshalTo(dAtA []byte) (int, error)

func (*CommitmentProof_Batch) MarshalToSizedBuffer

func (m *CommitmentProof_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitmentProof_Batch) Size

func (m *CommitmentProof_Batch) Size() (n int)

type CommitmentProof_Compressed

type CommitmentProof_Compressed struct {
	Compressed *CompressedBatchProof `protobuf:"bytes,4,opt,name=compressed,proto3,oneof" json:"compressed,omitempty"`
}

func (*CommitmentProof_Compressed) MarshalTo

func (m *CommitmentProof_Compressed) MarshalTo(dAtA []byte) (int, error)

func (*CommitmentProof_Compressed) MarshalToSizedBuffer

func (m *CommitmentProof_Compressed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitmentProof_Compressed) Size

func (m *CommitmentProof_Compressed) Size() (n int)

type CommitmentProof_Exist

type CommitmentProof_Exist struct {
	Exist *ExistenceProof `protobuf:"bytes,1,opt,name=exist,proto3,oneof" json:"exist,omitempty"`
}

func (*CommitmentProof_Exist) MarshalTo

func (m *CommitmentProof_Exist) MarshalTo(dAtA []byte) (int, error)

func (*CommitmentProof_Exist) MarshalToSizedBuffer

func (m *CommitmentProof_Exist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitmentProof_Exist) Size

func (m *CommitmentProof_Exist) Size() (n int)

type CommitmentProof_Nonexist

type CommitmentProof_Nonexist struct {
	Nonexist *NonExistenceProof `protobuf:"bytes,2,opt,name=nonexist,proto3,oneof" json:"nonexist,omitempty"`
}

func (*CommitmentProof_Nonexist) MarshalTo

func (m *CommitmentProof_Nonexist) MarshalTo(dAtA []byte) (int, error)

func (*CommitmentProof_Nonexist) MarshalToSizedBuffer

func (m *CommitmentProof_Nonexist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitmentProof_Nonexist) Size

func (m *CommitmentProof_Nonexist) Size() (n int)

type CompressedBatchEntry

type CompressedBatchEntry struct {
	// Types that are valid to be assigned to Proof:
	//
	//	*CompressedBatchEntry_Exist
	//	*CompressedBatchEntry_Nonexist
	Proof isCompressedBatchEntry_Proof `protobuf_oneof:"proof"`
}

Use BatchEntry not CommitmentProof, to avoid recursion

func (*CompressedBatchEntry) Descriptor

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

func (*CompressedBatchEntry) GetExist

func (*CompressedBatchEntry) GetNonexist

func (*CompressedBatchEntry) GetProof

func (m *CompressedBatchEntry) GetProof() isCompressedBatchEntry_Proof

func (*CompressedBatchEntry) Marshal

func (m *CompressedBatchEntry) Marshal() (dAtA []byte, err error)

func (*CompressedBatchEntry) MarshalTo

func (m *CompressedBatchEntry) MarshalTo(dAtA []byte) (int, error)

func (*CompressedBatchEntry) MarshalToSizedBuffer

func (m *CompressedBatchEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedBatchEntry) ProtoMessage

func (*CompressedBatchEntry) ProtoMessage()

func (*CompressedBatchEntry) Reset

func (m *CompressedBatchEntry) Reset()

func (*CompressedBatchEntry) Size

func (m *CompressedBatchEntry) Size() (n int)

func (*CompressedBatchEntry) String

func (m *CompressedBatchEntry) String() string

func (*CompressedBatchEntry) Unmarshal

func (m *CompressedBatchEntry) Unmarshal(dAtA []byte) error

func (*CompressedBatchEntry) XXX_DiscardUnknown

func (m *CompressedBatchEntry) XXX_DiscardUnknown()

func (*CompressedBatchEntry) XXX_Marshal

func (m *CompressedBatchEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompressedBatchEntry) XXX_Merge

func (m *CompressedBatchEntry) XXX_Merge(src proto.Message)

func (*CompressedBatchEntry) XXX_OneofWrappers

func (*CompressedBatchEntry) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CompressedBatchEntry) XXX_Size

func (m *CompressedBatchEntry) XXX_Size() int

func (*CompressedBatchEntry) XXX_Unmarshal

func (m *CompressedBatchEntry) XXX_Unmarshal(b []byte) error

type CompressedBatchEntry_Exist

type CompressedBatchEntry_Exist struct {
	Exist *CompressedExistenceProof `protobuf:"bytes,1,opt,name=exist,proto3,oneof" json:"exist,omitempty"`
}

func (*CompressedBatchEntry_Exist) MarshalTo

func (m *CompressedBatchEntry_Exist) MarshalTo(dAtA []byte) (int, error)

func (*CompressedBatchEntry_Exist) MarshalToSizedBuffer

func (m *CompressedBatchEntry_Exist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedBatchEntry_Exist) Size

func (m *CompressedBatchEntry_Exist) Size() (n int)

type CompressedBatchEntry_Nonexist

type CompressedBatchEntry_Nonexist struct {
	Nonexist *CompressedNonExistenceProof `protobuf:"bytes,2,opt,name=nonexist,proto3,oneof" json:"nonexist,omitempty"`
}

func (*CompressedBatchEntry_Nonexist) MarshalTo

func (m *CompressedBatchEntry_Nonexist) MarshalTo(dAtA []byte) (int, error)

func (*CompressedBatchEntry_Nonexist) MarshalToSizedBuffer

func (m *CompressedBatchEntry_Nonexist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedBatchEntry_Nonexist) Size

func (m *CompressedBatchEntry_Nonexist) Size() (n int)

type CompressedBatchProof

type CompressedBatchProof struct {
	Entries      []*CompressedBatchEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	LookupInners []*InnerOp              `protobuf:"bytes,2,rep,name=lookup_inners,json=lookupInners,proto3" json:"lookup_inners,omitempty"`
}

func (*CompressedBatchProof) Descriptor

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

func (*CompressedBatchProof) GetEntries

func (m *CompressedBatchProof) GetEntries() []*CompressedBatchEntry

func (*CompressedBatchProof) GetLookupInners

func (m *CompressedBatchProof) GetLookupInners() []*InnerOp

func (*CompressedBatchProof) Marshal

func (m *CompressedBatchProof) Marshal() (dAtA []byte, err error)

func (*CompressedBatchProof) MarshalTo

func (m *CompressedBatchProof) MarshalTo(dAtA []byte) (int, error)

func (*CompressedBatchProof) MarshalToSizedBuffer

func (m *CompressedBatchProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedBatchProof) ProtoMessage

func (*CompressedBatchProof) ProtoMessage()

func (*CompressedBatchProof) Reset

func (m *CompressedBatchProof) Reset()

func (*CompressedBatchProof) Size

func (m *CompressedBatchProof) Size() (n int)

func (*CompressedBatchProof) String

func (m *CompressedBatchProof) String() string

func (*CompressedBatchProof) Unmarshal

func (m *CompressedBatchProof) Unmarshal(dAtA []byte) error

func (*CompressedBatchProof) XXX_DiscardUnknown

func (m *CompressedBatchProof) XXX_DiscardUnknown()

func (*CompressedBatchProof) XXX_Marshal

func (m *CompressedBatchProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompressedBatchProof) XXX_Merge

func (m *CompressedBatchProof) XXX_Merge(src proto.Message)

func (*CompressedBatchProof) XXX_Size

func (m *CompressedBatchProof) XXX_Size() int

func (*CompressedBatchProof) XXX_Unmarshal

func (m *CompressedBatchProof) XXX_Unmarshal(b []byte) error

type CompressedExistenceProof

type CompressedExistenceProof 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"`
	Leaf  *LeafOp `protobuf:"bytes,3,opt,name=leaf,proto3" json:"leaf,omitempty"`
	// these are indexes into the lookup_inners table in CompressedBatchProof
	Path []int32 `protobuf:"varint,4,rep,packed,name=path,proto3" json:"path,omitempty"`
}

func (*CompressedExistenceProof) Descriptor

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

func (*CompressedExistenceProof) GetKey

func (m *CompressedExistenceProof) GetKey() []byte

func (*CompressedExistenceProof) GetLeaf

func (m *CompressedExistenceProof) GetLeaf() *LeafOp

func (*CompressedExistenceProof) GetPath

func (m *CompressedExistenceProof) GetPath() []int32

func (*CompressedExistenceProof) GetValue

func (m *CompressedExistenceProof) GetValue() []byte

func (*CompressedExistenceProof) Marshal

func (m *CompressedExistenceProof) Marshal() (dAtA []byte, err error)

func (*CompressedExistenceProof) MarshalTo

func (m *CompressedExistenceProof) MarshalTo(dAtA []byte) (int, error)

func (*CompressedExistenceProof) MarshalToSizedBuffer

func (m *CompressedExistenceProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedExistenceProof) ProtoMessage

func (*CompressedExistenceProof) ProtoMessage()

func (*CompressedExistenceProof) Reset

func (m *CompressedExistenceProof) Reset()

func (*CompressedExistenceProof) Size

func (m *CompressedExistenceProof) Size() (n int)

func (*CompressedExistenceProof) String

func (m *CompressedExistenceProof) String() string

func (*CompressedExistenceProof) Unmarshal

func (m *CompressedExistenceProof) Unmarshal(dAtA []byte) error

func (*CompressedExistenceProof) XXX_DiscardUnknown

func (m *CompressedExistenceProof) XXX_DiscardUnknown()

func (*CompressedExistenceProof) XXX_Marshal

func (m *CompressedExistenceProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompressedExistenceProof) XXX_Merge

func (m *CompressedExistenceProof) XXX_Merge(src proto.Message)

func (*CompressedExistenceProof) XXX_Size

func (m *CompressedExistenceProof) XXX_Size() int

func (*CompressedExistenceProof) XXX_Unmarshal

func (m *CompressedExistenceProof) XXX_Unmarshal(b []byte) error

type CompressedNonExistenceProof

type CompressedNonExistenceProof struct {
	Key   []byte                    `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Left  *CompressedExistenceProof `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"`
	Right *CompressedExistenceProof `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"`
}

func (*CompressedNonExistenceProof) Descriptor

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

func (*CompressedNonExistenceProof) GetKey

func (m *CompressedNonExistenceProof) GetKey() []byte

func (*CompressedNonExistenceProof) GetLeft

func (*CompressedNonExistenceProof) GetRight

func (*CompressedNonExistenceProof) Marshal

func (m *CompressedNonExistenceProof) Marshal() (dAtA []byte, err error)

func (*CompressedNonExistenceProof) MarshalTo

func (m *CompressedNonExistenceProof) MarshalTo(dAtA []byte) (int, error)

func (*CompressedNonExistenceProof) MarshalToSizedBuffer

func (m *CompressedNonExistenceProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CompressedNonExistenceProof) ProtoMessage

func (*CompressedNonExistenceProof) ProtoMessage()

func (*CompressedNonExistenceProof) Reset

func (m *CompressedNonExistenceProof) Reset()

func (*CompressedNonExistenceProof) Size

func (m *CompressedNonExistenceProof) Size() (n int)

func (*CompressedNonExistenceProof) String

func (m *CompressedNonExistenceProof) String() string

func (*CompressedNonExistenceProof) Unmarshal

func (m *CompressedNonExistenceProof) Unmarshal(dAtA []byte) error

func (*CompressedNonExistenceProof) XXX_DiscardUnknown

func (m *CompressedNonExistenceProof) XXX_DiscardUnknown()

func (*CompressedNonExistenceProof) XXX_Marshal

func (m *CompressedNonExistenceProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompressedNonExistenceProof) XXX_Merge

func (m *CompressedNonExistenceProof) XXX_Merge(src proto.Message)

func (*CompressedNonExistenceProof) XXX_Size

func (m *CompressedNonExistenceProof) XXX_Size() int

func (*CompressedNonExistenceProof) XXX_Unmarshal

func (m *CompressedNonExistenceProof) XXX_Unmarshal(b []byte) error

type ConnectionEnd

type ConnectionEnd struct {
	// client associated with this connection.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// IBC version which can be utilised to determine encodings or protocols for
	// channels or packets utilising this connection.
	Versions []*Version `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// current state of the connection end.
	State ConnectionEnd_State `protobuf:"varint,3,opt,name=state,proto3,enum=icon.proto.core.connection.ConnectionEnd_State" json:"state,omitempty"`
	// counterparty chain associated with this connection.
	Counterparty *Counterparty `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"`
	// delay period that must pass before a consensus state can be used for
	// packet-verification NOTE: delay period logic is only implemented by some
	// clients.
	DelayPeriod uint64 `protobuf:"varint,5,opt,name=delay_period,json=delayPeriod,proto3" json:"delay_period,omitempty"`
}

ConnectionEnd defines a stateful object on a chain connected to another separate one. NOTE: there must only be 2 defined ConnectionEnds to establish a connection between two chains.

func (*ConnectionEnd) Descriptor

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

func (*ConnectionEnd) GetClientId

func (m *ConnectionEnd) GetClientId() string

func (*ConnectionEnd) GetCounterparty

func (m *ConnectionEnd) GetCounterparty() *Counterparty

func (*ConnectionEnd) GetDelayPeriod

func (m *ConnectionEnd) GetDelayPeriod() uint64

func (*ConnectionEnd) GetState

func (m *ConnectionEnd) GetState() ConnectionEnd_State

func (*ConnectionEnd) GetVersions

func (m *ConnectionEnd) GetVersions() []*Version

func (*ConnectionEnd) Marshal

func (m *ConnectionEnd) Marshal() (dAtA []byte, err error)

func (*ConnectionEnd) MarshalTo

func (m *ConnectionEnd) MarshalTo(dAtA []byte) (int, error)

func (*ConnectionEnd) MarshalToSizedBuffer

func (m *ConnectionEnd) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConnectionEnd) ProtoMessage

func (*ConnectionEnd) ProtoMessage()

func (*ConnectionEnd) Reset

func (m *ConnectionEnd) Reset()

func (*ConnectionEnd) Size

func (m *ConnectionEnd) Size() (n int)

func (*ConnectionEnd) String

func (m *ConnectionEnd) String() string

func (*ConnectionEnd) Unmarshal

func (m *ConnectionEnd) Unmarshal(dAtA []byte) error

func (*ConnectionEnd) XXX_DiscardUnknown

func (m *ConnectionEnd) XXX_DiscardUnknown()

func (*ConnectionEnd) XXX_Marshal

func (m *ConnectionEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionEnd) XXX_Merge

func (m *ConnectionEnd) XXX_Merge(src proto.Message)

func (*ConnectionEnd) XXX_Size

func (m *ConnectionEnd) XXX_Size() int

func (*ConnectionEnd) XXX_Unmarshal

func (m *ConnectionEnd) XXX_Unmarshal(b []byte) error

type ConnectionEnd_State

type ConnectionEnd_State int32

State defines if a connection is in one of the following states: INIT, TRYOPEN, OPEN or UNINITIALIZED.

const (
	// Default State
	ConnectionEnd_STATE_UNINITIALIZED_UNSPECIFIED ConnectionEnd_State = 0
	// A connection end has just started the opening handshake.
	ConnectionEnd_STATE_INIT ConnectionEnd_State = 1
	// A connection end has acknowledged the handshake step on the counterparty
	// chain.
	ConnectionEnd_STATE_TRYOPEN ConnectionEnd_State = 2
	// A connection end has completed the handshake.
	ConnectionEnd_STATE_OPEN ConnectionEnd_State = 3
)

func (ConnectionEnd_State) EnumDescriptor

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

func (ConnectionEnd_State) String

func (x ConnectionEnd_State) String() string

type ConsensusState

type ConsensusState struct {
	MessageRoot          []byte `protobuf:"bytes,1,opt,name=message_root,json=messageRoot,proto3" json:"message_root,omitempty"`
	NextProofContextHash []byte `protobuf:"bytes,2,opt,name=next_proof_context_hash,json=nextProofContextHash,proto3" json:"next_proof_context_hash,omitempty"`
}

func (*ConsensusState) ClientType

func (m *ConsensusState) ClientType() string

func (*ConsensusState) Descriptor

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

func (*ConsensusState) GetMessageRoot

func (m *ConsensusState) GetMessageRoot() []byte

func (*ConsensusState) GetNextProofContextHash

func (m *ConsensusState) GetNextProofContextHash() []byte

func (*ConsensusState) GetTimestamp

func (m *ConsensusState) GetTimestamp() uint64

func (*ConsensusState) Marshal

func (m *ConsensusState) Marshal() (dAtA []byte, err error)

func (*ConsensusState) MarshalTo

func (m *ConsensusState) MarshalTo(dAtA []byte) (int, 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 (m *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 Counterparty

type Counterparty struct {
	// identifies the client on the counterparty chain associated with a given
	// connection.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// identifies the connection end on the counterparty chain associated with a
	// given connection.
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	// commitment merkle prefix of the counterparty chain.
	Prefix *MerklePrefix `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
}

Counterparty defines the counterparty chain associated with a connection end.

func (*Counterparty) Descriptor

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

func (*Counterparty) GetClientId

func (m *Counterparty) GetClientId() string

func (*Counterparty) GetConnectionId

func (m *Counterparty) GetConnectionId() string

func (*Counterparty) GetPrefix

func (m *Counterparty) GetPrefix() *MerklePrefix

func (*Counterparty) Marshal

func (m *Counterparty) Marshal() (dAtA []byte, err error)

func (*Counterparty) MarshalTo

func (m *Counterparty) MarshalTo(dAtA []byte) (int, error)

func (*Counterparty) MarshalToSizedBuffer

func (m *Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Counterparty) ProtoMessage

func (*Counterparty) ProtoMessage()

func (*Counterparty) Reset

func (m *Counterparty) Reset()

func (*Counterparty) Size

func (m *Counterparty) Size() (n int)

func (*Counterparty) String

func (m *Counterparty) String() string

func (*Counterparty) Unmarshal

func (m *Counterparty) Unmarshal(dAtA []byte) error

func (*Counterparty) XXX_DiscardUnknown

func (m *Counterparty) XXX_DiscardUnknown()

func (*Counterparty) XXX_Marshal

func (m *Counterparty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Counterparty) XXX_Merge

func (m *Counterparty) XXX_Merge(src proto.Message)

func (*Counterparty) XXX_Size

func (m *Counterparty) XXX_Size() int

func (*Counterparty) XXX_Unmarshal

func (m *Counterparty) XXX_Unmarshal(b []byte) error

type ExistenceProof

type ExistenceProof 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"`
	Leaf  *LeafOp    `protobuf:"bytes,3,opt,name=leaf,proto3" json:"leaf,omitempty"`
	Path  []*InnerOp `protobuf:"bytes,4,rep,name=path,proto3" json:"path,omitempty"`
}

ExistenceProof takes a key and a value and a set of steps to perform on it. The result of peforming all these steps will provide a "root hash", which can be compared to the value in a header.

Since it is computationally infeasible to produce a hash collission for any of the used cryptographic hash functions, if someone can provide a series of operations to transform a given key and value into a root hash that matches some trusted root, these key and values must be in the referenced merkle tree.

The only possible issue is maliablity in LeafOp, such as providing extra prefix data, which should be controlled by a spec. Eg. with lengthOp as NONE, prefix = FOO, key = BAR, value = CHOICE and prefix = F, key = OOBAR, value = CHOICE would produce the same value.

With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field in the ProofSpec is valuable to prevent this mutability. And why all trees should length-prefix the data before hashing it.

func (*ExistenceProof) Descriptor

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

func (*ExistenceProof) GetKey

func (m *ExistenceProof) GetKey() []byte

func (*ExistenceProof) GetLeaf

func (m *ExistenceProof) GetLeaf() *LeafOp

func (*ExistenceProof) GetPath

func (m *ExistenceProof) GetPath() []*InnerOp

func (*ExistenceProof) GetValue

func (m *ExistenceProof) GetValue() []byte

func (*ExistenceProof) Marshal

func (m *ExistenceProof) Marshal() (dAtA []byte, err error)

func (*ExistenceProof) MarshalTo

func (m *ExistenceProof) MarshalTo(dAtA []byte) (int, error)

func (*ExistenceProof) MarshalToSizedBuffer

func (m *ExistenceProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExistenceProof) ProtoMessage

func (*ExistenceProof) ProtoMessage()

func (*ExistenceProof) Reset

func (m *ExistenceProof) Reset()

func (*ExistenceProof) Size

func (m *ExistenceProof) Size() (n int)

func (*ExistenceProof) String

func (m *ExistenceProof) String() string

func (*ExistenceProof) Unmarshal

func (m *ExistenceProof) Unmarshal(dAtA []byte) error

func (*ExistenceProof) XXX_DiscardUnknown

func (m *ExistenceProof) XXX_DiscardUnknown()

func (*ExistenceProof) XXX_Marshal

func (m *ExistenceProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExistenceProof) XXX_Merge

func (m *ExistenceProof) XXX_Merge(src proto.Message)

func (*ExistenceProof) XXX_Size

func (m *ExistenceProof) XXX_Size() int

func (*ExistenceProof) XXX_Unmarshal

func (m *ExistenceProof) XXX_Unmarshal(b []byte) error

type HashOp

type HashOp int32
const (
	// NO_HASH is the default if no data passed. Note this is an illegal argument some places.
	HashOp_NO_HASH    HashOp = 0
	HashOp_SHA256     HashOp = 1
	HashOp_SHA512     HashOp = 2
	HashOp_KECCAK     HashOp = 3
	HashOp_RIPEMD160  HashOp = 4
	HashOp_BITCOIN    HashOp = 5
	HashOp_SHA512_256 HashOp = 6
)

func (HashOp) EnumDescriptor

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

func (HashOp) String

func (x HashOp) 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"`
}

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

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

func (*Height) GetRevisionHeight

func (m *Height) GetRevisionHeight() uint64

func (*Height) GetRevisionNumber

func (m *Height) GetRevisionNumber() uint64

func (*Height) Marshal

func (m *Height) Marshal() (dAtA []byte, err error)

func (*Height) MarshalTo

func (m *Height) MarshalTo(dAtA []byte) (int, error)

func (*Height) MarshalToSizedBuffer

func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) Size

func (m *Height) Size() (n int)

func (*Height) String

func (m *Height) String() string

func (*Height) Unmarshal

func (m *Height) Unmarshal(dAtA []byte) error

func (*Height) XXX_DiscardUnknown

func (m *Height) XXX_DiscardUnknown()

func (*Height) XXX_Marshal

func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Height) XXX_Merge

func (m *Height) XXX_Merge(src proto.Message)

func (*Height) XXX_Size

func (m *Height) XXX_Size() int

func (*Height) XXX_Unmarshal

func (m *Height) XXX_Unmarshal(b []byte) error

type InnerOp

type InnerOp struct {
	Hash   HashOp `protobuf:"varint,1,opt,name=hash,proto3,enum=icon.proto.core.commitment.HashOp" json:"hash,omitempty"`
	Prefix []byte `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Suffix []byte `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
}

InnerOp represents a merkle-proof step that is not a leaf. It represents concatenating two children and hashing them to provide the next result.

The result of the previous step is passed in, so the signature of this op is: innerOp(child) -> output

The result of applying InnerOp should be: output = op.hash(op.prefix || child || op.suffix)

where the || operator is concatenation of binary data, and child is the result of hashing all the tree below this step.

Any special data, like prepending child with the length, or prepending the entire operation with some value to differentiate from leaf nodes, should be included in prefix and suffix. If either of prefix or suffix is empty, we just treat it as an empty string

func (*InnerOp) Descriptor

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

func (*InnerOp) GetHash

func (m *InnerOp) GetHash() HashOp

func (*InnerOp) GetPrefix

func (m *InnerOp) GetPrefix() []byte

func (*InnerOp) GetSuffix

func (m *InnerOp) GetSuffix() []byte

func (*InnerOp) Marshal

func (m *InnerOp) Marshal() (dAtA []byte, err error)

func (*InnerOp) MarshalTo

func (m *InnerOp) MarshalTo(dAtA []byte) (int, error)

func (*InnerOp) MarshalToSizedBuffer

func (m *InnerOp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InnerOp) ProtoMessage

func (*InnerOp) ProtoMessage()

func (*InnerOp) Reset

func (m *InnerOp) Reset()

func (*InnerOp) Size

func (m *InnerOp) Size() (n int)

func (*InnerOp) String

func (m *InnerOp) String() string

func (*InnerOp) Unmarshal

func (m *InnerOp) Unmarshal(dAtA []byte) error

func (*InnerOp) XXX_DiscardUnknown

func (m *InnerOp) XXX_DiscardUnknown()

func (*InnerOp) XXX_Marshal

func (m *InnerOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InnerOp) XXX_Merge

func (m *InnerOp) XXX_Merge(src proto.Message)

func (*InnerOp) XXX_Size

func (m *InnerOp) XXX_Size() int

func (*InnerOp) XXX_Unmarshal

func (m *InnerOp) XXX_Unmarshal(b []byte) error

type InnerSpec

type InnerSpec struct {
	// Child order is the ordering of the children node, must count from 0
	// iavl tree is [0, 1] (left then right)
	// merk is [0, 2, 1] (left, right, here)
	ChildOrder      []int32 `protobuf:"varint,1,rep,packed,name=child_order,json=childOrder,proto3" json:"child_order,omitempty"`
	ChildSize       int32   `protobuf:"varint,2,opt,name=child_size,json=childSize,proto3" json:"child_size,omitempty"`
	MinPrefixLength int32   `protobuf:"varint,3,opt,name=min_prefix_length,json=minPrefixLength,proto3" json:"min_prefix_length,omitempty"`
	MaxPrefixLength int32   `protobuf:"varint,4,opt,name=max_prefix_length,json=maxPrefixLength,proto3" json:"max_prefix_length,omitempty"`
	// empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
	EmptyChild []byte `protobuf:"bytes,5,opt,name=empty_child,json=emptyChild,proto3" json:"empty_child,omitempty"`
	// hash is the algorithm that must be used for each InnerOp
	Hash HashOp `protobuf:"varint,6,opt,name=hash,proto3,enum=icon.proto.core.commitment.HashOp" json:"hash,omitempty"`
}

InnerSpec contains all store-specific structure info to determine if two proofs from a given store are neighbors.

This enables:

isLeftMost(spec: InnerSpec, op: InnerOp) isRightMost(spec: InnerSpec, op: InnerOp) isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)

func (*InnerSpec) Descriptor

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

func (*InnerSpec) GetChildOrder

func (m *InnerSpec) GetChildOrder() []int32

func (*InnerSpec) GetChildSize

func (m *InnerSpec) GetChildSize() int32

func (*InnerSpec) GetEmptyChild

func (m *InnerSpec) GetEmptyChild() []byte

func (*InnerSpec) GetHash

func (m *InnerSpec) GetHash() HashOp

func (*InnerSpec) GetMaxPrefixLength

func (m *InnerSpec) GetMaxPrefixLength() int32

func (*InnerSpec) GetMinPrefixLength

func (m *InnerSpec) GetMinPrefixLength() int32

func (*InnerSpec) Marshal

func (m *InnerSpec) Marshal() (dAtA []byte, err error)

func (*InnerSpec) MarshalTo

func (m *InnerSpec) MarshalTo(dAtA []byte) (int, error)

func (*InnerSpec) MarshalToSizedBuffer

func (m *InnerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InnerSpec) ProtoMessage

func (*InnerSpec) ProtoMessage()

func (*InnerSpec) Reset

func (m *InnerSpec) Reset()

func (*InnerSpec) Size

func (m *InnerSpec) Size() (n int)

func (*InnerSpec) String

func (m *InnerSpec) String() string

func (*InnerSpec) Unmarshal

func (m *InnerSpec) Unmarshal(dAtA []byte) error

func (*InnerSpec) XXX_DiscardUnknown

func (m *InnerSpec) XXX_DiscardUnknown()

func (*InnerSpec) XXX_Marshal

func (m *InnerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InnerSpec) XXX_Merge

func (m *InnerSpec) XXX_Merge(src proto.Message)

func (*InnerSpec) XXX_Size

func (m *InnerSpec) XXX_Size() int

func (*InnerSpec) XXX_Unmarshal

func (m *InnerSpec) XXX_Unmarshal(b []byte) error

type LeafOp

type LeafOp struct {
	Hash         HashOp   `protobuf:"varint,1,opt,name=hash,proto3,enum=icon.proto.core.commitment.HashOp" json:"hash,omitempty"`
	PrehashKey   HashOp   `` /* 131-byte string literal not displayed */
	PrehashValue HashOp   `` /* 137-byte string literal not displayed */
	Length       LengthOp `protobuf:"varint,4,opt,name=length,proto3,enum=icon.proto.core.commitment.LengthOp" json:"length,omitempty"`
	// prefix is a fixed bytes that may optionally be included at the beginning to differentiate
	// a leaf node from an inner node.
	Prefix []byte `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"`
}

LeafOp represents the raw key-value data we wish to prove, and must be flexible to represent the internal transformation from the original key-value pairs into the basis hash, for many existing merkle trees.

key and value are passed in. So that the signature of this operation is: leafOp(key, value) -> output

To process this, first prehash the keys and values if needed (ANY means no hash in this case): hkey = prehashKey(key) hvalue = prehashValue(value)

Then combine the bytes, and hash it output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)

func (*LeafOp) Descriptor

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

func (*LeafOp) GetHash

func (m *LeafOp) GetHash() HashOp

func (*LeafOp) GetLength

func (m *LeafOp) GetLength() LengthOp

func (*LeafOp) GetPrefix

func (m *LeafOp) GetPrefix() []byte

func (*LeafOp) GetPrehashKey

func (m *LeafOp) GetPrehashKey() HashOp

func (*LeafOp) GetPrehashValue

func (m *LeafOp) GetPrehashValue() HashOp

func (*LeafOp) Marshal

func (m *LeafOp) Marshal() (dAtA []byte, err error)

func (*LeafOp) MarshalTo

func (m *LeafOp) MarshalTo(dAtA []byte) (int, error)

func (*LeafOp) MarshalToSizedBuffer

func (m *LeafOp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LeafOp) ProtoMessage

func (*LeafOp) ProtoMessage()

func (*LeafOp) Reset

func (m *LeafOp) Reset()

func (*LeafOp) Size

func (m *LeafOp) Size() (n int)

func (*LeafOp) String

func (m *LeafOp) String() string

func (*LeafOp) Unmarshal

func (m *LeafOp) Unmarshal(dAtA []byte) error

func (*LeafOp) XXX_DiscardUnknown

func (m *LeafOp) XXX_DiscardUnknown()

func (*LeafOp) XXX_Marshal

func (m *LeafOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeafOp) XXX_Merge

func (m *LeafOp) XXX_Merge(src proto.Message)

func (*LeafOp) XXX_Size

func (m *LeafOp) XXX_Size() int

func (*LeafOp) XXX_Unmarshal

func (m *LeafOp) XXX_Unmarshal(b []byte) error

type LengthOp

type LengthOp int32

LengthOp defines how to process the key and value of the LeafOp to include length information. After encoding the length with the given algorithm, the length will be prepended to the key and value bytes. (Each one with it's own encoded length)

const (
	// NO_PREFIX don't include any length info
	LengthOp_NO_PREFIX LengthOp = 0
	// VAR_PROTO uses protobuf (and go-amino) varint encoding of the length
	LengthOp_VAR_PROTO LengthOp = 1
	// VAR_RLP uses rlp int encoding of the length
	LengthOp_VAR_RLP LengthOp = 2
	// FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer
	LengthOp_FIXED32_BIG LengthOp = 3
	// FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer
	LengthOp_FIXED32_LITTLE LengthOp = 4
	// FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer
	LengthOp_FIXED64_BIG LengthOp = 5
	// FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer
	LengthOp_FIXED64_LITTLE LengthOp = 6
	// REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output)
	LengthOp_REQUIRE_32_BYTES LengthOp = 7
	// REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output)
	LengthOp_REQUIRE_64_BYTES LengthOp = 8
)

func (LengthOp) EnumDescriptor

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

func (LengthOp) String

func (x LengthOp) String() string

type MerkleNode

type MerkleNode struct {
	Dir   int32  `protobuf:"varint,1,opt,name=Dir,proto3" json:"Dir,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*MerkleNode) Descriptor

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

func (*MerkleNode) GetDir

func (m *MerkleNode) GetDir() int32

func (*MerkleNode) GetValue

func (m *MerkleNode) GetValue() []byte

func (*MerkleNode) Marshal

func (m *MerkleNode) Marshal() (dAtA []byte, err error)

func (*MerkleNode) MarshalTo

func (m *MerkleNode) MarshalTo(dAtA []byte) (int, error)

func (*MerkleNode) MarshalToSizedBuffer

func (m *MerkleNode) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerkleNode) ProtoMessage

func (*MerkleNode) ProtoMessage()

func (*MerkleNode) Reset

func (m *MerkleNode) Reset()

func (*MerkleNode) Size

func (m *MerkleNode) Size() (n int)

func (*MerkleNode) String

func (m *MerkleNode) String() string

func (*MerkleNode) Unmarshal

func (m *MerkleNode) Unmarshal(dAtA []byte) error

func (*MerkleNode) XXX_DiscardUnknown

func (m *MerkleNode) XXX_DiscardUnknown()

func (*MerkleNode) XXX_Marshal

func (m *MerkleNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerkleNode) XXX_Merge

func (m *MerkleNode) XXX_Merge(src proto.Message)

func (*MerkleNode) XXX_Size

func (m *MerkleNode) XXX_Size() int

func (*MerkleNode) XXX_Unmarshal

func (m *MerkleNode) XXX_Unmarshal(b []byte) error

type MerklePath

type MerklePath struct {
	KeyPath []string `protobuf:"bytes,1,rep,name=key_path,json=keyPath,proto3" json:"key_path,omitempty"`
}

MerklePath is the path used to verify commitment proofs, which can be an arbitrary structured object (defined by a commitment type). MerklePath is represented from root-to-leaf

func (*MerklePath) Descriptor

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

func (*MerklePath) GetKeyPath

func (m *MerklePath) GetKeyPath() []string

func (*MerklePath) Marshal

func (m *MerklePath) Marshal() (dAtA []byte, err error)

func (*MerklePath) MarshalTo

func (m *MerklePath) MarshalTo(dAtA []byte) (int, error)

func (*MerklePath) MarshalToSizedBuffer

func (m *MerklePath) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerklePath) ProtoMessage

func (*MerklePath) ProtoMessage()

func (*MerklePath) Reset

func (m *MerklePath) Reset()

func (*MerklePath) Size

func (m *MerklePath) Size() (n int)

func (*MerklePath) String

func (m *MerklePath) String() string

func (*MerklePath) Unmarshal

func (m *MerklePath) Unmarshal(dAtA []byte) error

func (*MerklePath) XXX_DiscardUnknown

func (m *MerklePath) XXX_DiscardUnknown()

func (*MerklePath) XXX_Marshal

func (m *MerklePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerklePath) XXX_Merge

func (m *MerklePath) XXX_Merge(src proto.Message)

func (*MerklePath) XXX_Size

func (m *MerklePath) XXX_Size() int

func (*MerklePath) XXX_Unmarshal

func (m *MerklePath) XXX_Unmarshal(b []byte) error

type MerklePrefix

type MerklePrefix struct {
	KeyPrefix []byte `protobuf:"bytes,1,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"`
}

MerklePrefix is merkle path prefixed to the key. The constructed key from the Path and the key will be append(Path.KeyPath, append(Path.KeyPrefix, key...))

func (*MerklePrefix) Descriptor

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

func (*MerklePrefix) GetKeyPrefix

func (m *MerklePrefix) GetKeyPrefix() []byte

func (*MerklePrefix) Marshal

func (m *MerklePrefix) Marshal() (dAtA []byte, err error)

func (*MerklePrefix) MarshalTo

func (m *MerklePrefix) MarshalTo(dAtA []byte) (int, error)

func (*MerklePrefix) MarshalToSizedBuffer

func (m *MerklePrefix) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerklePrefix) ProtoMessage

func (*MerklePrefix) ProtoMessage()

func (*MerklePrefix) Reset

func (m *MerklePrefix) Reset()

func (*MerklePrefix) Size

func (m *MerklePrefix) Size() (n int)

func (*MerklePrefix) String

func (m *MerklePrefix) String() string

func (*MerklePrefix) Unmarshal

func (m *MerklePrefix) Unmarshal(dAtA []byte) error

func (*MerklePrefix) XXX_DiscardUnknown

func (m *MerklePrefix) XXX_DiscardUnknown()

func (*MerklePrefix) XXX_Marshal

func (m *MerklePrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerklePrefix) XXX_Merge

func (m *MerklePrefix) XXX_Merge(src proto.Message)

func (*MerklePrefix) XXX_Size

func (m *MerklePrefix) XXX_Size() int

func (*MerklePrefix) XXX_Unmarshal

func (m *MerklePrefix) XXX_Unmarshal(b []byte) error

type MerkleProof

type MerkleProof struct {
	Proofs []*CommitmentProof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
}

MerkleProof is a wrapper type over a chain of CommitmentProofs. It demonstrates membership or non-membership for an element or set of elements, verifiable in conjunction with a known commitment root. Proofs should be succinct. MerkleProofs are ordered from leaf-to-root

func (*MerkleProof) Descriptor

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

func (*MerkleProof) GetProofs

func (m *MerkleProof) GetProofs() []*CommitmentProof

func (*MerkleProof) Marshal

func (m *MerkleProof) Marshal() (dAtA []byte, err error)

func (*MerkleProof) MarshalTo

func (m *MerkleProof) MarshalTo(dAtA []byte) (int, error)

func (*MerkleProof) MarshalToSizedBuffer

func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerkleProof) ProtoMessage

func (*MerkleProof) ProtoMessage()

func (*MerkleProof) Reset

func (m *MerkleProof) Reset()

func (*MerkleProof) Size

func (m *MerkleProof) Size() (n int)

func (*MerkleProof) String

func (m *MerkleProof) String() string

func (*MerkleProof) Unmarshal

func (m *MerkleProof) Unmarshal(dAtA []byte) error

func (*MerkleProof) XXX_DiscardUnknown

func (m *MerkleProof) XXX_DiscardUnknown()

func (*MerkleProof) XXX_Marshal

func (m *MerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerkleProof) XXX_Merge

func (m *MerkleProof) XXX_Merge(src proto.Message)

func (*MerkleProof) XXX_Size

func (m *MerkleProof) XXX_Size() int

func (*MerkleProof) XXX_Unmarshal

func (m *MerkleProof) XXX_Unmarshal(b []byte) error

type MerkleProofs

type MerkleProofs struct {
	Proofs []*MerkleNode `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
}

func (*MerkleProofs) Descriptor

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

func (*MerkleProofs) GetProofs

func (m *MerkleProofs) GetProofs() []*MerkleNode

func (*MerkleProofs) Marshal

func (m *MerkleProofs) Marshal() (dAtA []byte, err error)

func (*MerkleProofs) MarshalTo

func (m *MerkleProofs) MarshalTo(dAtA []byte) (int, error)

func (*MerkleProofs) MarshalToSizedBuffer

func (m *MerkleProofs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerkleProofs) ProtoMessage

func (*MerkleProofs) ProtoMessage()

func (*MerkleProofs) Reset

func (m *MerkleProofs) Reset()

func (*MerkleProofs) Size

func (m *MerkleProofs) Size() (n int)

func (*MerkleProofs) String

func (m *MerkleProofs) String() string

func (*MerkleProofs) Unmarshal

func (m *MerkleProofs) Unmarshal(dAtA []byte) error

func (*MerkleProofs) XXX_DiscardUnknown

func (m *MerkleProofs) XXX_DiscardUnknown()

func (*MerkleProofs) XXX_Marshal

func (m *MerkleProofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerkleProofs) XXX_Merge

func (m *MerkleProofs) XXX_Merge(src proto.Message)

func (*MerkleProofs) XXX_Size

func (m *MerkleProofs) XXX_Size() int

func (*MerkleProofs) XXX_Unmarshal

func (m *MerkleProofs) XXX_Unmarshal(b []byte) error

type MerkleRoot

type MerkleRoot struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

MerkleRoot defines a merkle root hash. In the Cosmos SDK, the AppHash of a block header becomes the root.

func (*MerkleRoot) Descriptor

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

func (*MerkleRoot) Marshal

func (m *MerkleRoot) Marshal() (dAtA []byte, err error)

func (*MerkleRoot) MarshalTo

func (m *MerkleRoot) MarshalTo(dAtA []byte) (int, error)

func (*MerkleRoot) MarshalToSizedBuffer

func (m *MerkleRoot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MerkleRoot) ProtoMessage

func (*MerkleRoot) ProtoMessage()

func (*MerkleRoot) Reset

func (m *MerkleRoot) Reset()

func (*MerkleRoot) Size

func (m *MerkleRoot) Size() (n int)

func (*MerkleRoot) String

func (m *MerkleRoot) String() string

func (*MerkleRoot) Unmarshal

func (m *MerkleRoot) Unmarshal(dAtA []byte) error

func (*MerkleRoot) XXX_DiscardUnknown

func (m *MerkleRoot) XXX_DiscardUnknown()

func (*MerkleRoot) XXX_Marshal

func (m *MerkleRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MerkleRoot) XXX_Merge

func (m *MerkleRoot) XXX_Merge(src proto.Message)

func (*MerkleRoot) XXX_Size

func (m *MerkleRoot) XXX_Size() int

func (*MerkleRoot) XXX_Unmarshal

func (m *MerkleRoot) XXX_Unmarshal(b []byte) error

type Misbehaviour

type Misbehaviour struct {
	ClientId string       `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	Header_1 *BlockUpdate `protobuf:"bytes,2,opt,name=header_1,json=header1,proto3" json:"header_1,omitempty"`
	Header_2 *BlockUpdate `protobuf:"bytes,3,opt,name=header_2,json=header2,proto3" json:"header_2,omitempty"`
}

func (*Misbehaviour) Descriptor

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

func (*Misbehaviour) GetClientId

func (m *Misbehaviour) GetClientId() string

func (*Misbehaviour) GetHeader_1

func (m *Misbehaviour) GetHeader_1() *BlockUpdate

func (*Misbehaviour) GetHeader_2

func (m *Misbehaviour) GetHeader_2() *BlockUpdate

func (*Misbehaviour) Marshal

func (m *Misbehaviour) Marshal() (dAtA []byte, err error)

func (*Misbehaviour) MarshalTo

func (m *Misbehaviour) MarshalTo(dAtA []byte) (int, 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 NonExistenceProof

type NonExistenceProof struct {
	Key   []byte          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Left  *ExistenceProof `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"`
	Right *ExistenceProof `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"`
}

NonExistenceProof takes a proof of two neighbors, one left of the desired key, one right of the desired key. If both proofs are valid AND they are neighbors, then there is no valid proof for the given key.

func (*NonExistenceProof) Descriptor

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

func (*NonExistenceProof) GetKey

func (m *NonExistenceProof) GetKey() []byte

func (*NonExistenceProof) GetLeft

func (m *NonExistenceProof) GetLeft() *ExistenceProof

func (*NonExistenceProof) GetRight

func (m *NonExistenceProof) GetRight() *ExistenceProof

func (*NonExistenceProof) Marshal

func (m *NonExistenceProof) Marshal() (dAtA []byte, err error)

func (*NonExistenceProof) MarshalTo

func (m *NonExistenceProof) MarshalTo(dAtA []byte) (int, error)

func (*NonExistenceProof) MarshalToSizedBuffer

func (m *NonExistenceProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NonExistenceProof) ProtoMessage

func (*NonExistenceProof) ProtoMessage()

func (*NonExistenceProof) Reset

func (m *NonExistenceProof) Reset()

func (*NonExistenceProof) Size

func (m *NonExistenceProof) Size() (n int)

func (*NonExistenceProof) String

func (m *NonExistenceProof) String() string

func (*NonExistenceProof) Unmarshal

func (m *NonExistenceProof) Unmarshal(dAtA []byte) error

func (*NonExistenceProof) XXX_DiscardUnknown

func (m *NonExistenceProof) XXX_DiscardUnknown()

func (*NonExistenceProof) XXX_Marshal

func (m *NonExistenceProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NonExistenceProof) XXX_Merge

func (m *NonExistenceProof) XXX_Merge(src proto.Message)

func (*NonExistenceProof) XXX_Size

func (m *NonExistenceProof) XXX_Size() int

func (*NonExistenceProof) XXX_Unmarshal

func (m *NonExistenceProof) XXX_Unmarshal(b []byte) error

type Packet

type Packet struct {
	// number corresponds to the order of sends and receives, where a Packet
	// with an earlier sequence number must be sent and received before a Packet
	// with a later sequence number.
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// identifies the port on the sending chain.
	SourcePort string `protobuf:"bytes,2,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"`
	// identifies the channel end on the sending chain.
	SourceChannel string `protobuf:"bytes,3,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
	// identifies the port on the receiving chain.
	DestinationPort string `protobuf:"bytes,4,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
	// identifies the channel end on the receiving chain.
	DestinationChannel string `protobuf:"bytes,5,opt,name=destination_channel,json=destinationChannel,proto3" json:"destination_channel,omitempty"`
	// actual opaque bytes transferred directly to the application module
	Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// block height after which the packet times out
	TimeoutHeight *Height `protobuf:"bytes,7,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
	// block timestamp (in nanoseconds) after which the packet times out
	TimeoutTimestamp uint64 `protobuf:"varint,8,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"`
}

Packet defines a type that carries data across different chains through IBC

func (*Packet) Descriptor

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

func (*Packet) GetData

func (m *Packet) GetData() []byte

func (*Packet) GetDestinationChannel

func (m *Packet) GetDestinationChannel() string

func (*Packet) GetDestinationPort

func (m *Packet) GetDestinationPort() string

func (*Packet) GetSequence

func (m *Packet) GetSequence() uint64

func (*Packet) GetSourceChannel

func (m *Packet) GetSourceChannel() string

func (*Packet) GetSourcePort

func (m *Packet) GetSourcePort() string

func (*Packet) GetTimeoutHeight

func (m *Packet) GetTimeoutHeight() *Height

func (*Packet) GetTimeoutTimestamp

func (m *Packet) GetTimeoutTimestamp() uint64

func (*Packet) Marshal

func (m *Packet) Marshal() (dAtA []byte, err error)

func (*Packet) MarshalTo

func (m *Packet) MarshalTo(dAtA []byte) (int, error)

func (*Packet) MarshalToSizedBuffer

func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) Size

func (m *Packet) Size() (n int)

func (*Packet) String

func (m *Packet) String() string

func (*Packet) Unmarshal

func (m *Packet) Unmarshal(dAtA []byte) error

func (*Packet) XXX_DiscardUnknown

func (m *Packet) XXX_DiscardUnknown()

func (*Packet) XXX_Marshal

func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Packet) XXX_Merge

func (m *Packet) XXX_Merge(src proto.Message)

func (*Packet) XXX_Size

func (m *Packet) XXX_Size() int

func (*Packet) XXX_Unmarshal

func (m *Packet) XXX_Unmarshal(b []byte) error

type PacketState

type PacketState struct {
	// channel port identifier.
	PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier.
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// packet sequence.
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// embedded data that represents packet state.
	Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
}

PacketState defines the generic type necessary to retrieve and store packet commitments, acknowledgements, and receipts. Caller is responsible for knowing the context necessary to interpret this state as a commitment, acknowledgement, or a receipt.

func (*PacketState) Descriptor

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

func (*PacketState) GetChannelId

func (m *PacketState) GetChannelId() string

func (*PacketState) GetData

func (m *PacketState) GetData() []byte

func (*PacketState) GetPortId

func (m *PacketState) GetPortId() string

func (*PacketState) GetSequence

func (m *PacketState) GetSequence() uint64

func (*PacketState) Marshal

func (m *PacketState) Marshal() (dAtA []byte, err error)

func (*PacketState) MarshalTo

func (m *PacketState) MarshalTo(dAtA []byte) (int, error)

func (*PacketState) MarshalToSizedBuffer

func (m *PacketState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PacketState) ProtoMessage

func (*PacketState) ProtoMessage()

func (*PacketState) Reset

func (m *PacketState) Reset()

func (*PacketState) Size

func (m *PacketState) Size() (n int)

func (*PacketState) String

func (m *PacketState) String() string

func (*PacketState) Unmarshal

func (m *PacketState) Unmarshal(dAtA []byte) error

func (*PacketState) XXX_DiscardUnknown

func (m *PacketState) XXX_DiscardUnknown()

func (*PacketState) XXX_Marshal

func (m *PacketState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PacketState) XXX_Merge

func (m *PacketState) XXX_Merge(src proto.Message)

func (*PacketState) XXX_Size

func (m *PacketState) XXX_Size() int

func (*PacketState) XXX_Unmarshal

func (m *PacketState) XXX_Unmarshal(b []byte) error

type ProofSpec

type ProofSpec struct {
	// any field in the ExistenceProof must be the same as in this spec.
	// except Prefix, which is just the first bytes of prefix (spec can be longer)
	LeafSpec  *LeafOp    `protobuf:"bytes,1,opt,name=leaf_spec,json=leafSpec,proto3" json:"leaf_spec,omitempty"`
	InnerSpec *InnerSpec `protobuf:"bytes,2,opt,name=inner_spec,json=innerSpec,proto3" json:"inner_spec,omitempty"`
	// max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
	MaxDepth int32 `protobuf:"varint,3,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"`
	// min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
	MinDepth int32 `protobuf:"varint,4,opt,name=min_depth,json=minDepth,proto3" json:"min_depth,omitempty"`
	// prehash_key_before_comparison is a flag that indicates whether to use the
	// prehash_key specified by LeafOp to compare lexical ordering of keys for
	// non-existence proofs.
	PrehashKeyBeforeComparison bool `` /* 144-byte string literal not displayed */
}

ProofSpec defines what the expected parameters are for a given proof type. This can be stored in the client and used to validate any incoming proofs.

verify(ProofSpec, Proof) -> Proof | Error

As demonstrated in tests, if we don't fix the algorithm used to calculate the LeafHash for a given tree, there are many possible key-value pairs that can generate a given hash (by interpretting the preimage differently). We need this for proper security, requires client knows a priori what tree format server uses. But not in code, rather a configuration object.

func (*ProofSpec) Descriptor

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

func (*ProofSpec) GetInnerSpec

func (m *ProofSpec) GetInnerSpec() *InnerSpec

func (*ProofSpec) GetLeafSpec

func (m *ProofSpec) GetLeafSpec() *LeafOp

func (*ProofSpec) GetMaxDepth

func (m *ProofSpec) GetMaxDepth() int32

func (*ProofSpec) GetMinDepth

func (m *ProofSpec) GetMinDepth() int32

func (*ProofSpec) GetPrehashKeyBeforeComparison

func (m *ProofSpec) GetPrehashKeyBeforeComparison() bool

func (*ProofSpec) Marshal

func (m *ProofSpec) Marshal() (dAtA []byte, err error)

func (*ProofSpec) MarshalTo

func (m *ProofSpec) MarshalTo(dAtA []byte) (int, error)

func (*ProofSpec) MarshalToSizedBuffer

func (m *ProofSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProofSpec) ProtoMessage

func (*ProofSpec) ProtoMessage()

func (*ProofSpec) Reset

func (m *ProofSpec) Reset()

func (*ProofSpec) Size

func (m *ProofSpec) Size() (n int)

func (*ProofSpec) String

func (m *ProofSpec) String() string

func (*ProofSpec) Unmarshal

func (m *ProofSpec) Unmarshal(dAtA []byte) error

func (*ProofSpec) XXX_DiscardUnknown

func (m *ProofSpec) XXX_DiscardUnknown()

func (*ProofSpec) XXX_Marshal

func (m *ProofSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProofSpec) XXX_Merge

func (m *ProofSpec) XXX_Merge(src proto.Message)

func (*ProofSpec) XXX_Size

func (m *ProofSpec) XXX_Size() int

func (*ProofSpec) XXX_Unmarshal

func (m *ProofSpec) XXX_Unmarshal(b []byte) error

type SignedHeader

type SignedHeader struct {
	Header            *BTPHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Signatures        [][]byte   `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	CurrentValidators [][]byte   `protobuf:"bytes,3,rep,name=currentValidators,proto3" json:"currentValidators,omitempty"`
	TrustedHeight     uint64     `protobuf:"varint,4,opt,name=trusted_height,json=trustedHeight,proto3" json:"trusted_height,omitempty"`
}

func (*SignedHeader) ClientType

func (m *SignedHeader) ClientType() string

func (*SignedHeader) Descriptor

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

func (*SignedHeader) GetCurrentValidators

func (m *SignedHeader) GetCurrentValidators() [][]byte

func (*SignedHeader) GetHeader

func (m *SignedHeader) GetHeader() *BTPHeader

func (*SignedHeader) GetSignatures

func (m *SignedHeader) GetSignatures() [][]byte

func (*SignedHeader) GetTrustedHeight

func (m *SignedHeader) GetTrustedHeight() uint64

func (*SignedHeader) Marshal

func (m *SignedHeader) Marshal() (dAtA []byte, err error)

func (*SignedHeader) MarshalTo

func (m *SignedHeader) MarshalTo(dAtA []byte) (int, error)

func (*SignedHeader) MarshalToSizedBuffer

func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignedHeader) ProtoMessage

func (*SignedHeader) ProtoMessage()

func (*SignedHeader) Reset

func (m *SignedHeader) Reset()

func (*SignedHeader) Size

func (m *SignedHeader) Size() (n int)

func (*SignedHeader) String

func (m *SignedHeader) String() string

func (*SignedHeader) Unmarshal

func (m *SignedHeader) Unmarshal(dAtA []byte) error

func (*SignedHeader) ValidateBasic

func (m *SignedHeader) ValidateBasic() error

func (*SignedHeader) XXX_DiscardUnknown

func (m *SignedHeader) XXX_DiscardUnknown()

func (*SignedHeader) XXX_Marshal

func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedHeader) XXX_Merge

func (m *SignedHeader) XXX_Merge(src proto.Message)

func (*SignedHeader) XXX_Size

func (m *SignedHeader) XXX_Size() int

func (*SignedHeader) XXX_Unmarshal

func (m *SignedHeader) XXX_Unmarshal(b []byte) error

type SignedMsgType

type SignedMsgType int32

SignedMsgType is a type of signed message in the consensus.

const (
	SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN SignedMsgType = 0
	// Votes
	SignedMsgType_SIGNED_MSG_TYPE_PREVOTE   SignedMsgType = 1
	SignedMsgType_SIGNED_MSG_TYPE_PRECOMMIT SignedMsgType = 2
	// Proposals
	SignedMsgType_SIGNED_MSG_TYPE_PROPOSAL SignedMsgType = 32
)

func (SignedMsgType) EnumDescriptor

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

func (SignedMsgType) String

func (x SignedMsgType) String() string

type TrustLevel

type TrustLevel 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"`
}

func (*TrustLevel) Descriptor

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

func (*TrustLevel) GetDenominator

func (m *TrustLevel) GetDenominator() uint64

func (*TrustLevel) GetNumerator

func (m *TrustLevel) GetNumerator() uint64

func (*TrustLevel) Marshal

func (m *TrustLevel) Marshal() (dAtA []byte, err error)

func (*TrustLevel) MarshalTo

func (m *TrustLevel) MarshalTo(dAtA []byte) (int, error)

func (*TrustLevel) MarshalToSizedBuffer

func (m *TrustLevel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrustLevel) ProtoMessage

func (*TrustLevel) ProtoMessage()

func (*TrustLevel) Reset

func (m *TrustLevel) Reset()

func (*TrustLevel) Size

func (m *TrustLevel) Size() (n int)

func (*TrustLevel) String

func (m *TrustLevel) String() string

func (*TrustLevel) Unmarshal

func (m *TrustLevel) Unmarshal(dAtA []byte) error

func (*TrustLevel) XXX_DiscardUnknown

func (m *TrustLevel) XXX_DiscardUnknown()

func (*TrustLevel) XXX_Marshal

func (m *TrustLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrustLevel) XXX_Merge

func (m *TrustLevel) XXX_Merge(src proto.Message)

func (*TrustLevel) XXX_Size

func (m *TrustLevel) XXX_Size() int

func (*TrustLevel) XXX_Unmarshal

func (m *TrustLevel) XXX_Unmarshal(b []byte) error

type Version

type Version struct {
	// unique version identifier
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// list of features compatible with the specified identifier
	Features []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
}

Version defines the versioning scheme used to negotiate the IBC verison in the connection handshake.

func (*Version) Descriptor

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

func (*Version) GetFeatures

func (m *Version) GetFeatures() []string

func (*Version) GetIdentifier

func (m *Version) GetIdentifier() string

func (*Version) Marshal

func (m *Version) Marshal() (dAtA []byte, err error)

func (*Version) MarshalTo

func (m *Version) MarshalTo(dAtA []byte) (int, error)

func (*Version) MarshalToSizedBuffer

func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) Size

func (m *Version) Size() (n int)

func (*Version) String

func (m *Version) String() string

func (*Version) Unmarshal

func (m *Version) Unmarshal(dAtA []byte) error

func (*Version) XXX_DiscardUnknown

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal

func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Version) XXX_Merge

func (m *Version) XXX_Merge(src proto.Message)

func (*Version) XXX_Size

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal

func (m *Version) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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