Documentation
¶
Index ¶
- Variables
- type AggregatePacket
- func (*AggregatePacket) Descriptor() ([]byte, []int)
- func (m *AggregatePacket) GetPackets() []*Packet
- func (m *AggregatePacket) GetPacketsLeafNumber() []uint32
- func (m *AggregatePacket) GetProof() []*SubProof
- func (m *AggregatePacket) GetSigner() string
- func (*AggregatePacket) ProtoMessage()
- func (m *AggregatePacket) Reset()
- func (m *AggregatePacket) String() string
- func (m *AggregatePacket) XXX_DiscardUnknown()
- func (m *AggregatePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AggregatePacket) XXX_Merge(src proto.Message)
- func (m *AggregatePacket) XXX_Size() int
- func (m *AggregatePacket) XXX_Unmarshal(b []byte) error
- type HashOp
- type Height
- func (*Height) Descriptor() ([]byte, []int)
- func (m *Height) GetRevisionHeight() uint64
- func (m *Height) GetRevisionNumber() uint64
- func (*Height) ProtoMessage()
- func (m *Height) Reset()
- func (m *Height) String() string
- func (m *Height) XXX_DiscardUnknown()
- func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Height) XXX_Merge(src proto.Message)
- func (m *Height) XXX_Size() int
- func (m *Height) XXX_Unmarshal(b []byte) error
- type InnerOp
- func (*InnerOp) Descriptor() ([]byte, []int)
- func (m *InnerOp) GetHash() HashOp
- func (m *InnerOp) GetPrefix() []byte
- func (m *InnerOp) GetSuffix() []byte
- func (*InnerOp) ProtoMessage()
- func (m *InnerOp) Reset()
- func (m *InnerOp) String() string
- func (m *InnerOp) XXX_DiscardUnknown()
- func (m *InnerOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InnerOp) XXX_Merge(src proto.Message)
- func (m *InnerOp) XXX_Size() int
- func (m *InnerOp) XXX_Unmarshal(b []byte) error
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)
- func (m *Packet) GetData() []byte
- func (m *Packet) GetDestinationChannel() string
- func (m *Packet) GetDestinationPort() string
- func (m *Packet) GetSequence() uint64
- func (m *Packet) GetSourceChannel() string
- func (m *Packet) GetSourcePort() string
- func (m *Packet) GetTimeoutHeight() *Height
- func (m *Packet) GetTimeoutTimestamp() uint64
- func (*Packet) ProtoMessage()
- func (m *Packet) Reset()
- func (m *Packet) String() string
- func (m *Packet) XXX_DiscardUnknown()
- func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Packet) XXX_Merge(src proto.Message)
- func (m *Packet) XXX_Size() int
- func (m *Packet) XXX_Unmarshal(b []byte) error
- type ProofMeta
- func (*ProofMeta) Descriptor() ([]byte, []int)
- func (m *ProofMeta) GetHashValue() []byte
- func (m *ProofMeta) GetPathInnerOp() *InnerOp
- func (*ProofMeta) ProtoMessage()
- func (m *ProofMeta) Reset()
- func (m *ProofMeta) String() string
- func (m *ProofMeta) XXX_DiscardUnknown()
- func (m *ProofMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProofMeta) XXX_Merge(src proto.Message)
- func (m *ProofMeta) XXX_Size() int
- func (m *ProofMeta) XXX_Unmarshal(b []byte) error
- type SubProof
- func (*SubProof) Descriptor() ([]byte, []int)
- func (m *SubProof) GetNumber() uint32
- func (m *SubProof) GetProofMetaList() []*ProofMeta
- func (*SubProof) ProtoMessage()
- func (m *SubProof) Reset()
- func (m *SubProof) String() string
- func (m *SubProof) XXX_DiscardUnknown()
- func (m *SubProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubProof) XXX_Merge(src proto.Message)
- func (m *SubProof) XXX_Size() int
- func (m *SubProof) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var HashOp_name = map[int32]string{
0: "NO_HASH",
1: "SHA256",
2: "SHA512",
3: "KECCAK256",
4: "RIPEMD160",
5: "BITCOIN",
6: "SHA512_256",
7: "BLAKE2B_512",
8: "BLAKE2S_256",
9: "BLAKE3",
}
View Source
var HashOp_value = map[string]int32{
"NO_HASH": 0,
"SHA256": 1,
"SHA512": 2,
"KECCAK256": 3,
"RIPEMD160": 4,
"BITCOIN": 5,
"SHA512_256": 6,
"BLAKE2B_512": 7,
"BLAKE2S_256": 8,
"BLAKE3": 9,
}
Functions ¶
This section is empty.
Types ¶
type AggregatePacket ¶
type AggregatePacket struct { Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` PacketsLeafNumber []uint32 `protobuf:"varint,2,rep,packed,name=packets_leaf_number,json=packetsLeafNumber,proto3" json:"packets_leaf_number,omitempty"` Proof []*SubProof `protobuf:"bytes,3,rep,name=proof,proto3" json:"proof,omitempty"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AggregatePacket) Descriptor ¶
func (*AggregatePacket) Descriptor() ([]byte, []int)
func (*AggregatePacket) GetPackets ¶
func (m *AggregatePacket) GetPackets() []*Packet
func (*AggregatePacket) GetPacketsLeafNumber ¶
func (m *AggregatePacket) GetPacketsLeafNumber() []uint32
func (*AggregatePacket) GetProof ¶
func (m *AggregatePacket) GetProof() []*SubProof
func (*AggregatePacket) GetSigner ¶
func (m *AggregatePacket) GetSigner() string
func (*AggregatePacket) ProtoMessage ¶
func (*AggregatePacket) ProtoMessage()
func (*AggregatePacket) Reset ¶
func (m *AggregatePacket) Reset()
func (*AggregatePacket) String ¶
func (m *AggregatePacket) String() string
func (*AggregatePacket) XXX_DiscardUnknown ¶
func (m *AggregatePacket) XXX_DiscardUnknown()
func (*AggregatePacket) XXX_Marshal ¶
func (m *AggregatePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AggregatePacket) XXX_Merge ¶
func (m *AggregatePacket) XXX_Merge(src proto.Message)
func (*AggregatePacket) XXX_Size ¶
func (m *AggregatePacket) XXX_Size() int
func (*AggregatePacket) XXX_Unmarshal ¶
func (m *AggregatePacket) 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_KECCAK256 HashOp = 3 HashOp_RIPEMD160 HashOp = 4 HashOp_BITCOIN HashOp = 5 HashOp_SHA512_256 HashOp = 6 HashOp_BLAKE2B_512 HashOp = 7 HashOp_BLAKE2S_256 HashOp = 8 HashOp_BLAKE3 HashOp = 9 )
func (HashOp) EnumDescriptor ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Height) Descriptor ¶
func (*Height) GetRevisionHeight ¶
func (*Height) GetRevisionNumber ¶
func (*Height) ProtoMessage ¶
func (*Height) ProtoMessage()
func (*Height) XXX_DiscardUnknown ¶
func (m *Height) XXX_DiscardUnknown()
func (*Height) XXX_Marshal ¶
func (*Height) XXX_Unmarshal ¶
type InnerOp ¶
type InnerOp struct { Hash HashOp `protobuf:"varint,1,opt,name=hash,proto3,enum=ibc.lightclients.aggrelite.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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
仍需修改
func (*InnerOp) Descriptor ¶
func (*InnerOp) ProtoMessage ¶
func (*InnerOp) ProtoMessage()
func (*InnerOp) XXX_DiscardUnknown ¶
func (m *InnerOp) XXX_DiscardUnknown()
func (*InnerOp) XXX_Marshal ¶
func (*InnerOp) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Packet) Descriptor ¶
func (*Packet) GetDestinationChannel ¶
func (*Packet) GetDestinationPort ¶
func (*Packet) GetSequence ¶
func (*Packet) GetSourceChannel ¶
func (*Packet) GetSourcePort ¶
func (*Packet) GetTimeoutHeight ¶
func (*Packet) GetTimeoutTimestamp ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) XXX_DiscardUnknown ¶
func (m *Packet) XXX_DiscardUnknown()
func (*Packet) XXX_Marshal ¶
func (*Packet) XXX_Unmarshal ¶
type ProofMeta ¶
type ProofMeta struct { HashValue []byte `protobuf:"bytes,1,opt,name=hash_value,json=hashValue,proto3" json:"hash_value,omitempty"` PathInnerOp *InnerOp `protobuf:"bytes,2,opt,name=path_inner_op,json=pathInnerOp,proto3" json:"path_inner_op,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProofMeta) Descriptor ¶
func (*ProofMeta) GetHashValue ¶
func (*ProofMeta) GetPathInnerOp ¶
func (*ProofMeta) ProtoMessage ¶
func (*ProofMeta) ProtoMessage()
func (*ProofMeta) XXX_DiscardUnknown ¶
func (m *ProofMeta) XXX_DiscardUnknown()
func (*ProofMeta) XXX_Marshal ¶
func (*ProofMeta) XXX_Unmarshal ¶
type SubProof ¶
type SubProof struct { Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` ProofMetaList []*ProofMeta `protobuf:"bytes,2,rep,name=proof_meta_list,json=proofMetaList,proto3" json:"proof_meta_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubProof) Descriptor ¶
func (*SubProof) GetProofMetaList ¶
func (*SubProof) ProtoMessage ¶
func (*SubProof) ProtoMessage()
func (*SubProof) XXX_DiscardUnknown ¶
func (m *SubProof) XXX_DiscardUnknown()
func (*SubProof) XXX_Marshal ¶
func (*SubProof) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.