types

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	VotesThresholdNumerator   = 2
	VotesThresholdDenominator = 3

	// Default number of blocks after which tss process expires
	DefaultTssProcessExpiryAfterBlocks = 500
)

Quorum numerator/denominator for validator votes (>2/3)

View Source
const (
	EventTypeTssProcessInitiated = "tss_process_initiated"
	EventTypeTssKeyFinalized     = "tss_key_finalized"
)
View Source
const (
	ModuleName = "utss"

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamsKey saves the current module params.
	ParamsKey = collections.NewPrefix(0)

	// ParamsName is the name of the params collection.
	ParamsName = "params"

	// NextProcessIdKey saves the current module NextProcessId.
	NextProcessIdKey = collections.NewPrefix(1)

	// NextProcessIdName is the name of the NextProcessId collection.
	NextProcessIdName = "next_process_id"

	// CurrentTssProcessKey saves the current module CurrentTssProcess.
	CurrentTssProcessKey = collections.NewPrefix(2)

	// CurrentTssProcessName is the name of the CurrentTssProcess collection.
	CurrentTssProcessName = "current_tss_process"

	// ProcessHistoryKey saves the current module ProcessHistory.
	ProcessHistoryKey = collections.NewPrefix(3)

	// ProcessHistoryName is the name of the ProcessHistory collection.
	ProcessHistoryName = "process_history"

	// CurrentTssKeyPrefix saves the current module CurrentTssKey.
	CurrentTssKeyKeyPrefix = collections.NewPrefix(4)

	// CurrentTssKeyName is the name of the CurrentTssKey collection.
	CurrentTssKeyName = "current_tss_key"

	// TssKeyHistoryKey saves the current module TssKeyHistory.
	TssKeyHistoryKey = collections.NewPrefix(5)

	// TssKeyHistoryName is the name of the TssKeyHistory collection.
	TssKeyHistoryName = "tss_key_history"
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = 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 (
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var TssKeyProcessStatus_name = map[int32]string{
	0: "TSS_KEY_PROCESS_PENDING",
	1: "TSS_KEY_PROCESS_SUCCESS",
	2: "TSS_KEY_PROCESS_FAILED",
}
View Source
var TssKeyProcessStatus_value = map[string]int32{
	"TSS_KEY_PROCESS_PENDING": 0,
	"TSS_KEY_PROCESS_SUCCESS": 1,
	"TSS_KEY_PROCESS_FAILED":  2,
}
View Source
var TssProcessType_name = map[int32]string{
	0: "TSS_PROCESS_KEYGEN",
	1: "TSS_PROCESS_REFRESH",
	2: "TSS_PROCESS_QUORUM_CHANGE",
}
View Source
var TssProcessType_value = map[string]int32{
	"TSS_PROCESS_KEYGEN":        0,
	"TSS_PROCESS_REFRESH":       1,
	"TSS_PROCESS_QUORUM_CHANGE": 2,
}

Functions

func GetTssBallotKey

func GetTssBallotKey(processId uint64, tssPubKey, keyId string) string

func NewTssKeyFinalizedEvent

func NewTssKeyFinalizedEvent(e TssKeyFinalizedEvent) (sdk.Event, error)

NewTssKeyFinalizedEvent creates and returns a Cosmos SDK event.

func NewTssProcessInitiatedEvent

func NewTssProcessInitiatedEvent(e TssProcessInitiatedEvent) (sdk.Event, error)

NewTssProcessInitiatedEvent creates and returns a Cosmos SDK event.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	// Params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the module genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// InitiateTssKeyProcess defines a operation for initiating a new tss key process
	InitiateTssKeyProcess(ctx context.Context, in *MsgInitiateTssKeyProcess, opts ...grpc.CallOption) (*MsgInitiateTssKeyProcessResponse, error)
	// VoteTssKeyProcess defines a operation for voting on an existing tss key process
	VoteTssKeyProcess(ctx context.Context, in *MsgVoteTssKeyProcess, opts ...grpc.CallOption) (*MsgVoteTssKeyProcessResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgInitiateTssKeyProcess

type MsgInitiateTssKeyProcess struct {
	Signer      string         `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	ProcessType TssProcessType `protobuf:"varint,2,opt,name=process_type,json=processType,proto3,enum=utss.v1.TssProcessType" json:"process_type,omitempty"`
}

Admin initiates new keygen/reshare process

func (*MsgInitiateTssKeyProcess) Descriptor

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

func (*MsgInitiateTssKeyProcess) GetProcessType

func (m *MsgInitiateTssKeyProcess) GetProcessType() TssProcessType

func (*MsgInitiateTssKeyProcess) GetSigner

func (m *MsgInitiateTssKeyProcess) GetSigner() string

func (*MsgInitiateTssKeyProcess) Marshal

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

func (*MsgInitiateTssKeyProcess) MarshalTo

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

func (*MsgInitiateTssKeyProcess) MarshalToSizedBuffer

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

func (*MsgInitiateTssKeyProcess) ProtoMessage

func (*MsgInitiateTssKeyProcess) ProtoMessage()

func (*MsgInitiateTssKeyProcess) Reset

func (m *MsgInitiateTssKeyProcess) Reset()

func (*MsgInitiateTssKeyProcess) Size

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

func (*MsgInitiateTssKeyProcess) String

func (m *MsgInitiateTssKeyProcess) String() string

func (*MsgInitiateTssKeyProcess) Unmarshal

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

func (*MsgInitiateTssKeyProcess) XXX_DiscardUnknown

func (m *MsgInitiateTssKeyProcess) XXX_DiscardUnknown()

func (*MsgInitiateTssKeyProcess) XXX_Marshal

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

func (*MsgInitiateTssKeyProcess) XXX_Merge

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

func (*MsgInitiateTssKeyProcess) XXX_Size

func (m *MsgInitiateTssKeyProcess) XXX_Size() int

func (*MsgInitiateTssKeyProcess) XXX_Unmarshal

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

type MsgInitiateTssKeyProcessResponse

type MsgInitiateTssKeyProcessResponse struct {
}

func (*MsgInitiateTssKeyProcessResponse) Descriptor

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

func (*MsgInitiateTssKeyProcessResponse) Marshal

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

func (*MsgInitiateTssKeyProcessResponse) MarshalTo

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

func (*MsgInitiateTssKeyProcessResponse) MarshalToSizedBuffer

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

func (*MsgInitiateTssKeyProcessResponse) ProtoMessage

func (*MsgInitiateTssKeyProcessResponse) ProtoMessage()

func (*MsgInitiateTssKeyProcessResponse) Reset

func (*MsgInitiateTssKeyProcessResponse) Size

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

func (*MsgInitiateTssKeyProcessResponse) String

func (*MsgInitiateTssKeyProcessResponse) Unmarshal

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

func (*MsgInitiateTssKeyProcessResponse) XXX_DiscardUnknown

func (m *MsgInitiateTssKeyProcessResponse) XXX_DiscardUnknown()

func (*MsgInitiateTssKeyProcessResponse) XXX_Marshal

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

func (*MsgInitiateTssKeyProcessResponse) XXX_Merge

func (*MsgInitiateTssKeyProcessResponse) XXX_Size

func (m *MsgInitiateTssKeyProcessResponse) XXX_Size() int

func (*MsgInitiateTssKeyProcessResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// InitiateTssKeyProcess defines a operation for initiating a new tss key process
	InitiateTssKeyProcess(context.Context, *MsgInitiateTssKeyProcess) (*MsgInitiateTssKeyProcessResponse, error)
	// VoteTssKeyProcess defines a operation for voting on an existing tss key process
	VoteTssKeyProcess(context.Context, *MsgVoteTssKeyProcess) (*MsgVoteTssKeyProcessResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func NewMsgUpdateParams

func NewMsgUpdateParams(
	sender sdk.Address,
	admin sdk.Address,
) *MsgUpdateParams

NewMsgUpdateParams creates new instance of MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes

func (msg MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners

func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

Route returns the name of the module

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

Type returns the action

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgVoteTssKeyProcess

type MsgVoteTssKeyProcess struct {
	Signer    string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	TssPubkey string `protobuf:"bytes,2,opt,name=tss_pubkey,json=tssPubkey,proto3" json:"tss_pubkey,omitempty"`
	KeyId     string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	ProcessId uint64 `protobuf:"varint,4,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
}

Universal validator votes on an ongoing TSS key process

func (*MsgVoteTssKeyProcess) Descriptor

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

func (*MsgVoteTssKeyProcess) GetKeyId

func (m *MsgVoteTssKeyProcess) GetKeyId() string

func (*MsgVoteTssKeyProcess) GetProcessId

func (m *MsgVoteTssKeyProcess) GetProcessId() uint64

func (*MsgVoteTssKeyProcess) GetSigner

func (m *MsgVoteTssKeyProcess) GetSigner() string

func (*MsgVoteTssKeyProcess) GetTssPubkey

func (m *MsgVoteTssKeyProcess) GetTssPubkey() string

func (*MsgVoteTssKeyProcess) Marshal

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

func (*MsgVoteTssKeyProcess) MarshalTo

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

func (*MsgVoteTssKeyProcess) MarshalToSizedBuffer

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

func (*MsgVoteTssKeyProcess) ProtoMessage

func (*MsgVoteTssKeyProcess) ProtoMessage()

func (*MsgVoteTssKeyProcess) Reset

func (m *MsgVoteTssKeyProcess) Reset()

func (*MsgVoteTssKeyProcess) Size

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

func (*MsgVoteTssKeyProcess) String

func (m *MsgVoteTssKeyProcess) String() string

func (*MsgVoteTssKeyProcess) Unmarshal

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

func (*MsgVoteTssKeyProcess) XXX_DiscardUnknown

func (m *MsgVoteTssKeyProcess) XXX_DiscardUnknown()

func (*MsgVoteTssKeyProcess) XXX_Marshal

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

func (*MsgVoteTssKeyProcess) XXX_Merge

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

func (*MsgVoteTssKeyProcess) XXX_Size

func (m *MsgVoteTssKeyProcess) XXX_Size() int

func (*MsgVoteTssKeyProcess) XXX_Unmarshal

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

type MsgVoteTssKeyProcessResponse

type MsgVoteTssKeyProcessResponse struct {
}

func (*MsgVoteTssKeyProcessResponse) Descriptor

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

func (*MsgVoteTssKeyProcessResponse) Marshal

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

func (*MsgVoteTssKeyProcessResponse) MarshalTo

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

func (*MsgVoteTssKeyProcessResponse) MarshalToSizedBuffer

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

func (*MsgVoteTssKeyProcessResponse) ProtoMessage

func (*MsgVoteTssKeyProcessResponse) ProtoMessage()

func (*MsgVoteTssKeyProcessResponse) Reset

func (m *MsgVoteTssKeyProcessResponse) Reset()

func (*MsgVoteTssKeyProcessResponse) Size

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

func (*MsgVoteTssKeyProcessResponse) String

func (*MsgVoteTssKeyProcessResponse) Unmarshal

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

func (*MsgVoteTssKeyProcessResponse) XXX_DiscardUnknown

func (m *MsgVoteTssKeyProcessResponse) XXX_DiscardUnknown()

func (*MsgVoteTssKeyProcessResponse) XXX_Marshal

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

func (*MsgVoteTssKeyProcessResponse) XXX_Merge

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

func (*MsgVoteTssKeyProcessResponse) XXX_Size

func (m *MsgVoteTssKeyProcessResponse) XXX_Size() int

func (*MsgVoteTssKeyProcessResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// The admin account of the utss module.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default module parameters.

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetAdmin

func (m *Params) GetAdmin() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

Stringer method for Params.

func (*Params) Unmarshal

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

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

Validate does the sanity check on the params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllKeysRequest

type QueryAllKeysRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllKeysRequest) Descriptor

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

func (*QueryAllKeysRequest) GetPagination

func (m *QueryAllKeysRequest) GetPagination() *query.PageRequest

func (*QueryAllKeysRequest) Marshal

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

func (*QueryAllKeysRequest) MarshalTo

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

func (*QueryAllKeysRequest) MarshalToSizedBuffer

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

func (*QueryAllKeysRequest) ProtoMessage

func (*QueryAllKeysRequest) ProtoMessage()

func (*QueryAllKeysRequest) Reset

func (m *QueryAllKeysRequest) Reset()

func (*QueryAllKeysRequest) Size

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

func (*QueryAllKeysRequest) String

func (m *QueryAllKeysRequest) String() string

func (*QueryAllKeysRequest) Unmarshal

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

func (*QueryAllKeysRequest) XXX_DiscardUnknown

func (m *QueryAllKeysRequest) XXX_DiscardUnknown()

func (*QueryAllKeysRequest) XXX_Marshal

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

func (*QueryAllKeysRequest) XXX_Merge

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

func (*QueryAllKeysRequest) XXX_Size

func (m *QueryAllKeysRequest) XXX_Size() int

func (*QueryAllKeysRequest) XXX_Unmarshal

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

type QueryAllKeysResponse

type QueryAllKeysResponse struct {
	Keys       []*TssKey           `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllKeysResponse) Descriptor

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

func (*QueryAllKeysResponse) GetKeys

func (m *QueryAllKeysResponse) GetKeys() []*TssKey

func (*QueryAllKeysResponse) GetPagination

func (m *QueryAllKeysResponse) GetPagination() *query.PageResponse

func (*QueryAllKeysResponse) Marshal

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

func (*QueryAllKeysResponse) MarshalTo

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

func (*QueryAllKeysResponse) MarshalToSizedBuffer

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

func (*QueryAllKeysResponse) ProtoMessage

func (*QueryAllKeysResponse) ProtoMessage()

func (*QueryAllKeysResponse) Reset

func (m *QueryAllKeysResponse) Reset()

func (*QueryAllKeysResponse) Size

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

func (*QueryAllKeysResponse) String

func (m *QueryAllKeysResponse) String() string

func (*QueryAllKeysResponse) Unmarshal

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

func (*QueryAllKeysResponse) XXX_DiscardUnknown

func (m *QueryAllKeysResponse) XXX_DiscardUnknown()

func (*QueryAllKeysResponse) XXX_Marshal

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

func (*QueryAllKeysResponse) XXX_Merge

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

func (*QueryAllKeysResponse) XXX_Size

func (m *QueryAllKeysResponse) XXX_Size() int

func (*QueryAllKeysResponse) XXX_Unmarshal

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

type QueryAllProcessesRequest

type QueryAllProcessesRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllProcessesRequest) Descriptor

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

func (*QueryAllProcessesRequest) GetPagination

func (m *QueryAllProcessesRequest) GetPagination() *query.PageRequest

func (*QueryAllProcessesRequest) Marshal

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

func (*QueryAllProcessesRequest) MarshalTo

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

func (*QueryAllProcessesRequest) MarshalToSizedBuffer

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

func (*QueryAllProcessesRequest) ProtoMessage

func (*QueryAllProcessesRequest) ProtoMessage()

func (*QueryAllProcessesRequest) Reset

func (m *QueryAllProcessesRequest) Reset()

func (*QueryAllProcessesRequest) Size

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

func (*QueryAllProcessesRequest) String

func (m *QueryAllProcessesRequest) String() string

func (*QueryAllProcessesRequest) Unmarshal

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

func (*QueryAllProcessesRequest) XXX_DiscardUnknown

func (m *QueryAllProcessesRequest) XXX_DiscardUnknown()

func (*QueryAllProcessesRequest) XXX_Marshal

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

func (*QueryAllProcessesRequest) XXX_Merge

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

func (*QueryAllProcessesRequest) XXX_Size

func (m *QueryAllProcessesRequest) XXX_Size() int

func (*QueryAllProcessesRequest) XXX_Unmarshal

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

type QueryAllProcessesResponse

type QueryAllProcessesResponse struct {
	Processes  []*TssKeyProcess    `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllProcessesResponse) Descriptor

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

func (*QueryAllProcessesResponse) GetPagination

func (m *QueryAllProcessesResponse) GetPagination() *query.PageResponse

func (*QueryAllProcessesResponse) GetProcesses

func (m *QueryAllProcessesResponse) GetProcesses() []*TssKeyProcess

func (*QueryAllProcessesResponse) Marshal

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

func (*QueryAllProcessesResponse) MarshalTo

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

func (*QueryAllProcessesResponse) MarshalToSizedBuffer

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

func (*QueryAllProcessesResponse) ProtoMessage

func (*QueryAllProcessesResponse) ProtoMessage()

func (*QueryAllProcessesResponse) Reset

func (m *QueryAllProcessesResponse) Reset()

func (*QueryAllProcessesResponse) Size

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

func (*QueryAllProcessesResponse) String

func (m *QueryAllProcessesResponse) String() string

func (*QueryAllProcessesResponse) Unmarshal

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

func (*QueryAllProcessesResponse) XXX_DiscardUnknown

func (m *QueryAllProcessesResponse) XXX_DiscardUnknown()

func (*QueryAllProcessesResponse) XXX_Marshal

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

func (*QueryAllProcessesResponse) XXX_Merge

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

func (*QueryAllProcessesResponse) XXX_Size

func (m *QueryAllProcessesResponse) XXX_Size() int

func (*QueryAllProcessesResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Current TSS Process
	CurrentProcess(ctx context.Context, in *QueryCurrentProcessRequest, opts ...grpc.CallOption) (*QueryCurrentProcessResponse, error)
	// Process by ID
	ProcessById(ctx context.Context, in *QueryProcessByIdRequest, opts ...grpc.CallOption) (*QueryProcessByIdResponse, error)
	// List all processes (paginated)
	AllProcesses(ctx context.Context, in *QueryAllProcessesRequest, opts ...grpc.CallOption) (*QueryAllProcessesResponse, error)
	// Current TSS Key
	CurrentKey(ctx context.Context, in *QueryCurrentKeyRequest, opts ...grpc.CallOption) (*QueryCurrentKeyResponse, error)
	// Get finalized TSS key by key_id
	KeyById(ctx context.Context, in *QueryKeyByIdRequest, opts ...grpc.CallOption) (*QueryKeyByIdResponse, error)
	// List all finalized keys (paginated)
	AllKeys(ctx context.Context, in *QueryAllKeysRequest, opts ...grpc.CallOption) (*QueryAllKeysResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCurrentKeyRequest

type QueryCurrentKeyRequest struct {
}

func (*QueryCurrentKeyRequest) Descriptor

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

func (*QueryCurrentKeyRequest) Marshal

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

func (*QueryCurrentKeyRequest) MarshalTo

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

func (*QueryCurrentKeyRequest) MarshalToSizedBuffer

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

func (*QueryCurrentKeyRequest) ProtoMessage

func (*QueryCurrentKeyRequest) ProtoMessage()

func (*QueryCurrentKeyRequest) Reset

func (m *QueryCurrentKeyRequest) Reset()

func (*QueryCurrentKeyRequest) Size

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

func (*QueryCurrentKeyRequest) String

func (m *QueryCurrentKeyRequest) String() string

func (*QueryCurrentKeyRequest) Unmarshal

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

func (*QueryCurrentKeyRequest) XXX_DiscardUnknown

func (m *QueryCurrentKeyRequest) XXX_DiscardUnknown()

func (*QueryCurrentKeyRequest) XXX_Marshal

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

func (*QueryCurrentKeyRequest) XXX_Merge

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

func (*QueryCurrentKeyRequest) XXX_Size

func (m *QueryCurrentKeyRequest) XXX_Size() int

func (*QueryCurrentKeyRequest) XXX_Unmarshal

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

type QueryCurrentKeyResponse

type QueryCurrentKeyResponse struct {
	Key *TssKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}

func (*QueryCurrentKeyResponse) Descriptor

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

func (*QueryCurrentKeyResponse) GetKey

func (m *QueryCurrentKeyResponse) GetKey() *TssKey

func (*QueryCurrentKeyResponse) Marshal

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

func (*QueryCurrentKeyResponse) MarshalTo

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

func (*QueryCurrentKeyResponse) MarshalToSizedBuffer

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

func (*QueryCurrentKeyResponse) ProtoMessage

func (*QueryCurrentKeyResponse) ProtoMessage()

func (*QueryCurrentKeyResponse) Reset

func (m *QueryCurrentKeyResponse) Reset()

func (*QueryCurrentKeyResponse) Size

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

func (*QueryCurrentKeyResponse) String

func (m *QueryCurrentKeyResponse) String() string

func (*QueryCurrentKeyResponse) Unmarshal

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

func (*QueryCurrentKeyResponse) XXX_DiscardUnknown

func (m *QueryCurrentKeyResponse) XXX_DiscardUnknown()

func (*QueryCurrentKeyResponse) XXX_Marshal

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

func (*QueryCurrentKeyResponse) XXX_Merge

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

func (*QueryCurrentKeyResponse) XXX_Size

func (m *QueryCurrentKeyResponse) XXX_Size() int

func (*QueryCurrentKeyResponse) XXX_Unmarshal

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

type QueryCurrentProcessRequest

type QueryCurrentProcessRequest struct {
}

func (*QueryCurrentProcessRequest) Descriptor

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

func (*QueryCurrentProcessRequest) Marshal

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

func (*QueryCurrentProcessRequest) MarshalTo

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

func (*QueryCurrentProcessRequest) MarshalToSizedBuffer

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

func (*QueryCurrentProcessRequest) ProtoMessage

func (*QueryCurrentProcessRequest) ProtoMessage()

func (*QueryCurrentProcessRequest) Reset

func (m *QueryCurrentProcessRequest) Reset()

func (*QueryCurrentProcessRequest) Size

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

func (*QueryCurrentProcessRequest) String

func (m *QueryCurrentProcessRequest) String() string

func (*QueryCurrentProcessRequest) Unmarshal

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

func (*QueryCurrentProcessRequest) XXX_DiscardUnknown

func (m *QueryCurrentProcessRequest) XXX_DiscardUnknown()

func (*QueryCurrentProcessRequest) XXX_Marshal

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

func (*QueryCurrentProcessRequest) XXX_Merge

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

func (*QueryCurrentProcessRequest) XXX_Size

func (m *QueryCurrentProcessRequest) XXX_Size() int

func (*QueryCurrentProcessRequest) XXX_Unmarshal

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

type QueryCurrentProcessResponse

type QueryCurrentProcessResponse struct {
	Process *TssKeyProcess `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
}

func (*QueryCurrentProcessResponse) Descriptor

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

func (*QueryCurrentProcessResponse) GetProcess

func (m *QueryCurrentProcessResponse) GetProcess() *TssKeyProcess

func (*QueryCurrentProcessResponse) Marshal

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

func (*QueryCurrentProcessResponse) MarshalTo

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

func (*QueryCurrentProcessResponse) MarshalToSizedBuffer

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

func (*QueryCurrentProcessResponse) ProtoMessage

func (*QueryCurrentProcessResponse) ProtoMessage()

func (*QueryCurrentProcessResponse) Reset

func (m *QueryCurrentProcessResponse) Reset()

func (*QueryCurrentProcessResponse) Size

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

func (*QueryCurrentProcessResponse) String

func (m *QueryCurrentProcessResponse) String() string

func (*QueryCurrentProcessResponse) Unmarshal

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

func (*QueryCurrentProcessResponse) XXX_DiscardUnknown

func (m *QueryCurrentProcessResponse) XXX_DiscardUnknown()

func (*QueryCurrentProcessResponse) XXX_Marshal

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

func (*QueryCurrentProcessResponse) XXX_Merge

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

func (*QueryCurrentProcessResponse) XXX_Size

func (m *QueryCurrentProcessResponse) XXX_Size() int

func (*QueryCurrentProcessResponse) XXX_Unmarshal

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

type QueryKeyByIdRequest

type QueryKeyByIdRequest struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
}

func (*QueryKeyByIdRequest) Descriptor

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

func (*QueryKeyByIdRequest) GetKeyId

func (m *QueryKeyByIdRequest) GetKeyId() string

func (*QueryKeyByIdRequest) Marshal

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

func (*QueryKeyByIdRequest) MarshalTo

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

func (*QueryKeyByIdRequest) MarshalToSizedBuffer

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

func (*QueryKeyByIdRequest) ProtoMessage

func (*QueryKeyByIdRequest) ProtoMessage()

func (*QueryKeyByIdRequest) Reset

func (m *QueryKeyByIdRequest) Reset()

func (*QueryKeyByIdRequest) Size

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

func (*QueryKeyByIdRequest) String

func (m *QueryKeyByIdRequest) String() string

func (*QueryKeyByIdRequest) Unmarshal

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

func (*QueryKeyByIdRequest) XXX_DiscardUnknown

func (m *QueryKeyByIdRequest) XXX_DiscardUnknown()

func (*QueryKeyByIdRequest) XXX_Marshal

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

func (*QueryKeyByIdRequest) XXX_Merge

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

func (*QueryKeyByIdRequest) XXX_Size

func (m *QueryKeyByIdRequest) XXX_Size() int

func (*QueryKeyByIdRequest) XXX_Unmarshal

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

type QueryKeyByIdResponse

type QueryKeyByIdResponse struct {
	Key *TssKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}

func (*QueryKeyByIdResponse) Descriptor

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

func (*QueryKeyByIdResponse) GetKey

func (m *QueryKeyByIdResponse) GetKey() *TssKey

func (*QueryKeyByIdResponse) Marshal

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

func (*QueryKeyByIdResponse) MarshalTo

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

func (*QueryKeyByIdResponse) MarshalToSizedBuffer

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

func (*QueryKeyByIdResponse) ProtoMessage

func (*QueryKeyByIdResponse) ProtoMessage()

func (*QueryKeyByIdResponse) Reset

func (m *QueryKeyByIdResponse) Reset()

func (*QueryKeyByIdResponse) Size

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

func (*QueryKeyByIdResponse) String

func (m *QueryKeyByIdResponse) String() string

func (*QueryKeyByIdResponse) Unmarshal

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

func (*QueryKeyByIdResponse) XXX_DiscardUnknown

func (m *QueryKeyByIdResponse) XXX_DiscardUnknown()

func (*QueryKeyByIdResponse) XXX_Marshal

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

func (*QueryKeyByIdResponse) XXX_Merge

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

func (*QueryKeyByIdResponse) XXX_Size

func (m *QueryKeyByIdResponse) XXX_Size() int

func (*QueryKeyByIdResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

Messages

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryProcessByIdRequest

type QueryProcessByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryProcessByIdRequest) Descriptor

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

func (*QueryProcessByIdRequest) GetId

func (m *QueryProcessByIdRequest) GetId() uint64

func (*QueryProcessByIdRequest) Marshal

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

func (*QueryProcessByIdRequest) MarshalTo

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

func (*QueryProcessByIdRequest) MarshalToSizedBuffer

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

func (*QueryProcessByIdRequest) ProtoMessage

func (*QueryProcessByIdRequest) ProtoMessage()

func (*QueryProcessByIdRequest) Reset

func (m *QueryProcessByIdRequest) Reset()

func (*QueryProcessByIdRequest) Size

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

func (*QueryProcessByIdRequest) String

func (m *QueryProcessByIdRequest) String() string

func (*QueryProcessByIdRequest) Unmarshal

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

func (*QueryProcessByIdRequest) XXX_DiscardUnknown

func (m *QueryProcessByIdRequest) XXX_DiscardUnknown()

func (*QueryProcessByIdRequest) XXX_Marshal

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

func (*QueryProcessByIdRequest) XXX_Merge

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

func (*QueryProcessByIdRequest) XXX_Size

func (m *QueryProcessByIdRequest) XXX_Size() int

func (*QueryProcessByIdRequest) XXX_Unmarshal

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

type QueryProcessByIdResponse

type QueryProcessByIdResponse struct {
	Process *TssKeyProcess `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
}

func (*QueryProcessByIdResponse) Descriptor

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

func (*QueryProcessByIdResponse) GetProcess

func (m *QueryProcessByIdResponse) GetProcess() *TssKeyProcess

func (*QueryProcessByIdResponse) Marshal

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

func (*QueryProcessByIdResponse) MarshalTo

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

func (*QueryProcessByIdResponse) MarshalToSizedBuffer

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

func (*QueryProcessByIdResponse) ProtoMessage

func (*QueryProcessByIdResponse) ProtoMessage()

func (*QueryProcessByIdResponse) Reset

func (m *QueryProcessByIdResponse) Reset()

func (*QueryProcessByIdResponse) Size

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

func (*QueryProcessByIdResponse) String

func (m *QueryProcessByIdResponse) String() string

func (*QueryProcessByIdResponse) Unmarshal

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

func (*QueryProcessByIdResponse) XXX_DiscardUnknown

func (m *QueryProcessByIdResponse) XXX_DiscardUnknown()

func (*QueryProcessByIdResponse) XXX_Marshal

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

func (*QueryProcessByIdResponse) XXX_Merge

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

func (*QueryProcessByIdResponse) XXX_Size

func (m *QueryProcessByIdResponse) XXX_Size() int

func (*QueryProcessByIdResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Current TSS Process
	CurrentProcess(context.Context, *QueryCurrentProcessRequest) (*QueryCurrentProcessResponse, error)
	// Process by ID
	ProcessById(context.Context, *QueryProcessByIdRequest) (*QueryProcessByIdResponse, error)
	// List all processes (paginated)
	AllProcesses(context.Context, *QueryAllProcessesRequest) (*QueryAllProcessesResponse, error)
	// Current TSS Key
	CurrentKey(context.Context, *QueryCurrentKeyRequest) (*QueryCurrentKeyResponse, error)
	// Get finalized TSS key by key_id
	KeyById(context.Context, *QueryKeyByIdRequest) (*QueryKeyByIdResponse, error)
	// List all finalized keys (paginated)
	AllKeys(context.Context, *QueryAllKeysRequest) (*QueryAllKeysResponse, error)
}

QueryServer is the server API for Query service.

type TssKey

type TssKey struct {
	TssPubkey            string   `protobuf:"bytes,1,opt,name=tss_pubkey,json=tssPubkey,proto3" json:"tss_pubkey,omitempty"`
	KeyId                string   `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Participants         []string `protobuf:"bytes,3,rep,name=participants,proto3" json:"participants,omitempty"`
	FinalizedBlockHeight int64    `protobuf:"varint,4,opt,name=finalized_block_height,json=finalizedBlockHeight,proto3" json:"finalized_block_height,omitempty"`
	KeygenBlockHeight    int64    `protobuf:"varint,5,opt,name=keygen_block_height,json=keygenBlockHeight,proto3" json:"keygen_block_height,omitempty"`
	ProcessId            uint64   `protobuf:"varint,6,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
}

Finalized TSS key details

func (*TssKey) Descriptor

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

func (*TssKey) Equal

func (this *TssKey) Equal(that interface{}) bool

func (*TssKey) GetFinalizedBlockHeight

func (m *TssKey) GetFinalizedBlockHeight() int64

func (*TssKey) GetKeyId

func (m *TssKey) GetKeyId() string

func (*TssKey) GetKeygenBlockHeight

func (m *TssKey) GetKeygenBlockHeight() int64

func (*TssKey) GetParticipants

func (m *TssKey) GetParticipants() []string

func (*TssKey) GetProcessId

func (m *TssKey) GetProcessId() uint64

func (*TssKey) GetTssPubkey

func (m *TssKey) GetTssPubkey() string

func (*TssKey) Marshal

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

func (*TssKey) MarshalTo

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

func (*TssKey) MarshalToSizedBuffer

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

func (*TssKey) ProtoMessage

func (*TssKey) ProtoMessage()

func (*TssKey) Reset

func (m *TssKey) Reset()

func (*TssKey) Size

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

func (TssKey) String

func (p TssKey) String() string

String returns a JSON string representation of TssKey

func (*TssKey) Unmarshal

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

func (TssKey) ValidateBasic

func (p TssKey) ValidateBasic() error

ValidateBasic performs basic validation on TssKey fields

func (*TssKey) XXX_DiscardUnknown

func (m *TssKey) XXX_DiscardUnknown()

func (*TssKey) XXX_Marshal

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

func (*TssKey) XXX_Merge

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

func (*TssKey) XXX_Size

func (m *TssKey) XXX_Size() int

func (*TssKey) XXX_Unmarshal

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

type TssKeyFinalizedEvent

type TssKeyFinalizedEvent struct {
	ProcessID uint64 `json:"process_id"`
	KeyID     string `json:"key_id"`
	TssPubKey string `json:"tss_pubkey"`
}

TssKeyFinalizedEvent represents when a TSS keygen or reshare process completes successfully.

func (TssKeyFinalizedEvent) String

func (e TssKeyFinalizedEvent) String() string

String returns a readable log for CLI.

type TssKeyProcess

type TssKeyProcess struct {
	Status       TssKeyProcessStatus `protobuf:"varint,1,opt,name=status,proto3,enum=utss.v1.TssKeyProcessStatus" json:"status,omitempty"`
	Participants []string            `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"`
	BlockHeight  int64               `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	ExpiryHeight int64               `protobuf:"varint,4,opt,name=expiry_height,json=expiryHeight,proto3" json:"expiry_height,omitempty"`
	ProcessType  TssProcessType      `protobuf:"varint,5,opt,name=process_type,json=processType,proto3,enum=utss.v1.TssProcessType" json:"process_type,omitempty"`
	Id           uint64              `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"`
}

TSS key process information

func (*TssKeyProcess) Descriptor

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

func (*TssKeyProcess) Equal

func (this *TssKeyProcess) Equal(that interface{}) bool

func (*TssKeyProcess) GetBlockHeight

func (m *TssKeyProcess) GetBlockHeight() int64

func (*TssKeyProcess) GetExpiryHeight

func (m *TssKeyProcess) GetExpiryHeight() int64

func (*TssKeyProcess) GetId

func (m *TssKeyProcess) GetId() uint64

func (*TssKeyProcess) GetParticipants

func (m *TssKeyProcess) GetParticipants() []string

func (*TssKeyProcess) GetProcessType

func (m *TssKeyProcess) GetProcessType() TssProcessType

func (*TssKeyProcess) GetStatus

func (m *TssKeyProcess) GetStatus() TssKeyProcessStatus

func (*TssKeyProcess) Marshal

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

func (*TssKeyProcess) MarshalTo

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

func (*TssKeyProcess) MarshalToSizedBuffer

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

func (*TssKeyProcess) ProtoMessage

func (*TssKeyProcess) ProtoMessage()

func (*TssKeyProcess) Reset

func (m *TssKeyProcess) Reset()

func (*TssKeyProcess) Size

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

func (TssKeyProcess) String

func (p TssKeyProcess) String() string

Stringer method.

func (*TssKeyProcess) Unmarshal

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

func (TssKeyProcess) ValidateBasic

func (p TssKeyProcess) ValidateBasic() error

ValidateBasic performs basic validation on TssKeyProcess fields

func (*TssKeyProcess) XXX_DiscardUnknown

func (m *TssKeyProcess) XXX_DiscardUnknown()

func (*TssKeyProcess) XXX_Marshal

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

func (*TssKeyProcess) XXX_Merge

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

func (*TssKeyProcess) XXX_Size

func (m *TssKeyProcess) XXX_Size() int

func (*TssKeyProcess) XXX_Unmarshal

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

type TssKeyProcessStatus

type TssKeyProcessStatus int32
const (
	TssKeyProcessStatus_TSS_KEY_PROCESS_PENDING TssKeyProcessStatus = 0
	TssKeyProcessStatus_TSS_KEY_PROCESS_SUCCESS TssKeyProcessStatus = 1
	TssKeyProcessStatus_TSS_KEY_PROCESS_FAILED  TssKeyProcessStatus = 2
)

func (TssKeyProcessStatus) EnumDescriptor

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

func (TssKeyProcessStatus) String

func (x TssKeyProcessStatus) String() string

type TssProcessInitiatedEvent

type TssProcessInitiatedEvent struct {
	ProcessID    uint64   `json:"process_id"`
	ProcessType  string   `json:"process_type"`
	Participants []string `json:"participants"`
	ExpiryHeight int64    `json:"expiry_height"`
}

TssProcessInitiatedEvent represents the emitted event when a new TSS key process starts.

func (TssProcessInitiatedEvent) String

func (e TssProcessInitiatedEvent) String() string

String returns a readable log for CLI.

type TssProcessType

type TssProcessType int32
const (
	TssProcessType_TSS_PROCESS_KEYGEN        TssProcessType = 0
	TssProcessType_TSS_PROCESS_REFRESH       TssProcessType = 1
	TssProcessType_TSS_PROCESS_QUORUM_CHANGE TssProcessType = 2
)

func (TssProcessType) EnumDescriptor

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

func (TssProcessType) String

func (x TssProcessType) String() string

type UValidatorKeeper

type UValidatorKeeper interface {
	IsTombstonedUniversalValidator(ctx context.Context, universalValidator string) (bool, error)
	IsBondedUniversalValidator(ctx context.Context, universalValidator string) (bool, error)
	VoteOnBallot(
		ctx context.Context,
		id string,
		ballotType uvalidatortypes.BallotObservationType,
		voter string,
		voteResult uvalidatortypes.VoteResult,
		voters []string,
		votesNeeded int64,
		expiryAfterBlocks int64,
	) (
		ballot uvalidatortypes.Ballot,
		isFinalized bool,
		isNew bool,
		err error)
	GetEligibleVoters(ctx context.Context) ([]uvalidatortypes.UniversalValidator, error)
	GetAllUniversalValidators(ctx context.Context) ([]uvalidatortypes.UniversalValidator, error)
	UpdateValidatorStatus(ctx context.Context, addr sdk.ValAddress, newStatus uvalidatortypes.UVStatus) error
}

Uvalidator keeper

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) InitiateTssKeyProcess

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) VoteTssKeyProcess

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllKeys

func (*UnimplementedQueryServer) AllProcesses

func (*UnimplementedQueryServer) CurrentKey

func (*UnimplementedQueryServer) CurrentProcess

func (*UnimplementedQueryServer) KeyById

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ProcessById

Jump to

Keyboard shortcuts

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