v2

package
v1.1.4-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)

Functions

func MigrateStore

func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error

Types

type Node

type Node struct {
	// Node key (identity state hash)
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Node priority (should be random)
	Priority uint64 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	// Node left son key
	Left string `protobuf:"bytes,4,opt,name=left,proto3" json:"left,omitempty"`
	// Node right son key
	Right string `protobuf:"bytes,5,opt,name=right,proto3" json:"right,omitempty"`
	// Merkle hash. H = Hash(Hash(left_key|right_key)|self_key)
	Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	// Hash(left_key|right_key)
	ChildrenHash string `protobuf:"bytes,7,opt,name=childrenHash,proto3" json:"childrenHash,omitempty"`
}

func (*Node) Descriptor

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

func (*Node) GetChildrenHash

func (m *Node) GetChildrenHash() string

func (*Node) GetHash

func (m *Node) GetHash() string

func (*Node) GetKey

func (m *Node) GetKey() string

func (*Node) GetLeft

func (m *Node) GetLeft() string

func (*Node) GetPriority

func (m *Node) GetPriority() uint64

func (*Node) GetRight

func (m *Node) GetRight() string

func (*Node) Marshal

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

func (*Node) MarshalTo

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

func (*Node) MarshalToSizedBuffer

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

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size

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

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal

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

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

type StateInfo

type StateInfo struct {
	// State info index (issuer id)
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	// State hash in hex with 0x
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Creation timestamps
	CreatedAtTimestamp uint64 `protobuf:"varint,3,opt,name=createdAtTimestamp,proto3" json:"createdAtTimestamp,omitempty"`
	// Index of last update/create operation
	LastUpdateOperationIndex string `protobuf:"bytes,4,opt,name=lastUpdateOperationIndex,proto3" json:"lastUpdateOperationIndex,omitempty"`
}

func (*StateInfo) Descriptor

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

func (*StateInfo) GetCreatedAtTimestamp

func (m *StateInfo) GetCreatedAtTimestamp() uint64

func (*StateInfo) GetHash

func (m *StateInfo) GetHash() string

func (*StateInfo) GetIndex

func (m *StateInfo) GetIndex() string

func (*StateInfo) GetLastUpdateOperationIndex

func (m *StateInfo) GetLastUpdateOperationIndex() string

func (*StateInfo) Marshal

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

func (*StateInfo) MarshalTo

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

func (*StateInfo) MarshalToSizedBuffer

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

func (*StateInfo) ProtoMessage

func (*StateInfo) ProtoMessage()

func (*StateInfo) Reset

func (m *StateInfo) Reset()

func (*StateInfo) Size

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

func (*StateInfo) String

func (m *StateInfo) String() string

func (*StateInfo) Unmarshal

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

func (*StateInfo) XXX_DiscardUnknown

func (m *StateInfo) XXX_DiscardUnknown()

func (*StateInfo) XXX_Marshal

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

func (*StateInfo) XXX_Merge

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

func (*StateInfo) XXX_Size

func (m *StateInfo) XXX_Size() int

func (*StateInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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