aggrelite

package
v9.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) String

func (m *Height) String() string

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=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) 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) ProtoMessage

func (*InnerOp) ProtoMessage()

func (*InnerOp) Reset

func (m *InnerOp) Reset()

func (*InnerOp) String

func (m *InnerOp) String() string

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 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) 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) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) String

func (m *Packet) String() string

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 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) Descriptor() ([]byte, []int)

func (*ProofMeta) GetHashValue

func (m *ProofMeta) GetHashValue() []byte

func (*ProofMeta) GetPathInnerOp

func (m *ProofMeta) GetPathInnerOp() *InnerOp

func (*ProofMeta) ProtoMessage

func (*ProofMeta) ProtoMessage()

func (*ProofMeta) Reset

func (m *ProofMeta) Reset()

func (*ProofMeta) String

func (m *ProofMeta) String() string

func (*ProofMeta) XXX_DiscardUnknown

func (m *ProofMeta) XXX_DiscardUnknown()

func (*ProofMeta) XXX_Marshal

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

func (*ProofMeta) XXX_Merge

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

func (*ProofMeta) XXX_Size

func (m *ProofMeta) XXX_Size() int

func (*ProofMeta) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*SubProof) GetNumber

func (m *SubProof) GetNumber() uint32

func (*SubProof) GetProofMetaList

func (m *SubProof) GetProofMetaList() []*ProofMeta

func (*SubProof) ProtoMessage

func (*SubProof) ProtoMessage()

func (*SubProof) Reset

func (m *SubProof) Reset()

func (*SubProof) String

func (m *SubProof) String() string

func (*SubProof) XXX_DiscardUnknown

func (m *SubProof) XXX_DiscardUnknown()

func (*SubProof) XXX_Marshal

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

func (*SubProof) XXX_Merge

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

func (*SubProof) XXX_Size

func (m *SubProof) XXX_Size() int

func (*SubProof) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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