types

package
v3.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateGroup       = "create_group"
	EventTypeExpiredGroup      = "expired_group"
	EventTypeSubmitDKGRound1   = "submit_dkg_round1"
	EventTypeRound1Success     = "round1_success"
	EventTypeSubmitDKGRound2   = "submit_dkg_round2"
	EventTypeRound2Success     = "round2_success"
	EventTypeComplainSuccess   = "complain_success"
	EventTypeComplainFailed    = "complain_failed"
	EventTypeConfirmSuccess    = "confirm_success"
	EventTypeRound3Success     = "round3_success"
	EventTypeRound3Failed      = "round3_failed"
	EventTypeRequestSignature  = "request_signature"
	EventTypeCreateSigning     = "create_signing_request"
	EventTypeSigningSuccess    = "signing_success"
	EventTypeSigningFailed     = "signing_failed"
	EventTypeSubmitSignature   = "submit_signature"
	EventTypeDEDeleted         = "de_deleted"
	EventTypeSetMemberIsActive = "set_member_is_active"

	AttributeKeyGroupID        = "group_id"
	AttributeKeyMemberID       = "member_id"
	AttributeKeyAddress        = "address"
	AttributeKeySize           = "size"
	AttributeKeyThreshold      = "threshold"
	AttributeKeyPubKey         = "pub_key"
	AttributeKeyStatus         = "status"
	AttributeKeyDKGContext     = "dkg_context"
	AttributeKeyModuleOwner    = "module_owner"
	AttributeKeyRound1Info     = "round1_info"
	AttributeKeyRound2Info     = "round2_info"
	AttributeKeyComplainantID  = "complainant_id"
	AttributeKeyRespondentID   = "respondent_id"
	AttributeKeyKeySym         = "key_sym"
	AttributeKeySignature      = "signature"
	AttributeKeyOwnPubKeySig   = "own_pub_key_sig"
	AttributeKeySigningID      = "signing_id"
	AttributeKeyReason         = "reason"
	AttributeKeyMessage        = "message"
	AttributeKeyGroupPubNonce  = "group_pub_nonce"
	AttributeKeyAttempt        = "attempt"
	AttributeKeyPubNonce       = "pub_nonce"
	AttributeKeyBindingFactor  = "binding_factor"
	AttributeKeyPubD           = "pub_d"
	AttributeKeyPubE           = "pub_e"
	AttributeKeyContent        = "content"
	AttributeKeyContentType    = "content_type"
	AttributeKeyOriginator     = "originator"
	AttributeKeyOriginatorType = "originator_type"
	AttributeKeyMemberStatus   = "member_status"
)
View Source
const (
	// module name
	ModuleName = "tss"

	// StoreKey to be used when creating the KVStore.
	StoreKey = ModuleName

	// RouterKey is the message route for the tss module
	RouterKey = ModuleName

	// QuerierRoute is the querier route for the tss module
	QuerierRoute = ModuleName
)
View Source
const (
	DirectOriginatorPrefix = "\xb3\x9f\xa5\xd2" // tss.Hash([]byte("DirectOriginator"))[:4]
	TunnelOriginatorPrefix = "\x72\xeb\xe8\x3d" // tss.Hash([]byte("TunnelOriginator"))[:4]
)
View Source
const (
	DefaultMaxGroupSize      = uint64(20)
	DefaultMaxDESize         = uint64(300)
	DefaultCreationPeriod    = uint64(30000)
	DefaultSigningPeriod     = uint64(100)
	DefaultMaxSigningAttempt = uint64(5)
	DefaultMaxMemoLength     = uint64(100)
	DefaultMaxMessageLength  = uint64(1000)
)
View Source
const (
	SignatureOrderTypeText string = "text"
)

Signature order types

Variables

View Source
var (
	ErrGroupCreationFailed                = errorsmod.Register(ModuleName, 2, "fail to create group")
	ErrGroupNotFound                      = errorsmod.Register(ModuleName, 3, "group not found")
	ErrMemberNotFound                     = errorsmod.Register(ModuleName, 4, "member not found")
	ErrMemberAlreadySubmit                = errorsmod.Register(ModuleName, 5, "member is already submit message")
	ErrRound1InfoNotFound                 = errorsmod.Register(ModuleName, 6, "round 1 info not found")
	ErrDKGContextNotFound                 = errorsmod.Register(ModuleName, 7, "dkg context not found")
	ErrInvalidGroupStatus                 = errorsmod.Register(ModuleName, 8, "invalid group status")
	ErrVerifyOneTimeSignatureFailed       = errorsmod.Register(ModuleName, 9, "failed to verify one time signature")
	ErrVerifyA0SignatureFailed            = errorsmod.Register(ModuleName, 10, "failed to verify a0 signature")
	ErrAddCoeffCommit                     = errorsmod.Register(ModuleName, 11, "failed to add coefficient commit")
	ErrInvalidLengthCoeffCommits          = errorsmod.Register(ModuleName, 12, "coefficients commit length is invalid")
	ErrRound2InfoNotFound                 = errorsmod.Register(ModuleName, 13, "round 2 info not found")
	ErrInvalidLengthEncryptedSecretShares = errorsmod.Register(
		ModuleName,
		14,
		"encrypted secret shares length is invalid",
	)
	ErrComputeOwnPubKeyFailed       = errorsmod.Register(ModuleName, 15, "failed to compute own public key")
	ErrComplainFailed               = errorsmod.Register(ModuleName, 16, "failed to complain")
	ErrConfirmFailed                = errorsmod.Register(ModuleName, 17, "failed to confirm")
	ErrConfirmNotFound              = errorsmod.Register(ModuleName, 18, "confirm not found")
	ErrComplaintsWithStatusNotFound = errorsmod.Register(ModuleName, 19, "complaints with status not found")
	ErrDENotFound                   = errorsmod.Register(ModuleName, 20, "DE not found")
	ErrGroupIsNotActive             = errorsmod.Register(ModuleName, 21, "group is not active")
	ErrInsufficientSigners          = errorsmod.Register(ModuleName, 22, "insufficient members for signing message")
	ErrBadDrbgInitialization        = errorsmod.Register(ModuleName, 23, "bad drbg initialization")
	ErrPartialSignatureNotFound     = errorsmod.Register(ModuleName, 24, "partial signature not found")
	ErrSubmitSignatureFailed        = errorsmod.Register(ModuleName, 25, "fail to submit signature")
	ErrSigningNotFound              = errorsmod.Register(ModuleName, 26, "signing not found")
	ErrAlreadySigned                = errorsmod.Register(ModuleName, 27, "already signed")
	ErrSigningAlreadySuccess        = errorsmod.Register(ModuleName, 28, "signing already success")
	ErrMemberNotAssigned            = errorsmod.Register(ModuleName, 29, "member is not assigned")
	ErrSubmitSigningSignatureFailed = errorsmod.Register(ModuleName, 30, "failed to submit signing signature")
	ErrDELimitExceeded              = errorsmod.Register(ModuleName, 31, "the number of DEs exceeds the limit")
	ErrHandleSignatureOrderFailed   = errorsmod.Register(ModuleName, 32, "failed to handle signature order")
	ErrHandlerNotFound              = errorsmod.Register(ModuleName, 33, "handler not found")
	ErrInvalidCoefficientCommit     = errorsmod.Register(ModuleName, 34, "invalid coefficient commit")
	ErrInvalidPublicKey             = errorsmod.Register(ModuleName, 35, "invalid public key")
	ErrInvalidSignature             = errorsmod.Register(ModuleName, 36, "invalid signature")
	ErrInvalidSecretShare           = errorsmod.Register(ModuleName, 37, "invalid secret share")
	ErrInvalidComplaint             = errorsmod.Register(ModuleName, 38, "invalid complaint")
	ErrInvalidDE                    = errorsmod.Register(ModuleName, 39, "invalid DE")
	ErrMaxSigningAttemptExceeded    = errorsmod.Register(ModuleName, 40, "signing attempt exceeds the limit")
	ErrEncodeOriginatorFailed       = errorsmod.Register(ModuleName, 41, "failed to encode originator")
	ErrInvalidOriginator            = errorsmod.Register(ModuleName, 42, "invalid originator")
	ErrInvalidMessage               = errorsmod.Register(ModuleName, 43, "invalid message")
	ErrSigningAttemptNotFound       = errorsmod.Register(ModuleName, 44, "signing attempt not found")
	ErrInvalidMember                = errorsmod.Register(ModuleName, 45, "invalid member")
	ErrInvalidGroup                 = errorsmod.Register(ModuleName, 46, "invalid group")
	ErrInvalidSigning               = errorsmod.Register(ModuleName, 47, "invalid signing")
	ErrCreateSigningFailed          = errorsmod.Register(ModuleName, 48, "failed to create signing")
)

x/tss module sentinel errors

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 (
	// global store keys
	GroupCountStoreKey           = []byte{0x00}
	SigningCountStoreKey         = []byte{0x01}
	PendingProcessGroupsStoreKey = []byte{0x02} // for processing group at endblock
	PendingSigningsStoreKey      = []byte{0x03} // for signing aggregation at endblock
	LastExpiredGroupIDStoreKey   = []byte{0x04} // for processing group expiration at endblock
	SigningExpirationsStoreKey   = []byte{0x05} // for process signing expiration at endblock

	// store prefixes for group, member
	GroupStoreKeyPrefix  = []byte{0x10}
	MemberStoreKeyPrefix = []byte{0x11}

	// store prefixes for group creation
	DKGContextStoreKeyPrefix           = []byte{0x12}
	Round1InfoStoreKeyPrefix           = []byte{0x13}
	Round1InfoCountStoreKeyPrefix      = []byte{0x14}
	AccumulatedCommitStoreKeyPrefix    = []byte{0x15}
	Round2InfoStoreKeyPrefix           = []byte{0x16}
	Round2InfoCountStoreKeyPrefix      = []byte{0x17}
	ComplainsWithStatusStoreKeyPrefix  = []byte{0x18}
	ConfirmStoreKeyPrefix              = []byte{0x19}
	ConfirmComplainCountStoreKeyPrefix = []byte{0x1a}

	// store prefixes for DE
	DEStoreKeyPrefix      = []byte{0x1b}
	DEQueueStoreKeyPrefix = []byte{0x1c}

	// store prefixes for signing
	SigningStoreKeyPrefix               = []byte{0x1d}
	PartialSignatureCountStoreKeyPrefix = []byte{0x1e}
	PartialSignatureStoreKeyPrefix      = []byte{0x1f}
	SigningAttemptStoreKeyPrefix        = []byte{0x20}

	// param store key
	ParamsKey = []byte{0x90}
)
View Source
var (
	ErrInvalidLengthOriginator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOriginator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOriginator = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthTss        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTss          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTss = 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 ComplaintStatus_name = map[int32]string{
	0: "COMPLAINT_STATUS_UNSPECIFIED",
	1: "COMPLAINT_STATUS_SUCCESS",
	2: "COMPLAINT_STATUS_FAILED",
}
View Source
var ComplaintStatus_value = map[string]int32{
	"COMPLAINT_STATUS_UNSPECIFIED": 0,
	"COMPLAINT_STATUS_SUCCESS":     1,
	"COMPLAINT_STATUS_FAILED":      2,
}
View Source
var GroupStatus_name = map[int32]string{
	0: "GROUP_STATUS_UNSPECIFIED",
	1: "GROUP_STATUS_ROUND_1",
	2: "GROUP_STATUS_ROUND_2",
	3: "GROUP_STATUS_ROUND_3",
	4: "GROUP_STATUS_ACTIVE",
	5: "GROUP_STATUS_EXPIRED",
	6: "GROUP_STATUS_FALLEN",
}
View Source
var GroupStatus_value = map[string]int32{
	"GROUP_STATUS_UNSPECIFIED": 0,
	"GROUP_STATUS_ROUND_1":     1,
	"GROUP_STATUS_ROUND_2":     2,
	"GROUP_STATUS_ROUND_3":     3,
	"GROUP_STATUS_ACTIVE":      4,
	"GROUP_STATUS_EXPIRED":     5,
	"GROUP_STATUS_FALLEN":      6,
}
View Source
var SigningStatus_name = map[int32]string{
	0: "SIGNING_STATUS_UNSPECIFIED",
	1: "SIGNING_STATUS_WAITING",
	2: "SIGNING_STATUS_SUCCESS",
	3: "SIGNING_STATUS_FALLEN",
}
View Source
var SigningStatus_value = map[string]int32{
	"SIGNING_STATUS_UNSPECIFIED": 0,
	"SIGNING_STATUS_WAITING":     1,
	"SIGNING_STATUS_SUCCESS":     2,
	"SIGNING_STATUS_FALLEN":      3,
}

Functions

func AccumulatedCommitStoreKey

func AccumulatedCommitStoreKey(groupID tss.GroupID, index uint64) []byte

AccumulatedCommitStoreKey returns the key for storing accumulated commit of a group.

func AccumulatedCommitsStoreKey

func AccumulatedCommitsStoreKey(groupID tss.GroupID) []byte

AccumulatedCommitsStoreKey returns the prefix for AccumulatedCommitStoreKey.

func ComplainsWithStatusStoreKey

func ComplainsWithStatusStoreKey(groupID tss.GroupID, memberID tss.MemberID) []byte

ComplainsWithStatusStoreKey returns the key for storing complain with status of a given member.

func ComplainsWithStatusesStoreKey

func ComplainsWithStatusesStoreKey(groupID tss.GroupID) []byte

ComplainsWithStatusesStoreKey returns the prefix for ComplainsWithStatusStoreKey.

func ConfirmComplainCountStoreKey

func ConfirmComplainCountStoreKey(groupID tss.GroupID) []byte

ConfirmComplainCountStoreKey returns the key for storing confirm complain count.

func ConfirmStoreKey

func ConfirmStoreKey(groupID tss.GroupID, memberID tss.MemberID) []byte

ConfirmStoreKey returns the key for storing confirm information of a given member.

func ConfirmsStoreKey

func ConfirmsStoreKey(groupID tss.GroupID) []byte

ConfirmsStoreKey returns the prefix for ConfirmStoreKey.

func DEQueueStoreKey

func DEQueueStoreKey(address sdk.AccAddress) []byte

DEQueueStoreKey returns the key for storing the queue information (head and tail index) of DE of specific address.

func DEStoreKey

func DEStoreKey(address sdk.AccAddress, index uint64) []byte

DEStoreKey returns the key for storing whether DE exists or not.

func DEsStoreKey

func DEsStoreKey(address sdk.AccAddress) []byte

DEsStoreKey returns the prefix of the key for user's DE.

func DKGContextStoreKey

func DKGContextStoreKey(groupID tss.GroupID) []byte

DKGContextStoreKey returns the key for storing dkg context information.

func EncodeSigning

func EncodeSigning(
	ctx sdk.Context,
	signingID uint64,
	originator []byte,
	contentMsg []byte,
) []byte

EncodeSigning forms a bytes of message for signing.

func ExtractAddressFromDEQueueStoreKey

func ExtractAddressFromDEQueueStoreKey(key []byte) sdk.AccAddress

ExtractAddressFromDEQueueStoreKey returns address that is retrieved from the key.

func FindMemberSlot

func FindMemberSlot(from tss.MemberID, to tss.MemberID) tss.MemberID

FindMemberSlot is used to figure out the position of 'to' within an array. This array follows a pattern defined by a rule (f_i(j)), where j ('to') != i ('from').

func GetGrantMsgTypes

func GetGrantMsgTypes() []string

GetGrantMsgTypes get message types that can be granted. NOTE: have to be a function, or else sdk cannot find msgTypeURL for granting.

func GroupStoreKey

func GroupStoreKey(groupID tss.GroupID) []byte

GroupStoreKey returns the key for storing group information.

func MemberIDFromPartialSignatureStoreKey

func MemberIDFromPartialSignatureStoreKey(key []byte) tss.MemberID

MemberIDFromPartialSignatureStoreKey returns the memberID that is retrieved from the key.

func MemberStoreKey

func MemberStoreKey(groupID tss.GroupID, memberID tss.MemberID) []byte

MemberStoreKey returns the key for storing member information.

func MembersStoreKey

func MembersStoreKey(groupID tss.GroupID) []byte

MembersStoreKey returns the prefix of the MemberStoreKey for specific groupID.

func PartialSignatureCountStoreKey

func PartialSignatureCountStoreKey(signingID tss.SigningID, attempt uint64) []byte

PartialSignatureCountStoreKey returns the key for storing signature count information.

func PartialSignatureCountsStoreKey

func PartialSignatureCountsStoreKey(signingID tss.SigningID) []byte

PartialSignatureCountsStoreKey returns the prefix key for PartialSignatureCount store key.

func PartialSignatureStoreKey

func PartialSignatureStoreKey(signingID tss.SigningID, attempt uint64, memberID tss.MemberID) []byte

PartialSignatureStoreKey returns the key for storing partial signature information of a given member.

func PartialSignaturesBySigningIDStoreKey

func PartialSignaturesBySigningIDStoreKey(signingID tss.SigningID) []byte

PartialSignaturesBySigningIDStoreKey returns the prefix for PartialSignaturesStoreKey.

func PartialSignaturesStoreKey

func PartialSignaturesStoreKey(signingID tss.SigningID, attempt uint64) []byte

PartialSignaturesStoreKey returns the prefix for PartialSignatureStoreKey.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the x/tss interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/tss interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

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)

func Round1InfoCountStoreKey

func Round1InfoCountStoreKey(groupID tss.GroupID) []byte

Round1InfoCountStoreKey returns the key for storing round-1 information count.

func Round1InfoStoreKey

func Round1InfoStoreKey(groupID tss.GroupID, memberID tss.MemberID) []byte

Round1InfoStoreKey returns the key for storing round-1 information of a given member.

func Round1InfosStoreKey

func Round1InfosStoreKey(groupID tss.GroupID) []byte

Round1InfosStoreKey returns the prefix for Round1InfoStoreKey.

func Round2InfoCountStoreKey

func Round2InfoCountStoreKey(groupID tss.GroupID) []byte

Round2InfoCountStoreKey returns the key for storing round-2 information count.

func Round2InfoStoreKey

func Round2InfoStoreKey(groupID tss.GroupID, memberID tss.MemberID) []byte

Round2InfoStoreKey returns the key for storing round-2 information of a given member.

func Round2InfosStoreKey

func Round2InfosStoreKey(groupID tss.GroupID) []byte

Round2InfosStoreKey returns the prefix for Round2InfoStoreKey.

func SigningAttemptStoreKey

func SigningAttemptStoreKey(signingID tss.SigningID, attempt uint64) []byte

SigningAttemptStoreKey returns the key for storing signingAttempt information.

func SigningAttemptsStoreKey

func SigningAttemptsStoreKey(signingID tss.SigningID) []byte

SigningAttemptsStoreKey returns the prefix key for SigningAttemptStoreKey.

func SigningStoreKey

func SigningStoreKey(signingID tss.SigningID) []byte

SigningStoreKey returns the key for storing signing information.

Types

type AssignedMember

type AssignedMember struct {
	// member_id is the unique identifier of the member.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// member is the human-readable name of the member.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// pub_key is the public part of a member.
	PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// pub_d is the public part of a member's decryption key.
	PubD github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 129-byte string literal not displayed */
	// pub_e is the public part of a member's encryption key.
	PubE github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 129-byte string literal not displayed */
	// binding_factor is the binding factor of the member for the signing process.
	BindingFactor github_com_bandprotocol_chain_v3_pkg_tss.Scalar `` /* 157-byte string literal not displayed */
	// pub_nonce is the public nonce of the member for the signing process.
	PubNonce github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 141-byte string literal not displayed */
}

AssignedMember is a type representing a member that has been assigned to a signing process.

func NewAssignedMember

func NewAssignedMember(
	member Member,
	de DE,
	bindingFactor tss.Scalar,
	pubNonce tss.Point,
) AssignedMember

NewAssignedMember creates a new AssignedMember instance.

func (*AssignedMember) Descriptor

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

func (*AssignedMember) Equal

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

func (*AssignedMember) GetAddress

func (m *AssignedMember) GetAddress() string

func (*AssignedMember) GetBindingFactor

func (*AssignedMember) GetMemberID

func (*AssignedMember) GetPubD

func (*AssignedMember) GetPubE

func (*AssignedMember) GetPubKey

func (*AssignedMember) GetPubNonce

func (*AssignedMember) Marshal

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

func (*AssignedMember) MarshalTo

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

func (*AssignedMember) MarshalToSizedBuffer

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

func (*AssignedMember) ProtoMessage

func (*AssignedMember) ProtoMessage()

func (*AssignedMember) Reset

func (m *AssignedMember) Reset()

func (*AssignedMember) Size

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

func (*AssignedMember) String

func (m *AssignedMember) String() string

func (*AssignedMember) Unmarshal

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

func (*AssignedMember) XXX_DiscardUnknown

func (m *AssignedMember) XXX_DiscardUnknown()

func (*AssignedMember) XXX_Marshal

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

func (*AssignedMember) XXX_Merge

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

func (*AssignedMember) XXX_Size

func (m *AssignedMember) XXX_Size() int

func (*AssignedMember) XXX_Unmarshal

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

type AssignedMembers

type AssignedMembers []AssignedMember

AssignedMembers represents a slice of AssignedMember values.

func (AssignedMembers) FindAssignedMember

func (ams AssignedMembers) FindAssignedMember(mid tss.MemberID) (AssignedMember, bool)

FindAssignedMember searches for an assigned member in the AssignedMembers slice with a matching MemberID.

func (AssignedMembers) MemberIDs

func (ams AssignedMembers) MemberIDs() (mids []tss.MemberID)

MemberIDs returns a list of MemberIDs extracted from the AssignedMembers slice.

func (AssignedMembers) PubDs

func (ams AssignedMembers) PubDs() (pubDs tss.Points)

PubDs returns a list of public D points extracted from the AssignedMembers slice.

func (AssignedMembers) PubEs

func (ams AssignedMembers) PubEs() (pubEs tss.Points)

PubEs returns a list of public E points extracted from the AssignedMembers slice.

func (AssignedMembers) PubNonces

func (ams AssignedMembers) PubNonces() (pubNonces tss.Points)

PubNonces returns a list of public nonce points extracted from the AssignedMembers slice.

func (AssignedMembers) VerifySignatureR

func (ams AssignedMembers) VerifySignatureR(mid tss.MemberID, r tss.Point) bool

VerifySignatureR checks if a given MemberID has a matching public nonce (R) in the AssignedMembers slice.

type AuthzKeeper

type AuthzKeeper interface {
	GetAuthorization(
		ctx context.Context,
		grantee sdk.AccAddress,
		granter sdk.AccAddress,
		msgType string,
	) (authz.Authorization, *time.Time)
	SaveGrant(
		ctx context.Context,
		grantee, granter sdk.AccAddress,
		authorization authz.Authorization,
		expiration *time.Time,
	) error
}

AuthzKeeper defines the expected authz keeper. for query and testing only don't use to create/remove grant on deliver tx

type CallbackRouter

type CallbackRouter struct {
	// contains filtered or unexported fields
}

CallbackRouter is a struct that holds a map of TSSCallback objects for each module.

func NewCallbackRouter

func NewCallbackRouter() *CallbackRouter

NewCallbackRouter creates a new CallbackRouter instance.

func (*CallbackRouter) AddRoute

func (cbr *CallbackRouter) AddRoute(module string, cbs TSSCallback) *CallbackRouter

AddRoute adds TSSCallback for a given module name. It returns the CallbackRouter so that the function can be chained. It will panic if the CallbackRouter is sealed.

func (*CallbackRouter) GetRoute

func (cbr *CallbackRouter) GetRoute(module string) (TSSCallback, bool)

GetRoute returns a TSSCallback for a given module.

func (*CallbackRouter) HasRoute

func (cbr *CallbackRouter) HasRoute(module string) bool

HasRoute returns whether the given module is registered.

func (*CallbackRouter) Seal

func (cbr *CallbackRouter) Seal()

Seal seals the CallbackRouter which prohibits any subsequent TSSCallback to be added. Seal will panic if called more than once.

func (CallbackRouter) Sealed

func (cbr CallbackRouter) Sealed() bool

Sealed returns whether the CallbackRouter can be changed or not.

type Complaint

type Complaint struct {
	// complainant is the member issuing the complaint.
	Complainant github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 135-byte string literal not displayed */
	// respondent is the member against whom the complaint is issued.
	Respondent github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 133-byte string literal not displayed */
	// key_sym is a symmetric key between respondent's private key and respondent's public key.
	KeySym github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// signature is the complaint signature that can do a symmetric key validation and complaint verification.
	Signature github_com_bandprotocol_chain_v3_pkg_tss.ComplaintSignature `` /* 140-byte string literal not displayed */
}

Complaint is a message type used to issue a complaint against a member.

func NewComplaint

func NewComplaint(
	complainant tss.MemberID,
	respondent tss.MemberID,
	keySym tss.Point,
	complaintSig tss.ComplaintSignature,
) Complaint

NewComplaint creates a new Complaint instance.

func (*Complaint) Descriptor

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

func (*Complaint) Equal

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

func (*Complaint) GetComplainant

func (*Complaint) GetKeySym

func (*Complaint) GetRespondent

func (*Complaint) Marshal

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

func (*Complaint) MarshalTo

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

func (*Complaint) MarshalToSizedBuffer

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

func (*Complaint) ProtoMessage

func (*Complaint) ProtoMessage()

func (*Complaint) Reset

func (m *Complaint) Reset()

func (*Complaint) Size

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

func (*Complaint) String

func (m *Complaint) String() string

func (*Complaint) Unmarshal

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

func (Complaint) Validate

func (c Complaint) Validate() error

Validate performs basic validation of complaint information.

func (*Complaint) XXX_DiscardUnknown

func (m *Complaint) XXX_DiscardUnknown()

func (*Complaint) XXX_Marshal

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

func (*Complaint) XXX_Merge

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

func (*Complaint) XXX_Size

func (m *Complaint) XXX_Size() int

func (*Complaint) XXX_Unmarshal

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

type ComplaintStatus

type ComplaintStatus int32

ComplaintStatus represents the status of a complaint.

const (
	// COMPLAINT_STATUS_UNSPECIFIED represents an undefined status of the complaint.
	COMPLAINT_STATUS_UNSPECIFIED ComplaintStatus = 0
	// COMPLAINT_STATUS_SUCCESS represents a successful complaint.
	COMPLAINT_STATUS_SUCCESS ComplaintStatus = 1
	// COMPLAINT_STATUS_FAILED represents a failed complaint.
	COMPLAINT_STATUS_FAILED ComplaintStatus = 2
)

func (ComplaintStatus) EnumDescriptor

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

func (ComplaintStatus) String

func (x ComplaintStatus) String() string

type ComplaintWithStatus

type ComplaintWithStatus struct {
	// complaint is the information about the complaint.
	Complaint Complaint `protobuf:"bytes,1,opt,name=complaint,proto3" json:"complaint"`
	// complaint_status is the status of the complaint.
	ComplaintStatus ComplaintStatus `` /* 145-byte string literal not displayed */
}

ComplaintWithStatus contains information about a complaint with its status.

func NewComplaintWithStatus

func NewComplaintWithStatus(complaint Complaint, status ComplaintStatus) ComplaintWithStatus

NewComplaintWithStatus creates a new Complaint instance with its status.

func (*ComplaintWithStatus) Descriptor

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

func (*ComplaintWithStatus) Equal

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

func (*ComplaintWithStatus) GetComplaint

func (m *ComplaintWithStatus) GetComplaint() Complaint

func (*ComplaintWithStatus) GetComplaintStatus

func (m *ComplaintWithStatus) GetComplaintStatus() ComplaintStatus

func (*ComplaintWithStatus) Marshal

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

func (*ComplaintWithStatus) MarshalTo

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

func (*ComplaintWithStatus) MarshalToSizedBuffer

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

func (*ComplaintWithStatus) ProtoMessage

func (*ComplaintWithStatus) ProtoMessage()

func (*ComplaintWithStatus) Reset

func (m *ComplaintWithStatus) Reset()

func (*ComplaintWithStatus) Size

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

func (*ComplaintWithStatus) String

func (m *ComplaintWithStatus) String() string

func (*ComplaintWithStatus) Unmarshal

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

func (*ComplaintWithStatus) XXX_DiscardUnknown

func (m *ComplaintWithStatus) XXX_DiscardUnknown()

func (*ComplaintWithStatus) XXX_Marshal

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

func (*ComplaintWithStatus) XXX_Merge

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

func (*ComplaintWithStatus) XXX_Size

func (m *ComplaintWithStatus) XXX_Size() int

func (*ComplaintWithStatus) XXX_Unmarshal

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

type ComplaintsWithStatus

type ComplaintsWithStatus struct {
	// member_id is the identifier of the member filing the complaints.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// complaints_with_status is the list of complaints with their status from this member.
	ComplaintsWithStatus []ComplaintWithStatus `protobuf:"bytes,2,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"`
}

ComplaintsWithStatus contains information about multiple complaints and their status from a single member.

func (*ComplaintsWithStatus) Descriptor

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

func (*ComplaintsWithStatus) Equal

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

func (*ComplaintsWithStatus) GetComplaintsWithStatus

func (m *ComplaintsWithStatus) GetComplaintsWithStatus() []ComplaintWithStatus

func (*ComplaintsWithStatus) GetMemberID

func (*ComplaintsWithStatus) Marshal

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

func (*ComplaintsWithStatus) MarshalTo

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

func (*ComplaintsWithStatus) MarshalToSizedBuffer

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

func (*ComplaintsWithStatus) ProtoMessage

func (*ComplaintsWithStatus) ProtoMessage()

func (*ComplaintsWithStatus) Reset

func (m *ComplaintsWithStatus) Reset()

func (*ComplaintsWithStatus) Size

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

func (*ComplaintsWithStatus) String

func (m *ComplaintsWithStatus) String() string

func (*ComplaintsWithStatus) Unmarshal

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

func (*ComplaintsWithStatus) XXX_DiscardUnknown

func (m *ComplaintsWithStatus) XXX_DiscardUnknown()

func (*ComplaintsWithStatus) XXX_Marshal

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

func (*ComplaintsWithStatus) XXX_Merge

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

func (*ComplaintsWithStatus) XXX_Size

func (m *ComplaintsWithStatus) XXX_Size() int

func (*ComplaintsWithStatus) XXX_Unmarshal

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

type Confirm

type Confirm struct {
	// member_id is the unique identifier of a group member.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// own_pub_key_sig is a signature over the member's own public key.
	OwnPubKeySig github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 161-byte string literal not displayed */
}

Confirm is a message type used to confirm participation in the protocol.

func NewConfirm

func NewConfirm(memberID tss.MemberID, ownPubKeySig tss.Signature) Confirm

NewConfirm creates a new Confirm instance.

func (*Confirm) Descriptor

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

func (*Confirm) Equal

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

func (*Confirm) GetMemberID

func (*Confirm) GetOwnPubKeySig

func (*Confirm) Marshal

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

func (*Confirm) MarshalTo

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

func (*Confirm) MarshalToSizedBuffer

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

func (*Confirm) ProtoMessage

func (*Confirm) ProtoMessage()

func (*Confirm) Reset

func (m *Confirm) Reset()

func (*Confirm) Size

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

func (*Confirm) String

func (m *Confirm) String() string

func (*Confirm) Unmarshal

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

func (*Confirm) XXX_DiscardUnknown

func (m *Confirm) XXX_DiscardUnknown()

func (*Confirm) XXX_Marshal

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

func (*Confirm) XXX_Merge

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

func (*Confirm) XXX_Size

func (m *Confirm) XXX_Size() int

func (*Confirm) XXX_Unmarshal

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

type Content

type Content interface {
	proto.Message

	OrderRoute() string
	OrderType() string
	IsInternal() bool

	ValidateBasic() error
}

Content defines an interface that a signature order must implement. It contains information such as the type and routing information for the appropriate handler to process the order. Content can have additional fields, which is handled by an order's Handler.

type ContentRouter

type ContentRouter struct {
	// contains filtered or unexported fields
}

func NewContentRouter

func NewContentRouter() *ContentRouter

NewContentRouter creates a new Router interface instance

func (*ContentRouter) AddRoute

func (r *ContentRouter) AddRoute(path string, h Handler) *ContentRouter

AddRoute adds signature handler for a given path. It returns the ContentRouter so that the function can be chained. It will panic if the ContentRouter is sealed.

func (*ContentRouter) GetRoute

func (r *ContentRouter) GetRoute(path string) Handler

GetRoute returns a Handler for a given path.

func (*ContentRouter) HasRoute

func (r *ContentRouter) HasRoute(path string) bool

HasRoute returns true whether the path is registered.

func (*ContentRouter) Seal

func (r *ContentRouter) Seal()

Seal seals the content router which prohibits any subsequent route handlers to be added. Seal will panic if called more than once.

func (*ContentRouter) Sealed

func (r *ContentRouter) Sealed() bool

Sealed returns whether the ContentRouter can be changed or not.

type DE

type DE struct {
	// pub_d is the public value of own commitment (D).
	PubD github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 129-byte string literal not displayed */
	// pub_e is the public value of own commitment (E).
	PubE github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 129-byte string literal not displayed */
}

DE contains the public parts of a member's decryption and encryption keys.

func NewDE

func NewDE(pubD tss.Point, pubE tss.Point) DE

NewDE creates a new DE instance.

func (*DE) Descriptor

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

func (*DE) Equal

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

func (*DE) Marshal

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

func (*DE) MarshalTo

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

func (*DE) MarshalToSizedBuffer

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

func (*DE) ProtoMessage

func (*DE) ProtoMessage()

func (*DE) Reset

func (m *DE) Reset()

func (*DE) Size

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

func (*DE) String

func (m *DE) String() string

func (*DE) Unmarshal

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

func (DE) Validate

func (d DE) Validate() error

Validate performs basic validation of de information.

func (*DE) XXX_DiscardUnknown

func (m *DE) XXX_DiscardUnknown()

func (*DE) XXX_Marshal

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

func (*DE) XXX_Merge

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

func (*DE) XXX_Size

func (m *DE) XXX_Size() int

func (*DE) XXX_Unmarshal

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

type DEGenesis

type DEGenesis struct {
	// address is the address of the de holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// de defines the difference de this balance holds.
	DE DE `protobuf:"bytes,2,opt,name=de,proto3" json:"de"`
}

DEGenesis defines an account address and de pair used in the tss module's genesis state.

func (*DEGenesis) Descriptor

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

func (*DEGenesis) GetAddress

func (m *DEGenesis) GetAddress() string

func (*DEGenesis) GetDE

func (m *DEGenesis) GetDE() DE

func (*DEGenesis) Marshal

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

func (*DEGenesis) MarshalTo

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

func (*DEGenesis) MarshalToSizedBuffer

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

func (*DEGenesis) ProtoMessage

func (*DEGenesis) ProtoMessage()

func (*DEGenesis) Reset

func (m *DEGenesis) Reset()

func (*DEGenesis) Size

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

func (*DEGenesis) String

func (m *DEGenesis) String() string

func (*DEGenesis) Unmarshal

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

func (*DEGenesis) XXX_DiscardUnknown

func (m *DEGenesis) XXX_DiscardUnknown()

func (*DEGenesis) XXX_Marshal

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

func (*DEGenesis) XXX_Merge

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

func (*DEGenesis) XXX_Size

func (m *DEGenesis) XXX_Size() int

func (*DEGenesis) XXX_Unmarshal

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

type DEQueue

type DEQueue struct {
	// head is the current index of the first element in the queue.
	Head uint64 `protobuf:"varint,1,opt,name=head,proto3" json:"head,omitempty"`
	// tail is the current index of the last element in the queue.
	Tail uint64 `protobuf:"varint,2,opt,name=tail,proto3" json:"tail,omitempty"`
}

DEQueue is a simple queue data structure contains index of existing DE objects of each member.

func NewDEQueue

func NewDEQueue(head uint64, tail uint64) DEQueue

NewDEQueue creates a new DEQueue instance.

func (*DEQueue) Descriptor

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

func (*DEQueue) Equal

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

func (*DEQueue) GetHead

func (m *DEQueue) GetHead() uint64

func (*DEQueue) GetTail

func (m *DEQueue) GetTail() uint64

func (*DEQueue) Marshal

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

func (*DEQueue) MarshalTo

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

func (*DEQueue) MarshalToSizedBuffer

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

func (*DEQueue) ProtoMessage

func (*DEQueue) ProtoMessage()

func (*DEQueue) Reset

func (m *DEQueue) Reset()

func (*DEQueue) Size

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

func (*DEQueue) String

func (m *DEQueue) String() string

func (*DEQueue) Unmarshal

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

func (*DEQueue) XXX_DiscardUnknown

func (m *DEQueue) XXX_DiscardUnknown()

func (*DEQueue) XXX_Marshal

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

func (*DEQueue) XXX_Merge

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

func (*DEQueue) XXX_Size

func (m *DEQueue) XXX_Size() int

func (*DEQueue) XXX_Unmarshal

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

type DirectOriginator

type DirectOriginator struct {
	// source_chain_id is the source chain ID that the data is originated from.
	SourceChainID string `protobuf:"bytes,1,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"`
	// requester is the address of the requester, it can be the user address or module address.
	Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"`
	// memo is the note of the message.
	Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
}

DirectOriginator is a message originator defines an information of the requester on direct TSS request.

func NewDirectOriginator

func NewDirectOriginator(sourceChainID, requester, memo string) DirectOriginator

NewDirectOriginator creates a new direct originator.

func (*DirectOriginator) Descriptor

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

func (DirectOriginator) Encode

func (o DirectOriginator) Encode() ([]byte, error)

Encode encodes the originator into a byte array.

func (*DirectOriginator) GetMemo

func (m *DirectOriginator) GetMemo() string

func (*DirectOriginator) GetRequester

func (m *DirectOriginator) GetRequester() string

func (*DirectOriginator) GetSourceChainID

func (m *DirectOriginator) GetSourceChainID() string

func (*DirectOriginator) Marshal

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

func (*DirectOriginator) MarshalTo

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

func (*DirectOriginator) MarshalToSizedBuffer

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

func (*DirectOriginator) ProtoMessage

func (*DirectOriginator) ProtoMessage()

func (*DirectOriginator) Reset

func (m *DirectOriginator) Reset()

func (*DirectOriginator) Size

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

func (*DirectOriginator) String

func (m *DirectOriginator) String() string

func (*DirectOriginator) Unmarshal

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

func (DirectOriginator) Validate

func (o DirectOriginator) Validate(p Params) error

Validate checks the validity of the originator.

func (*DirectOriginator) XXX_DiscardUnknown

func (m *DirectOriginator) XXX_DiscardUnknown()

func (*DirectOriginator) XXX_Marshal

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

func (*DirectOriginator) XXX_Merge

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

func (*DirectOriginator) XXX_Size

func (m *DirectOriginator) XXX_Size() int

func (*DirectOriginator) XXX_Unmarshal

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

type EVMSignature

type EVMSignature struct {
	// r_address is the address of the nonce for using in the contract.
	RAddress github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 143-byte string literal not displayed */
	// signature is the signature part for using in the contract.
	Signature github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 129-byte string literal not displayed */
}

EVMSignature defines a signature in the EVM format.

func NewEVMSignature

func NewEVMSignature(signature tss.Signature) (EVMSignature, error)

NewEVMSignature creates a new EVMSignature instance.

func (*EVMSignature) Descriptor

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

func (*EVMSignature) Equal

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

func (*EVMSignature) GetRAddress

func (*EVMSignature) GetSignature

func (*EVMSignature) Marshal

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

func (*EVMSignature) MarshalTo

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

func (*EVMSignature) MarshalToSizedBuffer

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

func (*EVMSignature) ProtoMessage

func (*EVMSignature) ProtoMessage()

func (*EVMSignature) Reset

func (m *EVMSignature) Reset()

func (*EVMSignature) Size

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

func (*EVMSignature) String

func (m *EVMSignature) String() string

func (*EVMSignature) Unmarshal

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

func (*EVMSignature) XXX_DiscardUnknown

func (m *EVMSignature) XXX_DiscardUnknown()

func (*EVMSignature) XXX_Marshal

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

func (*EVMSignature) XXX_Merge

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

func (*EVMSignature) XXX_Size

func (m *EVMSignature) XXX_Size() int

func (*EVMSignature) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// groups is an array containing information about each group.
	Groups []Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups"`
	// members is an array containing information about each member of groups.
	Members []Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members"`
	// des is an array containing the des of all the addressres.
	DEs []DEGenesis `protobuf:"bytes,4,rep,name=des,proto3" json:"des"`
}

GenesisState defines the tss module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default genesis state.

func NewGenesisState

func NewGenesisState(
	params Params,
	groups []Group,
	members []Member,
	desGenesis []DEGenesis,
) *GenesisState

NewGenesisState creates a new GenesisState instance.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDEs

func (m *GenesisState) GetDEs() []DEGenesis

func (*GenesisState) GetGroups

func (m *GenesisState) GetGroups() []Group

func (*GenesisState) GetMembers

func (m *GenesisState) GetMembers() []Member

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 validation of genesis data returning an error for any failed validation criteria.

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 Group

type Group struct {
	// id is the unique identifier of the group.
	ID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/chain/v3/pkg/tss.GroupID" json:"id,omitempty"`
	// size is the number of members in the group.
	Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// threshold is the minimum number of members needed to generate a valid signature.
	Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// pub_key is the public key generated by the group after successful completion of the DKG process.
	PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// status represents the current stage of the group in the DKG or signing process.
	Status GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"`
	// created_height is the block height when the group was created.
	CreatedHeight uint64 `protobuf:"varint,6,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"`
	// module_owner is the module that creates this group.
	ModuleOwner string `protobuf:"bytes,7,opt,name=module_owner,json=moduleOwner,proto3" json:"module_owner,omitempty"`
}

Group is a type representing a participant group in a Distributed Key Generation or signing process.

func NewGroup

func NewGroup(
	id tss.GroupID,
	size uint64,
	threshold uint64,
	pubKey tss.Point,
	status GroupStatus,
	createdHeight uint64,
	moduleOwner string,
) Group

NewGroup creates a new Group instance.

func (*Group) Descriptor

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

func (*Group) Equal

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

func (*Group) GetCreatedHeight

func (m *Group) GetCreatedHeight() uint64

func (*Group) GetModuleOwner

func (m *Group) GetModuleOwner() string

func (*Group) GetPubKey

func (*Group) GetSize_

func (m *Group) GetSize_() uint64

func (*Group) GetStatus

func (m *Group) GetStatus() GroupStatus

func (*Group) GetThreshold

func (m *Group) GetThreshold() uint64

func (*Group) Marshal

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

func (*Group) MarshalTo

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

func (*Group) MarshalToSizedBuffer

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

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) Size

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

func (*Group) String

func (m *Group) String() string

func (*Group) Unmarshal

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

func (Group) Validate

func (g Group) Validate() error

Validate performs basic validation of group information.

func (*Group) XXX_DiscardUnknown

func (m *Group) XXX_DiscardUnknown()

func (*Group) XXX_Marshal

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

func (*Group) XXX_Merge

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

func (*Group) XXX_Size

func (m *Group) XXX_Size() int

func (*Group) XXX_Unmarshal

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

type GroupResult

type GroupResult struct {
	// group defines the group object containing group information.
	Group Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
	// dkg_context defines the DKG context data.
	DKGContext github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 149-byte string literal not displayed */
	// members is the list of members in the group.
	Members []Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members"`
	// round1_infos is the list of Round 1 information.
	Round1Infos []Round1Info `protobuf:"bytes,4,rep,name=round1_infos,json=round1Infos,proto3" json:"round1_infos"`
	// round2_infos is the list of Round 2 information.
	Round2Infos []Round2Info `protobuf:"bytes,5,rep,name=round2_infos,json=round2Infos,proto3" json:"round2_infos"`
	// complaints_with_status is the list of complaints with status.
	ComplaintsWithStatus []ComplaintsWithStatus `protobuf:"bytes,6,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"`
	// confirms is the list of confirms.
	Confirms []Confirm `protobuf:"bytes,7,rep,name=confirms,proto3" json:"confirms"`
}

GroupResult is a tss group result from querying tss group information.

func (*GroupResult) Descriptor

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

func (*GroupResult) Equal

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

func (*GroupResult) GetComplaintsWithStatus

func (m *GroupResult) GetComplaintsWithStatus() []ComplaintsWithStatus

func (*GroupResult) GetConfirms

func (m *GroupResult) GetConfirms() []Confirm

func (*GroupResult) GetDKGContext

func (*GroupResult) GetGroup

func (m *GroupResult) GetGroup() Group

func (*GroupResult) GetMembers

func (m *GroupResult) GetMembers() []Member

func (*GroupResult) GetRound1Infos

func (m *GroupResult) GetRound1Infos() []Round1Info

func (*GroupResult) GetRound2Infos

func (m *GroupResult) GetRound2Infos() []Round2Info

func (*GroupResult) Marshal

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

func (*GroupResult) MarshalTo

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

func (*GroupResult) MarshalToSizedBuffer

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

func (*GroupResult) ProtoMessage

func (*GroupResult) ProtoMessage()

func (*GroupResult) Reset

func (m *GroupResult) Reset()

func (*GroupResult) Size

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

func (*GroupResult) String

func (m *GroupResult) String() string

func (*GroupResult) Unmarshal

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

func (*GroupResult) XXX_DiscardUnknown

func (m *GroupResult) XXX_DiscardUnknown()

func (*GroupResult) XXX_Marshal

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

func (*GroupResult) XXX_Merge

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

func (*GroupResult) XXX_Size

func (m *GroupResult) XXX_Size() int

func (*GroupResult) XXX_Unmarshal

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

type GroupStatus

type GroupStatus int32

GroupStatus is an enumeration of the possible statuses of a group.

const (
	// GROUP_STATUS_UNSPECIFIED is the status of a group that has not been specified.
	GROUP_STATUS_UNSPECIFIED GroupStatus = 0
	// GROUP_STATUS_ROUND_1 is the status of a group that is in the first round of the protocol.
	GROUP_STATUS_ROUND_1 GroupStatus = 1
	// GROUP_STATUS_ROUND_2 is the status of a group that is in the second round of the protocol.
	GROUP_STATUS_ROUND_2 GroupStatus = 2
	// GROUP_STATUS_ROUND_3 is the status of a group that is in the third round of the protocol.
	GROUP_STATUS_ROUND_3 GroupStatus = 3
	// GROUP_STATUS_ACTIVE is the status of a group that is actively participating in the protocol.
	GROUP_STATUS_ACTIVE GroupStatus = 4
	// GROUP_STATUS_EXPIRED is the status of a group that has expired in the protocol.
	GROUP_STATUS_EXPIRED GroupStatus = 5
	// GROUP_STATUS_FALLEN is the status of a group that has fallen out of the protocol.
	GROUP_STATUS_FALLEN GroupStatus = 6
)

func (GroupStatus) EnumDescriptor

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

func (GroupStatus) String

func (x GroupStatus) String() string

type Handler

type Handler func(ctx sdk.Context, content Content) ([]byte, error)

Handler defines a function that receive signature order and return message that should to be signed.

type Member

type Member struct {
	// id is the unique identifier of a member.
	ID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/chain/v3/pkg/tss.MemberID" json:"id,omitempty"`
	// group_id is the group id of this member.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// address is the address of the member.
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// pub_key is the public key of the member.
	PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// is_malicious is a boolean flag indicating whether the member is considered malicious.
	IsMalicious bool `protobuf:"varint,5,opt,name=is_malicious,json=isMalicious,proto3" json:"is_malicious,omitempty"`
	// is_active is a boolean flag indicating whether the member is currently active in the protocol.
	IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
}

Member is a type representing a member of the group.

func NewMember

func NewMember(
	id tss.MemberID,
	groupID tss.GroupID,
	addr sdk.AccAddress,
	pubKey tss.Point,
	isMalicious bool,
	isActive bool,
) Member

NewMember creates a new Member instance.

func (*Member) Descriptor

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

func (*Member) Equal

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

func (*Member) GetAddress

func (m *Member) GetAddress() string

func (*Member) GetGroupID

func (*Member) GetIsActive

func (m *Member) GetIsActive() bool

func (*Member) GetIsMalicious

func (m *Member) GetIsMalicious() bool

func (*Member) GetPubKey

func (*Member) Marshal

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

func (*Member) MarshalTo

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

func (*Member) MarshalToSizedBuffer

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

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

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

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

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

func (Member) Validate

func (m Member) Validate() error

Validate performs basic validation of group information.

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

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

func (*Member) XXX_Merge

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

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

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

type Members

type Members []Member

Members represents a slice of Member values.

func (Members) GetIDs

func (ms Members) GetIDs() []tss.MemberID

GetIDs returns an array of MemberIDs from a collection of members

func (Members) HaveMalicious

func (ms Members) HaveMalicious() bool

HaveMalicious checks if any member in the collection is marked as malicious

type MsgClient

type MsgClient interface {
	// SubmitDKGRound1 submits dkg for computing round 1.
	SubmitDKGRound1(ctx context.Context, in *MsgSubmitDKGRound1, opts ...grpc.CallOption) (*MsgSubmitDKGRound1Response, error)
	// SubmitDKGRound2 submits dkg for computing round 2.
	SubmitDKGRound2(ctx context.Context, in *MsgSubmitDKGRound2, opts ...grpc.CallOption) (*MsgSubmitDKGRound2Response, error)
	// Complain submits proof for complaining malicious.
	Complain(ctx context.Context, in *MsgComplain, opts ...grpc.CallOption) (*MsgComplainResponse, error)
	// Confirm submits own signature for proof that it can derive the secret.
	Confirm(ctx context.Context, in *MsgConfirm, opts ...grpc.CallOption) (*MsgConfirmResponse, error)
	// SubmitDEs submits list of pre-commits DE for signing process.
	SubmitDEs(ctx context.Context, in *MsgSubmitDEs, opts ...grpc.CallOption) (*MsgSubmitDEsResponse, error)
	// ResetDE resets the submitted DEs that being stored on chain.
	ResetDE(ctx context.Context, in *MsgResetDE, opts ...grpc.CallOption) (*MsgResetDEResponse, error)
	// SubmitSignature submits signature on task participant need to do.
	SubmitSignature(ctx context.Context, in *MsgSubmitSignature, opts ...grpc.CallOption) (*MsgSubmitSignatureResponse, error)
	// UpdateParams defines a governance operation for updating the x/tss module
	// parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgComplain

type MsgComplain struct {
	// group_id is ID of the group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// complaints is a list of complaints.
	Complaints []Complaint `protobuf:"bytes,2,rep,name=complaints,proto3" json:"complaints"`
	// sender is the user address that submits the group creation information;
	// must be a member of this group.
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgComplain is a message used to complain about malicious actors in the group.

func NewMsgComplain

func NewMsgComplain(groupID tss.GroupID, complaints []Complaint, sender string) *MsgComplain

NewMsgComplain creates a new MsgComplain instance.

func (*MsgComplain) Descriptor

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

func (*MsgComplain) GetComplaints

func (m *MsgComplain) GetComplaints() []Complaint

func (*MsgComplain) GetGroupID

func (*MsgComplain) GetSender

func (m *MsgComplain) GetSender() string

func (*MsgComplain) Marshal

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

func (*MsgComplain) MarshalTo

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

func (*MsgComplain) MarshalToSizedBuffer

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

func (*MsgComplain) ProtoMessage

func (*MsgComplain) ProtoMessage()

func (*MsgComplain) Reset

func (m *MsgComplain) Reset()

func (*MsgComplain) Size

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

func (*MsgComplain) String

func (m *MsgComplain) String() string

func (*MsgComplain) Unmarshal

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

func (MsgComplain) ValidateBasic

func (m MsgComplain) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgComplain) XXX_DiscardUnknown

func (m *MsgComplain) XXX_DiscardUnknown()

func (*MsgComplain) XXX_Marshal

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

func (*MsgComplain) XXX_Merge

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

func (*MsgComplain) XXX_Size

func (m *MsgComplain) XXX_Size() int

func (*MsgComplain) XXX_Unmarshal

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

type MsgComplainResponse

type MsgComplainResponse struct {
}

MsgComplainResponse is response data for MsgComplain message

func (*MsgComplainResponse) Descriptor

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

func (*MsgComplainResponse) Marshal

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

func (*MsgComplainResponse) MarshalTo

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

func (*MsgComplainResponse) MarshalToSizedBuffer

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

func (*MsgComplainResponse) ProtoMessage

func (*MsgComplainResponse) ProtoMessage()

func (*MsgComplainResponse) Reset

func (m *MsgComplainResponse) Reset()

func (*MsgComplainResponse) Size

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

func (*MsgComplainResponse) String

func (m *MsgComplainResponse) String() string

func (*MsgComplainResponse) Unmarshal

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

func (*MsgComplainResponse) XXX_DiscardUnknown

func (m *MsgComplainResponse) XXX_DiscardUnknown()

func (*MsgComplainResponse) XXX_Marshal

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

func (*MsgComplainResponse) XXX_Merge

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

func (*MsgComplainResponse) XXX_Size

func (m *MsgComplainResponse) XXX_Size() int

func (*MsgComplainResponse) XXX_Unmarshal

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

type MsgConfirm

type MsgConfirm struct {
	// group_id is ID of the group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// member_id is ID of the sender.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// own_pub_key_sig is a signature of the member_i on its own PubKey to confirm
	// that the address is able to derive the PubKey.
	OwnPubKeySig github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 161-byte string literal not displayed */
	// sender is the user address that submits the group creation information;
	// must be a member of this group.
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgConfirm is a message used to confirm own public key.

func NewMsgConfirm

func NewMsgConfirm(
	groupID tss.GroupID,
	memberID tss.MemberID,
	ownPubKeySig tss.Signature,
	sender string,
) *MsgConfirm

NewMsgConfirm creates a new MsgConfirm instance.

func (*MsgConfirm) Descriptor

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

func (*MsgConfirm) GetGroupID

func (*MsgConfirm) GetMemberID

func (*MsgConfirm) GetOwnPubKeySig

func (*MsgConfirm) GetSender

func (m *MsgConfirm) GetSender() string

func (*MsgConfirm) Marshal

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

func (*MsgConfirm) MarshalTo

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

func (*MsgConfirm) MarshalToSizedBuffer

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

func (*MsgConfirm) ProtoMessage

func (*MsgConfirm) ProtoMessage()

func (*MsgConfirm) Reset

func (m *MsgConfirm) Reset()

func (*MsgConfirm) Size

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

func (*MsgConfirm) String

func (m *MsgConfirm) String() string

func (*MsgConfirm) Unmarshal

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

func (MsgConfirm) ValidateBasic

func (m MsgConfirm) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgConfirm) XXX_DiscardUnknown

func (m *MsgConfirm) XXX_DiscardUnknown()

func (*MsgConfirm) XXX_Marshal

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

func (*MsgConfirm) XXX_Merge

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

func (*MsgConfirm) XXX_Size

func (m *MsgConfirm) XXX_Size() int

func (*MsgConfirm) XXX_Unmarshal

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

type MsgConfirmResponse

type MsgConfirmResponse struct {
}

MsgConfirmResponse is response data for MsgConfirm message

func (*MsgConfirmResponse) Descriptor

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

func (*MsgConfirmResponse) Marshal

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

func (*MsgConfirmResponse) MarshalTo

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

func (*MsgConfirmResponse) MarshalToSizedBuffer

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

func (*MsgConfirmResponse) ProtoMessage

func (*MsgConfirmResponse) ProtoMessage()

func (*MsgConfirmResponse) Reset

func (m *MsgConfirmResponse) Reset()

func (*MsgConfirmResponse) Size

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

func (*MsgConfirmResponse) String

func (m *MsgConfirmResponse) String() string

func (*MsgConfirmResponse) Unmarshal

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

func (*MsgConfirmResponse) XXX_DiscardUnknown

func (m *MsgConfirmResponse) XXX_DiscardUnknown()

func (*MsgConfirmResponse) XXX_Marshal

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

func (*MsgConfirmResponse) XXX_Merge

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

func (*MsgConfirmResponse) XXX_Size

func (m *MsgConfirmResponse) XXX_Size() int

func (*MsgConfirmResponse) XXX_Unmarshal

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

type MsgResetDE

type MsgResetDE struct {
	// sender is the user address that request for resetting DEs.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgResetDE is a message used to reset the DEs that being stored on chain.

func NewMsgResetDE

func NewMsgResetDE(sender string) *MsgResetDE

NewMsgResetDE creates a new MsgResetDE instance.

func (*MsgResetDE) Descriptor

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

func (*MsgResetDE) GetSender

func (m *MsgResetDE) GetSender() string

func (*MsgResetDE) Marshal

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

func (*MsgResetDE) MarshalTo

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

func (*MsgResetDE) MarshalToSizedBuffer

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

func (*MsgResetDE) ProtoMessage

func (*MsgResetDE) ProtoMessage()

func (*MsgResetDE) Reset

func (m *MsgResetDE) Reset()

func (*MsgResetDE) Size

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

func (*MsgResetDE) String

func (m *MsgResetDE) String() string

func (*MsgResetDE) Unmarshal

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

func (MsgResetDE) ValidateBasic

func (m MsgResetDE) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgResetDE) XXX_DiscardUnknown

func (m *MsgResetDE) XXX_DiscardUnknown()

func (*MsgResetDE) XXX_Marshal

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

func (*MsgResetDE) XXX_Merge

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

func (*MsgResetDE) XXX_Size

func (m *MsgResetDE) XXX_Size() int

func (*MsgResetDE) XXX_Unmarshal

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

type MsgResetDEResponse

type MsgResetDEResponse struct {
}

MsgResetDEResponse is response data for MsgResetDE message

func (*MsgResetDEResponse) Descriptor

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

func (*MsgResetDEResponse) Marshal

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

func (*MsgResetDEResponse) MarshalTo

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

func (*MsgResetDEResponse) MarshalToSizedBuffer

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

func (*MsgResetDEResponse) ProtoMessage

func (*MsgResetDEResponse) ProtoMessage()

func (*MsgResetDEResponse) Reset

func (m *MsgResetDEResponse) Reset()

func (*MsgResetDEResponse) Size

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

func (*MsgResetDEResponse) String

func (m *MsgResetDEResponse) String() string

func (*MsgResetDEResponse) Unmarshal

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

func (*MsgResetDEResponse) XXX_DiscardUnknown

func (m *MsgResetDEResponse) XXX_DiscardUnknown()

func (*MsgResetDEResponse) XXX_Marshal

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

func (*MsgResetDEResponse) XXX_Merge

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

func (*MsgResetDEResponse) XXX_Size

func (m *MsgResetDEResponse) XXX_Size() int

func (*MsgResetDEResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// SubmitDKGRound1 submits dkg for computing round 1.
	SubmitDKGRound1(context.Context, *MsgSubmitDKGRound1) (*MsgSubmitDKGRound1Response, error)
	// SubmitDKGRound2 submits dkg for computing round 2.
	SubmitDKGRound2(context.Context, *MsgSubmitDKGRound2) (*MsgSubmitDKGRound2Response, error)
	// Complain submits proof for complaining malicious.
	Complain(context.Context, *MsgComplain) (*MsgComplainResponse, error)
	// Confirm submits own signature for proof that it can derive the secret.
	Confirm(context.Context, *MsgConfirm) (*MsgConfirmResponse, error)
	// SubmitDEs submits list of pre-commits DE for signing process.
	SubmitDEs(context.Context, *MsgSubmitDEs) (*MsgSubmitDEsResponse, error)
	// ResetDE resets the submitted DEs that being stored on chain.
	ResetDE(context.Context, *MsgResetDE) (*MsgResetDEResponse, error)
	// SubmitSignature submits signature on task participant need to do.
	SubmitSignature(context.Context, *MsgSubmitSignature) (*MsgSubmitSignatureResponse, error)
	// UpdateParams defines a governance operation for updating the x/tss module
	// parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitDEs

type MsgSubmitDEs struct {
	// des is a list of DE objects.
	DEs []DE `protobuf:"bytes,1,rep,name=des,proto3" json:"des"`
	// sender is the user address that submits DE objects.
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgSubmitDEs is a message used to submit a list of DEs.

func NewMsgSubmitDEs

func NewMsgSubmitDEs(des []DE, sender string) *MsgSubmitDEs

NewMsgSubmitDEs creates a new MsgSubmitDEs instance.

func (*MsgSubmitDEs) Descriptor

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

func (*MsgSubmitDEs) GetDEs

func (m *MsgSubmitDEs) GetDEs() []DE

func (*MsgSubmitDEs) GetSender

func (m *MsgSubmitDEs) GetSender() string

func (*MsgSubmitDEs) Marshal

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

func (*MsgSubmitDEs) MarshalTo

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

func (*MsgSubmitDEs) MarshalToSizedBuffer

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

func (*MsgSubmitDEs) ProtoMessage

func (*MsgSubmitDEs) ProtoMessage()

func (*MsgSubmitDEs) Reset

func (m *MsgSubmitDEs) Reset()

func (*MsgSubmitDEs) Size

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

func (*MsgSubmitDEs) String

func (m *MsgSubmitDEs) String() string

func (*MsgSubmitDEs) Unmarshal

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

func (MsgSubmitDEs) ValidateBasic

func (m MsgSubmitDEs) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgSubmitDEs) XXX_DiscardUnknown

func (m *MsgSubmitDEs) XXX_DiscardUnknown()

func (*MsgSubmitDEs) XXX_Marshal

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

func (*MsgSubmitDEs) XXX_Merge

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

func (*MsgSubmitDEs) XXX_Size

func (m *MsgSubmitDEs) XXX_Size() int

func (*MsgSubmitDEs) XXX_Unmarshal

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

type MsgSubmitDEsResponse

type MsgSubmitDEsResponse struct {
}

MsgSubmitDEsResponse is response data for MsgSubmitDEs message

func (*MsgSubmitDEsResponse) Descriptor

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

func (*MsgSubmitDEsResponse) Marshal

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

func (*MsgSubmitDEsResponse) MarshalTo

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

func (*MsgSubmitDEsResponse) MarshalToSizedBuffer

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

func (*MsgSubmitDEsResponse) ProtoMessage

func (*MsgSubmitDEsResponse) ProtoMessage()

func (*MsgSubmitDEsResponse) Reset

func (m *MsgSubmitDEsResponse) Reset()

func (*MsgSubmitDEsResponse) Size

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

func (*MsgSubmitDEsResponse) String

func (m *MsgSubmitDEsResponse) String() string

func (*MsgSubmitDEsResponse) Unmarshal

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

func (*MsgSubmitDEsResponse) XXX_DiscardUnknown

func (m *MsgSubmitDEsResponse) XXX_DiscardUnknown()

func (*MsgSubmitDEsResponse) XXX_Marshal

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

func (*MsgSubmitDEsResponse) XXX_Merge

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

func (*MsgSubmitDEsResponse) XXX_Size

func (m *MsgSubmitDEsResponse) XXX_Size() int

func (*MsgSubmitDEsResponse) XXX_Unmarshal

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

type MsgSubmitDKGRound1

type MsgSubmitDKGRound1 struct {
	// group_id is ID of the group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// round1_info is all data that require to handle round 1.
	Round1Info Round1Info `protobuf:"bytes,2,opt,name=round1_info,json=round1Info,proto3" json:"round1_info"`
	// sender is the user address that submits the group creation information;
	// must be a member of this group.
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgSubmitDKGRound1 is the Msg/MsgSubmitDKGRound1 request type.

func NewMsgSubmitDKGRound1

func NewMsgSubmitDKGRound1(groupID tss.GroupID, round1Info Round1Info, sender string) *MsgSubmitDKGRound1

NewMsgSubmitDKGRound1 creates a new MsgSubmitDKGRound1 instance.

func (*MsgSubmitDKGRound1) Descriptor

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

func (*MsgSubmitDKGRound1) GetGroupID

func (*MsgSubmitDKGRound1) GetRound1Info

func (m *MsgSubmitDKGRound1) GetRound1Info() Round1Info

func (*MsgSubmitDKGRound1) GetSender

func (m *MsgSubmitDKGRound1) GetSender() string

func (*MsgSubmitDKGRound1) Marshal

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

func (*MsgSubmitDKGRound1) MarshalTo

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

func (*MsgSubmitDKGRound1) MarshalToSizedBuffer

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

func (*MsgSubmitDKGRound1) ProtoMessage

func (*MsgSubmitDKGRound1) ProtoMessage()

func (*MsgSubmitDKGRound1) Reset

func (m *MsgSubmitDKGRound1) Reset()

func (*MsgSubmitDKGRound1) Size

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

func (*MsgSubmitDKGRound1) String

func (m *MsgSubmitDKGRound1) String() string

func (*MsgSubmitDKGRound1) Unmarshal

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

func (MsgSubmitDKGRound1) ValidateBasic

func (m MsgSubmitDKGRound1) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgSubmitDKGRound1) XXX_DiscardUnknown

func (m *MsgSubmitDKGRound1) XXX_DiscardUnknown()

func (*MsgSubmitDKGRound1) XXX_Marshal

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

func (*MsgSubmitDKGRound1) XXX_Merge

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

func (*MsgSubmitDKGRound1) XXX_Size

func (m *MsgSubmitDKGRound1) XXX_Size() int

func (*MsgSubmitDKGRound1) XXX_Unmarshal

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

type MsgSubmitDKGRound1Response

type MsgSubmitDKGRound1Response struct {
}

MsgSubmitDKGRound1Response is the Msg/SubmitDKGRound1 response type.

func (*MsgSubmitDKGRound1Response) Descriptor

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

func (*MsgSubmitDKGRound1Response) Marshal

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

func (*MsgSubmitDKGRound1Response) MarshalTo

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

func (*MsgSubmitDKGRound1Response) MarshalToSizedBuffer

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

func (*MsgSubmitDKGRound1Response) ProtoMessage

func (*MsgSubmitDKGRound1Response) ProtoMessage()

func (*MsgSubmitDKGRound1Response) Reset

func (m *MsgSubmitDKGRound1Response) Reset()

func (*MsgSubmitDKGRound1Response) Size

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

func (*MsgSubmitDKGRound1Response) String

func (m *MsgSubmitDKGRound1Response) String() string

func (*MsgSubmitDKGRound1Response) Unmarshal

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

func (*MsgSubmitDKGRound1Response) XXX_DiscardUnknown

func (m *MsgSubmitDKGRound1Response) XXX_DiscardUnknown()

func (*MsgSubmitDKGRound1Response) XXX_Marshal

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

func (*MsgSubmitDKGRound1Response) XXX_Merge

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

func (*MsgSubmitDKGRound1Response) XXX_Size

func (m *MsgSubmitDKGRound1Response) XXX_Size() int

func (*MsgSubmitDKGRound1Response) XXX_Unmarshal

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

type MsgSubmitDKGRound2

type MsgSubmitDKGRound2 struct {
	// group_id is ID of the group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// round2_info is all data that is required to handle round 2.
	Round2Info Round2Info `protobuf:"bytes,2,opt,name=round2_info,json=round2Info,proto3" json:"round2_info"`
	// sender is the user address that submits the group creation information;
	// must be a member of this group.
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgSubmitDKGRound2 is the Msg/SubmitDKGRound2 request type.

func NewMsgSubmitDKGRound2

func NewMsgSubmitDKGRound2(groupID tss.GroupID, round2Info Round2Info, sender string) *MsgSubmitDKGRound2

NewMsgSubmitDKGRound2 creates a new MsgSubmitDKGRound2 instance.

func (*MsgSubmitDKGRound2) Descriptor

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

func (*MsgSubmitDKGRound2) GetGroupID

func (*MsgSubmitDKGRound2) GetRound2Info

func (m *MsgSubmitDKGRound2) GetRound2Info() Round2Info

func (*MsgSubmitDKGRound2) GetSender

func (m *MsgSubmitDKGRound2) GetSender() string

func (*MsgSubmitDKGRound2) Marshal

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

func (*MsgSubmitDKGRound2) MarshalTo

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

func (*MsgSubmitDKGRound2) MarshalToSizedBuffer

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

func (*MsgSubmitDKGRound2) ProtoMessage

func (*MsgSubmitDKGRound2) ProtoMessage()

func (*MsgSubmitDKGRound2) Reset

func (m *MsgSubmitDKGRound2) Reset()

func (*MsgSubmitDKGRound2) Size

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

func (*MsgSubmitDKGRound2) String

func (m *MsgSubmitDKGRound2) String() string

func (*MsgSubmitDKGRound2) Unmarshal

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

func (MsgSubmitDKGRound2) ValidateBasic

func (m MsgSubmitDKGRound2) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgSubmitDKGRound2) XXX_DiscardUnknown

func (m *MsgSubmitDKGRound2) XXX_DiscardUnknown()

func (*MsgSubmitDKGRound2) XXX_Marshal

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

func (*MsgSubmitDKGRound2) XXX_Merge

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

func (*MsgSubmitDKGRound2) XXX_Size

func (m *MsgSubmitDKGRound2) XXX_Size() int

func (*MsgSubmitDKGRound2) XXX_Unmarshal

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

type MsgSubmitDKGRound2Response

type MsgSubmitDKGRound2Response struct {
}

MsgSubmitDKGRound2Response is response data for MsgSubmitDKGRound2 message

func (*MsgSubmitDKGRound2Response) Descriptor

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

func (*MsgSubmitDKGRound2Response) Marshal

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

func (*MsgSubmitDKGRound2Response) MarshalTo

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

func (*MsgSubmitDKGRound2Response) MarshalToSizedBuffer

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

func (*MsgSubmitDKGRound2Response) ProtoMessage

func (*MsgSubmitDKGRound2Response) ProtoMessage()

func (*MsgSubmitDKGRound2Response) Reset

func (m *MsgSubmitDKGRound2Response) Reset()

func (*MsgSubmitDKGRound2Response) Size

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

func (*MsgSubmitDKGRound2Response) String

func (m *MsgSubmitDKGRound2Response) String() string

func (*MsgSubmitDKGRound2Response) Unmarshal

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

func (*MsgSubmitDKGRound2Response) XXX_DiscardUnknown

func (m *MsgSubmitDKGRound2Response) XXX_DiscardUnknown()

func (*MsgSubmitDKGRound2Response) XXX_Marshal

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

func (*MsgSubmitDKGRound2Response) XXX_Merge

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

func (*MsgSubmitDKGRound2Response) XXX_Size

func (m *MsgSubmitDKGRound2Response) XXX_Size() int

func (*MsgSubmitDKGRound2Response) XXX_Unmarshal

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

type MsgSubmitSignature

type MsgSubmitSignature struct {
	// signing_id is the unique identifier of the signing process.
	SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 149-byte string literal not displayed */
	// member_id is the unique identifier of the signer in the group.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// signature is the signature produced by the signer.
	Signature github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 131-byte string literal not displayed */
	// signer is the address who signs a message; must be a member of the group.
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgSubmitSignature is a message used to submitting signature data.

func NewMsgSubmitSignature

func NewMsgSubmitSignature(
	signingID tss.SigningID,
	memberID tss.MemberID,
	signature tss.Signature,
	signer string,
) *MsgSubmitSignature

NewMsgSubmitSignature creates a new MsgSubmitSignature instance.

func (*MsgSubmitSignature) Descriptor

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

func (*MsgSubmitSignature) GetMemberID

func (*MsgSubmitSignature) GetSignature

func (*MsgSubmitSignature) GetSigner

func (m *MsgSubmitSignature) GetSigner() string

func (*MsgSubmitSignature) GetSigningID

func (*MsgSubmitSignature) Marshal

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

func (*MsgSubmitSignature) MarshalTo

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

func (*MsgSubmitSignature) MarshalToSizedBuffer

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

func (*MsgSubmitSignature) ProtoMessage

func (*MsgSubmitSignature) ProtoMessage()

func (*MsgSubmitSignature) Reset

func (m *MsgSubmitSignature) Reset()

func (*MsgSubmitSignature) Size

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

func (*MsgSubmitSignature) String

func (m *MsgSubmitSignature) String() string

func (*MsgSubmitSignature) Unmarshal

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

func (MsgSubmitSignature) ValidateBasic

func (m MsgSubmitSignature) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgSubmitSignature) XXX_DiscardUnknown

func (m *MsgSubmitSignature) XXX_DiscardUnknown()

func (*MsgSubmitSignature) XXX_Marshal

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

func (*MsgSubmitSignature) XXX_Merge

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

func (*MsgSubmitSignature) XXX_Size

func (m *MsgSubmitSignature) XXX_Size() int

func (*MsgSubmitSignature) XXX_Unmarshal

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

type MsgSubmitSignatureResponse

type MsgSubmitSignatureResponse struct {
}

MsgSubmitSignatureResponse is response data for MsgSubmitSignature message

func (*MsgSubmitSignatureResponse) Descriptor

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

func (*MsgSubmitSignatureResponse) Marshal

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

func (*MsgSubmitSignatureResponse) MarshalTo

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

func (*MsgSubmitSignatureResponse) MarshalToSizedBuffer

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

func (*MsgSubmitSignatureResponse) ProtoMessage

func (*MsgSubmitSignatureResponse) ProtoMessage()

func (*MsgSubmitSignatureResponse) Reset

func (m *MsgSubmitSignatureResponse) Reset()

func (*MsgSubmitSignatureResponse) Size

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

func (*MsgSubmitSignatureResponse) String

func (m *MsgSubmitSignatureResponse) String() string

func (*MsgSubmitSignatureResponse) Unmarshal

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

func (*MsgSubmitSignatureResponse) XXX_DiscardUnknown

func (m *MsgSubmitSignatureResponse) XXX_DiscardUnknown()

func (*MsgSubmitSignatureResponse) XXX_Marshal

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

func (*MsgSubmitSignatureResponse) XXX_Merge

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

func (*MsgSubmitSignatureResponse) XXX_Size

func (m *MsgSubmitSignatureResponse) XXX_Size() int

func (*MsgSubmitSignatureResponse) XXX_Unmarshal

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

type MsgUpdateParams

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

MsgUpdateParams is the Msg/UpdateParams request type.

func NewMsgUpdateParams

func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams

NewMsgUpdateParams creates a new MsgUpdateParams instance

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

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *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.

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 Originator

type Originator interface {
	proto.Message

	Encode() ([]byte, error)
	Validate(p Params) error
}

Originator is the interface for identifying the metadata of the message. The hashed of the encoded originator will be included as a part of a signed message.

type Params

type Params struct {
	// max_group_size is the maximum of the member capacity of the group.
	MaxGroupSize uint64 `protobuf:"varint,1,opt,name=max_group_size,json=maxGroupSize,proto3" json:"max_group_size,omitempty"`
	// max_de_size is the maximum of the de capacity of the member.
	MaxDESize uint64 `protobuf:"varint,2,opt,name=max_de_size,json=maxDeSize,proto3" json:"max_de_size,omitempty"`
	// creation_period is the number of blocks allowed to creating tss group.
	CreationPeriod uint64 `protobuf:"varint,3,opt,name=creation_period,json=creationPeriod,proto3" json:"creation_period,omitempty"`
	// signing_period is the number of blocks allowed to sign.
	SigningPeriod uint64 `protobuf:"varint,4,opt,name=signing_period,json=signingPeriod,proto3" json:"signing_period,omitempty"`
	// max_signing_attempt is the maximum number of signing retry process per signingID.
	MaxSigningAttempt uint64 `protobuf:"varint,5,opt,name=max_signing_attempt,json=maxSigningAttempt,proto3" json:"max_signing_attempt,omitempty"`
	// max_memo_length is the maximum length of the memo in the direct originator.
	MaxMemoLength uint64 `protobuf:"varint,6,opt,name=max_memo_length,json=maxMemoLength,proto3" json:"max_memo_length,omitempty"`
	// max_message_length is the maximum length of the message in the TextSignatureOrder.
	MaxMessageLength uint64 `protobuf:"varint,7,opt,name=max_message_length,json=maxMessageLength,proto3" json:"max_message_length,omitempty"`
}

Params defines the set of module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default parameters

func NewParams

func NewParams(
	maxGroupSize uint64,
	maxDESize uint64,
	creatingPeriod uint64,
	signingPeriod uint64,
	maxSigningAttempt uint64,
	maxMemoLength uint64,
	maxMessageLength uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetCreationPeriod

func (m *Params) GetCreationPeriod() uint64

func (*Params) GetMaxDESize

func (m *Params) GetMaxDESize() uint64

func (*Params) GetMaxGroupSize

func (m *Params) GetMaxGroupSize() uint64

func (*Params) GetMaxMemoLength

func (m *Params) GetMaxMemoLength() uint64

func (*Params) GetMaxMessageLength

func (m *Params) GetMaxMessageLength() uint64

func (*Params) GetMaxSigningAttempt

func (m *Params) GetMaxSigningAttempt() uint64

func (*Params) GetSigningPeriod

func (m *Params) GetSigningPeriod() uint64

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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of 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 PartialSignature

type PartialSignature struct {
	// signing_id is the unique identifier of the signing.
	SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 149-byte string literal not displayed */
	// signing_attempt is the number of attempts for this signing.
	SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"`
	// member_id is the identifier of the member providing the partial signature.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// signature is the partial signature provided by this member.
	Signature github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 131-byte string literal not displayed */
}

PartialSignature contains information about a member's partial signature.

func NewPartialSignature

func NewPartialSignature(
	signingID tss.SigningID,
	attempt uint64,
	memberID tss.MemberID,
	signature tss.Signature,
) PartialSignature

NewPartialSignature creates a new PartialSignature instance.

func (*PartialSignature) Descriptor

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

func (*PartialSignature) Equal

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

func (*PartialSignature) GetMemberID

func (*PartialSignature) GetSignature

func (*PartialSignature) GetSigningAttempt

func (m *PartialSignature) GetSigningAttempt() uint64

func (*PartialSignature) GetSigningID

func (*PartialSignature) Marshal

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

func (*PartialSignature) MarshalTo

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

func (*PartialSignature) MarshalToSizedBuffer

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

func (*PartialSignature) ProtoMessage

func (*PartialSignature) ProtoMessage()

func (*PartialSignature) Reset

func (m *PartialSignature) Reset()

func (*PartialSignature) Size

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

func (*PartialSignature) String

func (m *PartialSignature) String() string

func (*PartialSignature) Unmarshal

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

func (*PartialSignature) XXX_DiscardUnknown

func (m *PartialSignature) XXX_DiscardUnknown()

func (*PartialSignature) XXX_Marshal

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

func (*PartialSignature) XXX_Merge

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

func (*PartialSignature) XXX_Size

func (m *PartialSignature) XXX_Size() int

func (*PartialSignature) XXX_Unmarshal

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

type PendingProcessGroups

type PendingProcessGroups struct {
	// group_ids is a list of group IDs.
	GroupIDs []github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 151-byte string literal not displayed */
}

PendingProcessGroups is a list of groups that are waiting to be processed.

func NewPendingProcessGroups

func NewPendingProcessGroups(groupIDs []tss.GroupID) PendingProcessGroups

NewPendingProcessGroups creates a new PendingProcessGroups instance.

func (*PendingProcessGroups) Descriptor

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

func (*PendingProcessGroups) Equal

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

func (*PendingProcessGroups) GetGroupIDs

func (*PendingProcessGroups) Marshal

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

func (*PendingProcessGroups) MarshalTo

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

func (*PendingProcessGroups) MarshalToSizedBuffer

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

func (*PendingProcessGroups) ProtoMessage

func (*PendingProcessGroups) ProtoMessage()

func (*PendingProcessGroups) Reset

func (m *PendingProcessGroups) Reset()

func (*PendingProcessGroups) Size

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

func (*PendingProcessGroups) String

func (m *PendingProcessGroups) String() string

func (*PendingProcessGroups) Unmarshal

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

func (*PendingProcessGroups) XXX_DiscardUnknown

func (m *PendingProcessGroups) XXX_DiscardUnknown()

func (*PendingProcessGroups) XXX_Marshal

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

func (*PendingProcessGroups) XXX_Merge

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

func (*PendingProcessGroups) XXX_Size

func (m *PendingProcessGroups) XXX_Size() int

func (*PendingProcessGroups) XXX_Unmarshal

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

type PendingProcessSignings

type PendingProcessSignings struct {
	// signing_ids is a list of signing IDs.
	SigningIDs []github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 159-byte string literal not displayed */
}

PendingProcessSignigns is a list of signings that are waiting to be processed.

func NewPendingProcessSignings

func NewPendingProcessSignings(signingIDs []tss.SigningID) PendingProcessSignings

NewPendingProcessSignings creates a new PendingProcessSignings instance.

func (*PendingProcessSignings) Descriptor

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

func (*PendingProcessSignings) Equal

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

func (*PendingProcessSignings) GetSigningIDs

func (*PendingProcessSignings) Marshal

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

func (*PendingProcessSignings) MarshalTo

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

func (*PendingProcessSignings) MarshalToSizedBuffer

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

func (*PendingProcessSignings) ProtoMessage

func (*PendingProcessSignings) ProtoMessage()

func (*PendingProcessSignings) Reset

func (m *PendingProcessSignings) Reset()

func (*PendingProcessSignings) Size

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

func (*PendingProcessSignings) String

func (m *PendingProcessSignings) String() string

func (*PendingProcessSignings) Unmarshal

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

func (*PendingProcessSignings) XXX_DiscardUnknown

func (m *PendingProcessSignings) XXX_DiscardUnknown()

func (*PendingProcessSignings) XXX_Marshal

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

func (*PendingProcessSignings) XXX_Merge

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

func (*PendingProcessSignings) XXX_Size

func (m *PendingProcessSignings) XXX_Size() int

func (*PendingProcessSignings) XXX_Unmarshal

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

type PendingSignings

type PendingSignings struct {
	// signing_ids is a list of identifiers for the signing processes.
	SigningIds []uint64 `protobuf:"varint,1,rep,packed,name=signing_ids,json=signingIds,proto3" json:"signing_ids,omitempty"`
}

PendingSignings is a list of all signing processes that are currently pending.

func (*PendingSignings) Descriptor

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

func (*PendingSignings) Equal

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

func (*PendingSignings) GetSigningIds

func (m *PendingSignings) GetSigningIds() []uint64

func (*PendingSignings) Marshal

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

func (*PendingSignings) MarshalTo

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

func (*PendingSignings) MarshalToSizedBuffer

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

func (*PendingSignings) ProtoMessage

func (*PendingSignings) ProtoMessage()

func (*PendingSignings) Reset

func (m *PendingSignings) Reset()

func (*PendingSignings) Size

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

func (*PendingSignings) String

func (m *PendingSignings) String() string

func (*PendingSignings) Unmarshal

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

func (*PendingSignings) XXX_DiscardUnknown

func (m *PendingSignings) XXX_DiscardUnknown()

func (*PendingSignings) XXX_Marshal

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

func (*PendingSignings) XXX_Merge

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

func (*PendingSignings) XXX_Size

func (m *PendingSignings) XXX_Size() int

func (*PendingSignings) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Counts queries the number of existing groups and signing.
	Counts(ctx context.Context, in *QueryCountsRequest, opts ...grpc.CallOption) (*QueryCountsResponse, error)
	// Groups queries groups details.
	Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error)
	// Group queries group details from the given id.
	Group(ctx context.Context, in *QueryGroupRequest, opts ...grpc.CallOption) (*QueryGroupResponse, error)
	// Members queries all members in this group.
	Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error)
	// IsGrantee queries whether granter grants the grantee.
	IsGrantee(ctx context.Context, in *QueryIsGranteeRequest, opts ...grpc.CallOption) (*QueryIsGranteeResponse, error)
	// DE queries all de for this address.
	DE(ctx context.Context, in *QueryDERequest, opts ...grpc.CallOption) (*QueryDEResponse, error)
	// PendingGroups queries all pending groups that waits the given address to submit a message.
	PendingGroups(ctx context.Context, in *QueryPendingGroupsRequest, opts ...grpc.CallOption) (*QueryPendingGroupsResponse, error)
	// PendingSignings queries all pending requests that waits the given address to sign a message.
	PendingSignings(ctx context.Context, in *QueryPendingSigningsRequest, opts ...grpc.CallOption) (*QueryPendingSigningsResponse, error)
	// Signing queries signing details from the given id.
	Signing(ctx context.Context, in *QuerySigningRequest, opts ...grpc.CallOption) (*QuerySigningResponse, error)
	// Signings queries signings details.
	Signings(ctx context.Context, in *QuerySigningsRequest, opts ...grpc.CallOption) (*QuerySigningsResponse, error)
	// Params returns all parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryCountsRequest

type QueryCountsRequest struct {
}

QueryCountsRequest is request type for the Query/Count RPC method.

func (*QueryCountsRequest) Descriptor

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

func (*QueryCountsRequest) Marshal

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

func (*QueryCountsRequest) MarshalTo

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

func (*QueryCountsRequest) MarshalToSizedBuffer

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

func (*QueryCountsRequest) ProtoMessage

func (*QueryCountsRequest) ProtoMessage()

func (*QueryCountsRequest) Reset

func (m *QueryCountsRequest) Reset()

func (*QueryCountsRequest) Size

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

func (*QueryCountsRequest) String

func (m *QueryCountsRequest) String() string

func (*QueryCountsRequest) Unmarshal

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

func (*QueryCountsRequest) XXX_DiscardUnknown

func (m *QueryCountsRequest) XXX_DiscardUnknown()

func (*QueryCountsRequest) XXX_Marshal

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

func (*QueryCountsRequest) XXX_Merge

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

func (*QueryCountsRequest) XXX_Size

func (m *QueryCountsRequest) XXX_Size() int

func (*QueryCountsRequest) XXX_Unmarshal

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

type QueryCountsResponse

type QueryCountsResponse struct {
	// group_count is total number of group available on the chain
	GroupCount uint64 `protobuf:"varint,1,opt,name=group_count,json=groupCount,proto3" json:"group_count,omitempty"`
	// signing_count is total number of signing request submitted to the chain
	SigningCount uint64 `protobuf:"varint,2,opt,name=signing_count,json=signingCount,proto3" json:"signing_count,omitempty"`
}

QueryCountsResponse is response type for the Query/Count RPC method.

func (*QueryCountsResponse) Descriptor

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

func (*QueryCountsResponse) GetGroupCount

func (m *QueryCountsResponse) GetGroupCount() uint64

func (*QueryCountsResponse) GetSigningCount

func (m *QueryCountsResponse) GetSigningCount() uint64

func (*QueryCountsResponse) Marshal

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

func (*QueryCountsResponse) MarshalTo

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

func (*QueryCountsResponse) MarshalToSizedBuffer

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

func (*QueryCountsResponse) ProtoMessage

func (*QueryCountsResponse) ProtoMessage()

func (*QueryCountsResponse) Reset

func (m *QueryCountsResponse) Reset()

func (*QueryCountsResponse) Size

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

func (*QueryCountsResponse) String

func (m *QueryCountsResponse) String() string

func (*QueryCountsResponse) Unmarshal

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

func (*QueryCountsResponse) XXX_DiscardUnknown

func (m *QueryCountsResponse) XXX_DiscardUnknown()

func (*QueryCountsResponse) XXX_Marshal

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

func (*QueryCountsResponse) XXX_Merge

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

func (*QueryCountsResponse) XXX_Size

func (m *QueryCountsResponse) XXX_Size() int

func (*QueryCountsResponse) XXX_Unmarshal

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

type QueryDERequest

type QueryDERequest struct {
	// address is the address for the request.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines pagination settings for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDERequest is the request type for the Query/DE RPC method.

func (*QueryDERequest) Descriptor

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

func (*QueryDERequest) GetAddress

func (m *QueryDERequest) GetAddress() string

func (*QueryDERequest) GetPagination

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

func (*QueryDERequest) Marshal

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

func (*QueryDERequest) MarshalTo

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

func (*QueryDERequest) MarshalToSizedBuffer

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

func (*QueryDERequest) ProtoMessage

func (*QueryDERequest) ProtoMessage()

func (*QueryDERequest) Reset

func (m *QueryDERequest) Reset()

func (*QueryDERequest) Size

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

func (*QueryDERequest) String

func (m *QueryDERequest) String() string

func (*QueryDERequest) Unmarshal

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

func (*QueryDERequest) XXX_DiscardUnknown

func (m *QueryDERequest) XXX_DiscardUnknown()

func (*QueryDERequest) XXX_Marshal

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

func (*QueryDERequest) XXX_Merge

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

func (*QueryDERequest) XXX_Size

func (m *QueryDERequest) XXX_Size() int

func (*QueryDERequest) XXX_Unmarshal

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

type QueryDEResponse

type QueryDEResponse struct {
	// des is a list of DEs.
	DEs []DE `protobuf:"bytes,1,rep,name=des,proto3" json:"des"`
	// pagination defines an pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDEResponse is the response type for the Query/DE RPC method.

func (*QueryDEResponse) Descriptor

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

func (*QueryDEResponse) GetDEs

func (m *QueryDEResponse) GetDEs() []DE

func (*QueryDEResponse) GetPagination

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

func (*QueryDEResponse) Marshal

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

func (*QueryDEResponse) MarshalTo

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

func (*QueryDEResponse) MarshalToSizedBuffer

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

func (*QueryDEResponse) ProtoMessage

func (*QueryDEResponse) ProtoMessage()

func (*QueryDEResponse) Reset

func (m *QueryDEResponse) Reset()

func (*QueryDEResponse) Size

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

func (*QueryDEResponse) String

func (m *QueryDEResponse) String() string

func (*QueryDEResponse) Unmarshal

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

func (*QueryDEResponse) XXX_DiscardUnknown

func (m *QueryDEResponse) XXX_DiscardUnknown()

func (*QueryDEResponse) XXX_Marshal

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

func (*QueryDEResponse) XXX_Merge

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

func (*QueryDEResponse) XXX_Size

func (m *QueryDEResponse) XXX_Size() int

func (*QueryDEResponse) XXX_Unmarshal

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

type QueryGroupRequest

type QueryGroupRequest struct {
	// group_id defines the unique id of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}

QueryGroupRequest is the request type for the Query/Group RPC method

func (*QueryGroupRequest) Descriptor

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

func (*QueryGroupRequest) GetGroupId

func (m *QueryGroupRequest) GetGroupId() uint64

func (*QueryGroupRequest) Marshal

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

func (*QueryGroupRequest) MarshalTo

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

func (*QueryGroupRequest) MarshalToSizedBuffer

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

func (*QueryGroupRequest) ProtoMessage

func (*QueryGroupRequest) ProtoMessage()

func (*QueryGroupRequest) Reset

func (m *QueryGroupRequest) Reset()

func (*QueryGroupRequest) Size

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

func (*QueryGroupRequest) String

func (m *QueryGroupRequest) String() string

func (*QueryGroupRequest) Unmarshal

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

func (*QueryGroupRequest) XXX_DiscardUnknown

func (m *QueryGroupRequest) XXX_DiscardUnknown()

func (*QueryGroupRequest) XXX_Marshal

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

func (*QueryGroupRequest) XXX_Merge

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

func (*QueryGroupRequest) XXX_Size

func (m *QueryGroupRequest) XXX_Size() int

func (*QueryGroupRequest) XXX_Unmarshal

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

type QueryGroupResponse

type QueryGroupResponse struct {
	// group_result is the result of the group.
	GroupResult GroupResult `protobuf:"bytes,1,opt,name=group_result,json=groupResult,proto3" json:"group_result"`
}

QueryGroupResponse is the response type for the Query/Group RPC method

func (*QueryGroupResponse) Descriptor

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

func (*QueryGroupResponse) GetGroupResult

func (m *QueryGroupResponse) GetGroupResult() GroupResult

func (*QueryGroupResponse) Marshal

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

func (*QueryGroupResponse) MarshalTo

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

func (*QueryGroupResponse) MarshalToSizedBuffer

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

func (*QueryGroupResponse) ProtoMessage

func (*QueryGroupResponse) ProtoMessage()

func (*QueryGroupResponse) Reset

func (m *QueryGroupResponse) Reset()

func (*QueryGroupResponse) Size

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

func (*QueryGroupResponse) String

func (m *QueryGroupResponse) String() string

func (*QueryGroupResponse) Unmarshal

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

func (*QueryGroupResponse) XXX_DiscardUnknown

func (m *QueryGroupResponse) XXX_DiscardUnknown()

func (*QueryGroupResponse) XXX_Marshal

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

func (*QueryGroupResponse) XXX_Merge

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

func (*QueryGroupResponse) XXX_Size

func (m *QueryGroupResponse) XXX_Size() int

func (*QueryGroupResponse) XXX_Unmarshal

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

type QueryGroupsRequest

type QueryGroupsRequest struct {
	// pagination defines pagination settings for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupsRequest is the request type for the Query/Groups RPC method

func (*QueryGroupsRequest) Descriptor

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

func (*QueryGroupsRequest) GetPagination

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

func (*QueryGroupsRequest) Marshal

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

func (*QueryGroupsRequest) MarshalTo

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

func (*QueryGroupsRequest) MarshalToSizedBuffer

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

func (*QueryGroupsRequest) ProtoMessage

func (*QueryGroupsRequest) ProtoMessage()

func (*QueryGroupsRequest) Reset

func (m *QueryGroupsRequest) Reset()

func (*QueryGroupsRequest) Size

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

func (*QueryGroupsRequest) String

func (m *QueryGroupsRequest) String() string

func (*QueryGroupsRequest) Unmarshal

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

func (*QueryGroupsRequest) XXX_DiscardUnknown

func (m *QueryGroupsRequest) XXX_DiscardUnknown()

func (*QueryGroupsRequest) XXX_Marshal

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

func (*QueryGroupsRequest) XXX_Merge

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

func (*QueryGroupsRequest) XXX_Size

func (m *QueryGroupsRequest) XXX_Size() int

func (*QueryGroupsRequest) XXX_Unmarshal

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

type QueryGroupsResponse

type QueryGroupsResponse struct {
	// groups is the list of groups.
	Groups []*GroupResult `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupsResponse is the response type for the Query/Group RPC method

func (*QueryGroupsResponse) Descriptor

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

func (*QueryGroupsResponse) GetGroups

func (m *QueryGroupsResponse) GetGroups() []*GroupResult

func (*QueryGroupsResponse) GetPagination

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

func (*QueryGroupsResponse) Marshal

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

func (*QueryGroupsResponse) MarshalTo

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

func (*QueryGroupsResponse) MarshalToSizedBuffer

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

func (*QueryGroupsResponse) ProtoMessage

func (*QueryGroupsResponse) ProtoMessage()

func (*QueryGroupsResponse) Reset

func (m *QueryGroupsResponse) Reset()

func (*QueryGroupsResponse) Size

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

func (*QueryGroupsResponse) String

func (m *QueryGroupsResponse) String() string

func (*QueryGroupsResponse) Unmarshal

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

func (*QueryGroupsResponse) XXX_DiscardUnknown

func (m *QueryGroupsResponse) XXX_DiscardUnknown()

func (*QueryGroupsResponse) XXX_Marshal

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

func (*QueryGroupsResponse) XXX_Merge

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

func (*QueryGroupsResponse) XXX_Size

func (m *QueryGroupsResponse) XXX_Size() int

func (*QueryGroupsResponse) XXX_Unmarshal

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

type QueryIsGranteeRequest

type QueryIsGranteeRequest struct {
	// granter is a granter address
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// grantee is a grantee address
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
}

QueryIsSignerRequest is request type for the Query/IsGrantee RPC method.

func (*QueryIsGranteeRequest) Descriptor

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

func (*QueryIsGranteeRequest) GetGrantee

func (m *QueryIsGranteeRequest) GetGrantee() string

func (*QueryIsGranteeRequest) GetGranter

func (m *QueryIsGranteeRequest) GetGranter() string

func (*QueryIsGranteeRequest) Marshal

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

func (*QueryIsGranteeRequest) MarshalTo

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

func (*QueryIsGranteeRequest) MarshalToSizedBuffer

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

func (*QueryIsGranteeRequest) ProtoMessage

func (*QueryIsGranteeRequest) ProtoMessage()

func (*QueryIsGranteeRequest) Reset

func (m *QueryIsGranteeRequest) Reset()

func (*QueryIsGranteeRequest) Size

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

func (*QueryIsGranteeRequest) String

func (m *QueryIsGranteeRequest) String() string

func (*QueryIsGranteeRequest) Unmarshal

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

func (*QueryIsGranteeRequest) XXX_DiscardUnknown

func (m *QueryIsGranteeRequest) XXX_DiscardUnknown()

func (*QueryIsGranteeRequest) XXX_Marshal

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

func (*QueryIsGranteeRequest) XXX_Merge

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

func (*QueryIsGranteeRequest) XXX_Size

func (m *QueryIsGranteeRequest) XXX_Size() int

func (*QueryIsGranteeRequest) XXX_Unmarshal

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

type QueryIsGranteeResponse

type QueryIsGranteeResponse struct {
	// is_grantee is true if this account has been granted by granter
	IsGrantee bool `protobuf:"varint,1,opt,name=is_grantee,json=isGrantee,proto3" json:"is_grantee,omitempty"`
}

QueryIsGranteeResponse is response type for the Query/IsGrantee RPC method.

func (*QueryIsGranteeResponse) Descriptor

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

func (*QueryIsGranteeResponse) GetIsGrantee

func (m *QueryIsGranteeResponse) GetIsGrantee() bool

func (*QueryIsGranteeResponse) Marshal

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

func (*QueryIsGranteeResponse) MarshalTo

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

func (*QueryIsGranteeResponse) MarshalToSizedBuffer

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

func (*QueryIsGranteeResponse) ProtoMessage

func (*QueryIsGranteeResponse) ProtoMessage()

func (*QueryIsGranteeResponse) Reset

func (m *QueryIsGranteeResponse) Reset()

func (*QueryIsGranteeResponse) Size

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

func (*QueryIsGranteeResponse) String

func (m *QueryIsGranteeResponse) String() string

func (*QueryIsGranteeResponse) Unmarshal

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

func (*QueryIsGranteeResponse) XXX_DiscardUnknown

func (m *QueryIsGranteeResponse) XXX_DiscardUnknown()

func (*QueryIsGranteeResponse) XXX_Marshal

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

func (*QueryIsGranteeResponse) XXX_Merge

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

func (*QueryIsGranteeResponse) XXX_Size

func (m *QueryIsGranteeResponse) XXX_Size() int

func (*QueryIsGranteeResponse) XXX_Unmarshal

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

type QueryMembersRequest

type QueryMembersRequest struct {
	// group_id defines the unique id of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}

QueryMembersRequest is the request type for the Query/Members RPC method

func (*QueryMembersRequest) Descriptor

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

func (*QueryMembersRequest) GetGroupId

func (m *QueryMembersRequest) GetGroupId() uint64

func (*QueryMembersRequest) Marshal

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

func (*QueryMembersRequest) MarshalTo

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

func (*QueryMembersRequest) MarshalToSizedBuffer

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

func (*QueryMembersRequest) ProtoMessage

func (*QueryMembersRequest) ProtoMessage()

func (*QueryMembersRequest) Reset

func (m *QueryMembersRequest) Reset()

func (*QueryMembersRequest) Size

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

func (*QueryMembersRequest) String

func (m *QueryMembersRequest) String() string

func (*QueryMembersRequest) Unmarshal

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

func (*QueryMembersRequest) XXX_DiscardUnknown

func (m *QueryMembersRequest) XXX_DiscardUnknown()

func (*QueryMembersRequest) XXX_Marshal

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

func (*QueryMembersRequest) XXX_Merge

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

func (*QueryMembersRequest) XXX_Size

func (m *QueryMembersRequest) XXX_Size() int

func (*QueryMembersRequest) XXX_Unmarshal

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

type QueryMembersResponse

type QueryMembersResponse struct {
	// members are member list of the group
	Members []Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members"`
}

QueryMembersResponse is the response type for the Query/Members RPC method

func (*QueryMembersResponse) Descriptor

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

func (*QueryMembersResponse) GetMembers

func (m *QueryMembersResponse) GetMembers() []Member

func (*QueryMembersResponse) Marshal

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

func (*QueryMembersResponse) MarshalTo

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

func (*QueryMembersResponse) MarshalToSizedBuffer

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

func (*QueryMembersResponse) ProtoMessage

func (*QueryMembersResponse) ProtoMessage()

func (*QueryMembersResponse) Reset

func (m *QueryMembersResponse) Reset()

func (*QueryMembersResponse) Size

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

func (*QueryMembersResponse) String

func (m *QueryMembersResponse) String() string

func (*QueryMembersResponse) Unmarshal

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

func (*QueryMembersResponse) XXX_DiscardUnknown

func (m *QueryMembersResponse) XXX_DiscardUnknown()

func (*QueryMembersResponse) XXX_Marshal

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

func (*QueryMembersResponse) XXX_Merge

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

func (*QueryMembersResponse) XXX_Size

func (m *QueryMembersResponse) XXX_Size() int

func (*QueryMembersResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

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 are the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

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 QueryPendingGroupsRequest

type QueryPendingGroupsRequest struct {
	// address is the address of the member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryPendingGroupsRequest is the request type for the Query/PendingGroups RPC method.

func (*QueryPendingGroupsRequest) Descriptor

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

func (*QueryPendingGroupsRequest) GetAddress

func (m *QueryPendingGroupsRequest) GetAddress() string

func (*QueryPendingGroupsRequest) Marshal

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

func (*QueryPendingGroupsRequest) MarshalTo

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

func (*QueryPendingGroupsRequest) MarshalToSizedBuffer

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

func (*QueryPendingGroupsRequest) ProtoMessage

func (*QueryPendingGroupsRequest) ProtoMessage()

func (*QueryPendingGroupsRequest) Reset

func (m *QueryPendingGroupsRequest) Reset()

func (*QueryPendingGroupsRequest) Size

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

func (*QueryPendingGroupsRequest) String

func (m *QueryPendingGroupsRequest) String() string

func (*QueryPendingGroupsRequest) Unmarshal

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

func (*QueryPendingGroupsRequest) XXX_DiscardUnknown

func (m *QueryPendingGroupsRequest) XXX_DiscardUnknown()

func (*QueryPendingGroupsRequest) XXX_Marshal

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

func (*QueryPendingGroupsRequest) XXX_Merge

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

func (*QueryPendingGroupsRequest) XXX_Size

func (m *QueryPendingGroupsRequest) XXX_Size() int

func (*QueryPendingGroupsRequest) XXX_Unmarshal

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

type QueryPendingGroupsResponse

type QueryPendingGroupsResponse struct {
	// pending_groups is a list of pending groups.
	PendingGroups []uint64 `protobuf:"varint,1,rep,packed,name=pending_groups,json=pendingGroups,proto3" json:"pending_groups,omitempty"`
}

QueryPendingGroupsResponse is the response type for the Query/PendingGroups RPC method.

func (*QueryPendingGroupsResponse) Descriptor

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

func (*QueryPendingGroupsResponse) GetPendingGroups

func (m *QueryPendingGroupsResponse) GetPendingGroups() []uint64

func (*QueryPendingGroupsResponse) Marshal

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

func (*QueryPendingGroupsResponse) MarshalTo

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

func (*QueryPendingGroupsResponse) MarshalToSizedBuffer

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

func (*QueryPendingGroupsResponse) ProtoMessage

func (*QueryPendingGroupsResponse) ProtoMessage()

func (*QueryPendingGroupsResponse) Reset

func (m *QueryPendingGroupsResponse) Reset()

func (*QueryPendingGroupsResponse) Size

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

func (*QueryPendingGroupsResponse) String

func (m *QueryPendingGroupsResponse) String() string

func (*QueryPendingGroupsResponse) Unmarshal

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

func (*QueryPendingGroupsResponse) XXX_DiscardUnknown

func (m *QueryPendingGroupsResponse) XXX_DiscardUnknown()

func (*QueryPendingGroupsResponse) XXX_Marshal

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

func (*QueryPendingGroupsResponse) XXX_Merge

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

func (*QueryPendingGroupsResponse) XXX_Size

func (m *QueryPendingGroupsResponse) XXX_Size() int

func (*QueryPendingGroupsResponse) XXX_Unmarshal

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

type QueryPendingSigningsRequest

type QueryPendingSigningsRequest struct {
	// address is the address of the member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryPendingSigningsRequest is the request type for the Query/PendingSignings RPC method.

func (*QueryPendingSigningsRequest) Descriptor

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

func (*QueryPendingSigningsRequest) GetAddress

func (m *QueryPendingSigningsRequest) GetAddress() string

func (*QueryPendingSigningsRequest) Marshal

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

func (*QueryPendingSigningsRequest) MarshalTo

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

func (*QueryPendingSigningsRequest) MarshalToSizedBuffer

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

func (*QueryPendingSigningsRequest) ProtoMessage

func (*QueryPendingSigningsRequest) ProtoMessage()

func (*QueryPendingSigningsRequest) Reset

func (m *QueryPendingSigningsRequest) Reset()

func (*QueryPendingSigningsRequest) Size

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

func (*QueryPendingSigningsRequest) String

func (m *QueryPendingSigningsRequest) String() string

func (*QueryPendingSigningsRequest) Unmarshal

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

func (*QueryPendingSigningsRequest) XXX_DiscardUnknown

func (m *QueryPendingSigningsRequest) XXX_DiscardUnknown()

func (*QueryPendingSigningsRequest) XXX_Marshal

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

func (*QueryPendingSigningsRequest) XXX_Merge

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

func (*QueryPendingSigningsRequest) XXX_Size

func (m *QueryPendingSigningsRequest) XXX_Size() int

func (*QueryPendingSigningsRequest) XXX_Unmarshal

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

type QueryPendingSigningsResponse

type QueryPendingSigningsResponse struct {
	// pending_signings is a list of pending signings.
	PendingSignings []github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 174-byte string literal not displayed */
}

QueryPendingSigningsResponse is the response type for the Query/PendingSignings RPC method.

func (*QueryPendingSigningsResponse) Descriptor

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

func (*QueryPendingSigningsResponse) GetPendingSignings

func (*QueryPendingSigningsResponse) Marshal

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

func (*QueryPendingSigningsResponse) MarshalTo

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

func (*QueryPendingSigningsResponse) MarshalToSizedBuffer

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

func (*QueryPendingSigningsResponse) ProtoMessage

func (*QueryPendingSigningsResponse) ProtoMessage()

func (*QueryPendingSigningsResponse) Reset

func (m *QueryPendingSigningsResponse) Reset()

func (*QueryPendingSigningsResponse) Size

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

func (*QueryPendingSigningsResponse) String

func (*QueryPendingSigningsResponse) Unmarshal

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

func (*QueryPendingSigningsResponse) XXX_DiscardUnknown

func (m *QueryPendingSigningsResponse) XXX_DiscardUnknown()

func (*QueryPendingSigningsResponse) XXX_Marshal

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

func (*QueryPendingSigningsResponse) XXX_Merge

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

func (*QueryPendingSigningsResponse) XXX_Size

func (m *QueryPendingSigningsResponse) XXX_Size() int

func (*QueryPendingSigningsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Counts queries the number of existing groups and signing.
	Counts(context.Context, *QueryCountsRequest) (*QueryCountsResponse, error)
	// Groups queries groups details.
	Groups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error)
	// Group queries group details from the given id.
	Group(context.Context, *QueryGroupRequest) (*QueryGroupResponse, error)
	// Members queries all members in this group.
	Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error)
	// IsGrantee queries whether granter grants the grantee.
	IsGrantee(context.Context, *QueryIsGranteeRequest) (*QueryIsGranteeResponse, error)
	// DE queries all de for this address.
	DE(context.Context, *QueryDERequest) (*QueryDEResponse, error)
	// PendingGroups queries all pending groups that waits the given address to submit a message.
	PendingGroups(context.Context, *QueryPendingGroupsRequest) (*QueryPendingGroupsResponse, error)
	// PendingSignings queries all pending requests that waits the given address to sign a message.
	PendingSignings(context.Context, *QueryPendingSigningsRequest) (*QueryPendingSigningsResponse, error)
	// Signing queries signing details from the given id.
	Signing(context.Context, *QuerySigningRequest) (*QuerySigningResponse, error)
	// Signings queries signings details.
	Signings(context.Context, *QuerySigningsRequest) (*QuerySigningsResponse, error)
	// Params returns all parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySigningRequest

type QuerySigningRequest struct {
	// signing_id is the ID of the signing request.
	SigningId uint64 `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3" json:"signing_id,omitempty"`
}

QuerySigningRequest is the request type for the Query/Signing RPC method.

func (*QuerySigningRequest) Descriptor

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

func (*QuerySigningRequest) GetSigningId

func (m *QuerySigningRequest) GetSigningId() uint64

func (*QuerySigningRequest) Marshal

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

func (*QuerySigningRequest) MarshalTo

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

func (*QuerySigningRequest) MarshalToSizedBuffer

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

func (*QuerySigningRequest) ProtoMessage

func (*QuerySigningRequest) ProtoMessage()

func (*QuerySigningRequest) Reset

func (m *QuerySigningRequest) Reset()

func (*QuerySigningRequest) Size

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

func (*QuerySigningRequest) String

func (m *QuerySigningRequest) String() string

func (*QuerySigningRequest) Unmarshal

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

func (*QuerySigningRequest) XXX_DiscardUnknown

func (m *QuerySigningRequest) XXX_DiscardUnknown()

func (*QuerySigningRequest) XXX_Marshal

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

func (*QuerySigningRequest) XXX_Merge

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

func (*QuerySigningRequest) XXX_Size

func (m *QuerySigningRequest) XXX_Size() int

func (*QuerySigningRequest) XXX_Unmarshal

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

type QuerySigningResponse

type QuerySigningResponse struct {
	// signing_result is the result of the signing.
	SigningResult SigningResult `protobuf:"bytes,1,opt,name=signing_result,json=signingResult,proto3" json:"signing_result"`
}

QuerySigningResponse is the response type for the Query/Signing RPC method.

func (*QuerySigningResponse) Descriptor

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

func (*QuerySigningResponse) GetSigningResult

func (m *QuerySigningResponse) GetSigningResult() SigningResult

func (*QuerySigningResponse) Marshal

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

func (*QuerySigningResponse) MarshalTo

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

func (*QuerySigningResponse) MarshalToSizedBuffer

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

func (*QuerySigningResponse) ProtoMessage

func (*QuerySigningResponse) ProtoMessage()

func (*QuerySigningResponse) Reset

func (m *QuerySigningResponse) Reset()

func (*QuerySigningResponse) Size

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

func (*QuerySigningResponse) String

func (m *QuerySigningResponse) String() string

func (*QuerySigningResponse) Unmarshal

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

func (*QuerySigningResponse) XXX_DiscardUnknown

func (m *QuerySigningResponse) XXX_DiscardUnknown()

func (*QuerySigningResponse) XXX_Marshal

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

func (*QuerySigningResponse) XXX_Merge

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

func (*QuerySigningResponse) XXX_Size

func (m *QuerySigningResponse) XXX_Size() int

func (*QuerySigningResponse) XXX_Unmarshal

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

type QuerySigningsRequest

type QuerySigningsRequest struct {
	// pagination defines pagination settings for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySigningsRequest is the request type for the Query/Signings RPC method.

func (*QuerySigningsRequest) Descriptor

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

func (*QuerySigningsRequest) GetPagination

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

func (*QuerySigningsRequest) Marshal

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

func (*QuerySigningsRequest) MarshalTo

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

func (*QuerySigningsRequest) MarshalToSizedBuffer

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

func (*QuerySigningsRequest) ProtoMessage

func (*QuerySigningsRequest) ProtoMessage()

func (*QuerySigningsRequest) Reset

func (m *QuerySigningsRequest) Reset()

func (*QuerySigningsRequest) Size

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

func (*QuerySigningsRequest) String

func (m *QuerySigningsRequest) String() string

func (*QuerySigningsRequest) Unmarshal

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

func (*QuerySigningsRequest) XXX_DiscardUnknown

func (m *QuerySigningsRequest) XXX_DiscardUnknown()

func (*QuerySigningsRequest) XXX_Marshal

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

func (*QuerySigningsRequest) XXX_Merge

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

func (*QuerySigningsRequest) XXX_Size

func (m *QuerySigningsRequest) XXX_Size() int

func (*QuerySigningsRequest) XXX_Unmarshal

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

type QuerySigningsResponse

type QuerySigningsResponse struct {
	// signing_results is a list of signing results.
	SigningResults []*SigningResult `protobuf:"bytes,1,rep,name=signing_results,json=signingResults,proto3" json:"signing_results,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySigningsResponse is the response type for the Query/Signings RPC method.

func (*QuerySigningsResponse) Descriptor

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

func (*QuerySigningsResponse) GetPagination

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

func (*QuerySigningsResponse) GetSigningResults

func (m *QuerySigningsResponse) GetSigningResults() []*SigningResult

func (*QuerySigningsResponse) Marshal

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

func (*QuerySigningsResponse) MarshalTo

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

func (*QuerySigningsResponse) MarshalToSizedBuffer

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

func (*QuerySigningsResponse) ProtoMessage

func (*QuerySigningsResponse) ProtoMessage()

func (*QuerySigningsResponse) Reset

func (m *QuerySigningsResponse) Reset()

func (*QuerySigningsResponse) Size

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

func (*QuerySigningsResponse) String

func (m *QuerySigningsResponse) String() string

func (*QuerySigningsResponse) Unmarshal

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

func (*QuerySigningsResponse) XXX_DiscardUnknown

func (m *QuerySigningsResponse) XXX_DiscardUnknown()

func (*QuerySigningsResponse) XXX_Marshal

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

func (*QuerySigningsResponse) XXX_Merge

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

func (*QuerySigningsResponse) XXX_Size

func (m *QuerySigningsResponse) XXX_Size() int

func (*QuerySigningsResponse) XXX_Unmarshal

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

type RollingseedKeeper

type RollingseedKeeper interface {
	GetRollingSeed(ctx sdk.Context) []byte
}

RollingseedKeeper defines the expected rollingseed keeper

type Round1Info

type Round1Info struct {
	// member_id is the unique identifier of a group member.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// coefficients_commits is a list of commitments to the coefficients of the member's secret polynomial.
	CoefficientCommits github_com_bandprotocol_chain_v3_pkg_tss.Points `` /* 176-byte string literal not displayed */
	// one_time_pub_key is the one-time public key used by the member to encrypt secret shares.
	OneTimePubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 160-byte string literal not displayed */
	// a0_signature is the member's signature on the first coefficient of its secret polynomial.
	A0Signature github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 154-byte string literal not displayed */
	// one_time_signature is the member's signature on its one-time public key.
	OneTimeSignature github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 171-byte string literal not displayed */
}

Round1Info contains all necessary information for handling round 1 of the DKG process.

func NewRound1Info

func NewRound1Info(
	memberID tss.MemberID,
	coefficientCommits tss.Points,
	oneTimePubKey tss.Point,
	a0Sig tss.Signature,
	oneTimeSig tss.Signature,
) Round1Info

NewRound1Info creates a new Round1Info instance.

func (*Round1Info) Descriptor

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

func (*Round1Info) Equal

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

func (*Round1Info) GetA0Signature

func (*Round1Info) GetCoefficientCommits

func (m *Round1Info) GetCoefficientCommits() github_com_bandprotocol_chain_v3_pkg_tss.Points

func (*Round1Info) GetMemberID

func (*Round1Info) GetOneTimePubKey

func (*Round1Info) GetOneTimeSignature

func (*Round1Info) Marshal

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

func (*Round1Info) MarshalTo

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

func (*Round1Info) MarshalToSizedBuffer

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

func (*Round1Info) ProtoMessage

func (*Round1Info) ProtoMessage()

func (*Round1Info) Reset

func (m *Round1Info) Reset()

func (*Round1Info) Size

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

func (*Round1Info) String

func (m *Round1Info) String() string

func (*Round1Info) Unmarshal

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

func (Round1Info) Validate

func (r Round1Info) Validate() error

Validate performs basic validation of round-1 group creation information.

func (*Round1Info) XXX_DiscardUnknown

func (m *Round1Info) XXX_DiscardUnknown()

func (*Round1Info) XXX_Marshal

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

func (*Round1Info) XXX_Merge

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

func (*Round1Info) XXX_Size

func (m *Round1Info) XXX_Size() int

func (*Round1Info) XXX_Unmarshal

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

type Round2Info

type Round2Info struct {
	// member_id is the unique identifier of a group member.
	MemberID github_com_bandprotocol_chain_v3_pkg_tss.MemberID `` /* 145-byte string literal not displayed */
	// encrypted_secret_shares is a list of secret shares encrypted under the public keys of other members.
	EncryptedSecretShares github_com_bandprotocol_chain_v3_pkg_tss.EncSecretShares `` /* 196-byte string literal not displayed */
}

Round2Info contains all necessary information for handling round 2 of the DKG process.

func NewRound2Info

func NewRound2Info(
	memberID tss.MemberID,
	encryptedSecretShares tss.EncSecretShares,
) Round2Info

NewRound2Info creates a new Round2Info instance.

func (*Round2Info) Descriptor

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

func (*Round2Info) Equal

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

func (*Round2Info) GetEncryptedSecretShares

func (*Round2Info) GetMemberID

func (*Round2Info) Marshal

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

func (*Round2Info) MarshalTo

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

func (*Round2Info) MarshalToSizedBuffer

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

func (*Round2Info) ProtoMessage

func (*Round2Info) ProtoMessage()

func (*Round2Info) Reset

func (m *Round2Info) Reset()

func (*Round2Info) Size

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

func (*Round2Info) String

func (m *Round2Info) String() string

func (*Round2Info) Unmarshal

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

func (Round2Info) Validate

func (r Round2Info) Validate() error

Validate performs basic validation of round-2 group creation information.

func (*Round2Info) XXX_DiscardUnknown

func (m *Round2Info) XXX_DiscardUnknown()

func (*Round2Info) XXX_Marshal

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

func (*Round2Info) XXX_Merge

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

func (*Round2Info) XXX_Size

func (m *Round2Info) XXX_Size() int

func (*Round2Info) XXX_Unmarshal

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

type Signing

type Signing struct {
	// id is the unique identifier of the signing.
	ID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/chain/v3/pkg/tss.SigningID" json:"id,omitempty"`
	// current_attempt is the latest round number that signing has been attempted.
	CurrentAttempt uint64 `protobuf:"varint,2,opt,name=current_attempt,json=currentAttempt,proto3" json:"current_attempt,omitempty"`
	// group_id is the unique identifier of the group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// group_pub_key is the public key of the group that sign this message.
	GroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 152-byte string literal not displayed */
	// message is the message to be signed.
	Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,5,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"`
	// group_pub_nonce is the public nonce generated by the group for this signing process.
	GroupPubNonce github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 158-byte string literal not displayed */
	// signature is the group's signature on the message.
	Signature github_com_bandprotocol_chain_v3_pkg_tss.Signature `` /* 131-byte string literal not displayed */
	// status represents the current stage of the signing in the signing process.
	Status SigningStatus `protobuf:"varint,8,opt,name=status,proto3,enum=band.tss.v1beta1.SigningStatus" json:"status,omitempty"`
	// created_height is the block height when the signing was created.
	CreatedHeight uint64 `protobuf:"varint,9,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"`
	// created_timestamp is the block timestamp when the signing was created.
	CreatedTimestamp time.Time `protobuf:"bytes,10,opt,name=created_timestamp,json=createdTimestamp,proto3,stdtime" json:"created_timestamp"`
}

Signing contains all necessary information for handling a signing request.

func NewSigning

func NewSigning(
	id tss.SigningID,
	currentAttempt uint64,
	gid tss.GroupID,
	groupPubKey tss.Point,
	msg []byte,
	groupPubNonce tss.Point,
	signature tss.Signature,
	status SigningStatus,
	createdHeight uint64,
	createdTimestamp time.Time,
) Signing

NewSigning creates a new Signing instance with provided parameters.

func (*Signing) Descriptor

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

func (*Signing) Equal

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

func (*Signing) GetCreatedHeight

func (m *Signing) GetCreatedHeight() uint64

func (*Signing) GetCreatedTimestamp

func (m *Signing) GetCreatedTimestamp() time.Time

func (*Signing) GetCurrentAttempt

func (m *Signing) GetCurrentAttempt() uint64

func (*Signing) GetGroupID

func (*Signing) GetGroupPubKey

func (*Signing) GetGroupPubNonce

func (*Signing) GetMessage

func (*Signing) GetSignature

func (*Signing) GetStatus

func (m *Signing) GetStatus() SigningStatus

func (*Signing) Marshal

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

func (*Signing) MarshalTo

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

func (*Signing) MarshalToSizedBuffer

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

func (*Signing) ProtoMessage

func (*Signing) ProtoMessage()

func (*Signing) Reset

func (m *Signing) Reset()

func (*Signing) Size

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

func (*Signing) String

func (m *Signing) String() string

func (*Signing) Unmarshal

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

func (*Signing) XXX_DiscardUnknown

func (m *Signing) XXX_DiscardUnknown()

func (*Signing) XXX_Marshal

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

func (*Signing) XXX_Merge

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

func (*Signing) XXX_Size

func (m *Signing) XXX_Size() int

func (*Signing) XXX_Unmarshal

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

type SigningAttempt

type SigningAttempt struct {
	// signing_id is the unique identifier of the signing.
	SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 149-byte string literal not displayed */
	// attempt is the number of round that this signing has been attempted.
	Attempt uint64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// expired_height is the block height when this signing attempt was expired.
	ExpiredHeight uint64 `protobuf:"varint,3,opt,name=expired_height,json=expiredHeight,proto3" json:"expired_height,omitempty"`
	// assigned_members is a list of members assigned to the signing process.
	AssignedMembers []AssignedMember `protobuf:"bytes,4,rep,name=assigned_members,json=assignedMembers,proto3" json:"assigned_members"`
}

SigningAttempt contains a member that has been assigned to and expiration block height of the specific attempt.

func NewSigningAttempt

func NewSigningAttempt(
	signingID tss.SigningID,
	attempt uint64,
	expiredHeight uint64,
	assignedMembers []AssignedMember,
) SigningAttempt

NewSigningAttempt creates a new signingAttempt instance.

func (*SigningAttempt) Descriptor

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

func (*SigningAttempt) Equal

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

func (*SigningAttempt) GetAssignedMembers

func (m *SigningAttempt) GetAssignedMembers() []AssignedMember

func (*SigningAttempt) GetAttempt

func (m *SigningAttempt) GetAttempt() uint64

func (*SigningAttempt) GetExpiredHeight

func (m *SigningAttempt) GetExpiredHeight() uint64

func (*SigningAttempt) GetSigningID

func (*SigningAttempt) Marshal

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

func (*SigningAttempt) MarshalTo

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

func (*SigningAttempt) MarshalToSizedBuffer

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

func (*SigningAttempt) ProtoMessage

func (*SigningAttempt) ProtoMessage()

func (*SigningAttempt) Reset

func (m *SigningAttempt) Reset()

func (*SigningAttempt) Size

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

func (*SigningAttempt) String

func (m *SigningAttempt) String() string

func (*SigningAttempt) Unmarshal

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

func (*SigningAttempt) XXX_DiscardUnknown

func (m *SigningAttempt) XXX_DiscardUnknown()

func (*SigningAttempt) XXX_Marshal

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

func (*SigningAttempt) XXX_Merge

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

func (*SigningAttempt) XXX_Size

func (m *SigningAttempt) XXX_Size() int

func (*SigningAttempt) XXX_Unmarshal

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

type SigningExpiration

type SigningExpiration struct {
	// signing_id is the id of the signing.
	SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 149-byte string literal not displayed */
	// signing_attempt is the number of attempts of the signing.
	SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"`
}

SigningExpiration defines the expiration time of the signing.

func NewSigningExpiration

func NewSigningExpiration(signingID tss.SigningID, attempt uint64) SigningExpiration

NewSigningExpiration creates a new SigningExpiration instance.

func (*SigningExpiration) Descriptor

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

func (*SigningExpiration) Equal

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

func (*SigningExpiration) GetSigningAttempt

func (m *SigningExpiration) GetSigningAttempt() uint64

func (*SigningExpiration) GetSigningID

func (*SigningExpiration) Marshal

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

func (*SigningExpiration) MarshalTo

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

func (*SigningExpiration) MarshalToSizedBuffer

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

func (*SigningExpiration) ProtoMessage

func (*SigningExpiration) ProtoMessage()

func (*SigningExpiration) Reset

func (m *SigningExpiration) Reset()

func (*SigningExpiration) Size

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

func (*SigningExpiration) String

func (m *SigningExpiration) String() string

func (*SigningExpiration) Unmarshal

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

func (*SigningExpiration) XXX_DiscardUnknown

func (m *SigningExpiration) XXX_DiscardUnknown()

func (*SigningExpiration) XXX_Marshal

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

func (*SigningExpiration) XXX_Merge

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

func (*SigningExpiration) XXX_Size

func (m *SigningExpiration) XXX_Size() int

func (*SigningExpiration) XXX_Unmarshal

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

type SigningExpirations

type SigningExpirations struct {
	// signing_expirations is a list of SigningExpiration object.
	SigningExpirations []SigningExpiration `protobuf:"bytes,1,rep,name=signing_expirations,json=signingExpirations,proto3" json:"signing_expirations"`
}

SigningExpirations is a list of signing expiration information that are waiting in the queue.

func NewSigningExpirations

func NewSigningExpirations(signingExpirations []SigningExpiration) SigningExpirations

NewSigningExpirations creates a new SigningExpirations instance.

func (*SigningExpirations) Descriptor

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

func (*SigningExpirations) Equal

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

func (*SigningExpirations) GetSigningExpirations

func (m *SigningExpirations) GetSigningExpirations() []SigningExpiration

func (*SigningExpirations) Marshal

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

func (*SigningExpirations) MarshalTo

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

func (*SigningExpirations) MarshalToSizedBuffer

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

func (*SigningExpirations) ProtoMessage

func (*SigningExpirations) ProtoMessage()

func (*SigningExpirations) Reset

func (m *SigningExpirations) Reset()

func (*SigningExpirations) Size

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

func (*SigningExpirations) String

func (m *SigningExpirations) String() string

func (*SigningExpirations) Unmarshal

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

func (*SigningExpirations) XXX_DiscardUnknown

func (m *SigningExpirations) XXX_DiscardUnknown()

func (*SigningExpirations) XXX_Marshal

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

func (*SigningExpirations) XXX_Merge

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

func (*SigningExpirations) XXX_Size

func (m *SigningExpirations) XXX_Size() int

func (*SigningExpirations) XXX_Unmarshal

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

type SigningResult

type SigningResult struct {
	// signing is the tss signing result.
	Signing Signing `protobuf:"bytes,1,opt,name=signing,proto3" json:"signing"`
	// current_signing_attempt is the current attempt information of the signing.
	CurrentSigningAttempt *SigningAttempt `` /* 126-byte string literal not displayed */
	// evm_signature is the signature in the format that can use directly in EVM.
	EVMSignature *EVMSignature `protobuf:"bytes,3,opt,name=evm_signature,json=evmSignature,proto3" json:"evm_signature,omitempty"`
	// received_partial_signatures is a list of received partial signatures.
	ReceivedPartialSignatures []PartialSignature `` /* 128-byte string literal not displayed */
}

SigningResult is a tss signing result from querying tss signing information.

func NewSigningResult

func NewSigningResult(
	signing Signing,
	signingAttempt *SigningAttempt,
	evmSignature *EVMSignature,
	receivedPartialSigs []PartialSignature,
) SigningResult

NewSigningResult creates a new SigningResult instance.

func (*SigningResult) Descriptor

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

func (*SigningResult) Equal

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

func (*SigningResult) GetCurrentSigningAttempt

func (m *SigningResult) GetCurrentSigningAttempt() *SigningAttempt

func (*SigningResult) GetEVMSignature

func (m *SigningResult) GetEVMSignature() *EVMSignature

func (*SigningResult) GetReceivedPartialSignatures

func (m *SigningResult) GetReceivedPartialSignatures() []PartialSignature

func (*SigningResult) GetSigning

func (m *SigningResult) GetSigning() Signing

func (*SigningResult) Marshal

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

func (*SigningResult) MarshalTo

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

func (*SigningResult) MarshalToSizedBuffer

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

func (*SigningResult) ProtoMessage

func (*SigningResult) ProtoMessage()

func (*SigningResult) Reset

func (m *SigningResult) Reset()

func (*SigningResult) Size

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

func (*SigningResult) String

func (m *SigningResult) String() string

func (*SigningResult) Unmarshal

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

func (*SigningResult) XXX_DiscardUnknown

func (m *SigningResult) XXX_DiscardUnknown()

func (*SigningResult) XXX_Marshal

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

func (*SigningResult) XXX_Merge

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

func (*SigningResult) XXX_Size

func (m *SigningResult) XXX_Size() int

func (*SigningResult) XXX_Unmarshal

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

type SigningStatus

type SigningStatus int32

SigningStatus is an enumeration of the possible statuses of a signing.

const (
	// SIGNING_STATUS_UNSPECIFIED is the status of a signing that has not been specified.
	SIGNING_STATUS_UNSPECIFIED SigningStatus = 0
	// SIGNING_STATUS_WAITING is the status of a signing that is waiting to be signed in the protocol.
	SIGNING_STATUS_WAITING SigningStatus = 1
	// SIGNING_STATUS_SUCCESS is the status of a signing that has success in the protocol.
	SIGNING_STATUS_SUCCESS SigningStatus = 2
	// SIGNING_STATUS_FALLEN is the status of a signing that has fallen out of the protocol.
	SIGNING_STATUS_FALLEN SigningStatus = 3
)

func (SigningStatus) EnumDescriptor

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

func (SigningStatus) String

func (x SigningStatus) String() string

type TSSCallback

type TSSCallback interface {
	// Must be called when a group is created successfully.
	OnGroupCreationCompleted(ctx sdk.Context, groupID tss.GroupID)

	// Must be called after members fails to create a group.
	OnGroupCreationFailed(ctx sdk.Context, groupID tss.GroupID)

	// Must be called before setting group status to expired.
	OnGroupCreationExpired(ctx sdk.Context, groupID tss.GroupID)

	// Must be called after a signing request is unsuccessfully signed.
	OnSigningFailed(ctx sdk.Context, signingID tss.SigningID)

	// Must be called after a signing request is successfully signed by selected members.
	OnSigningCompleted(ctx sdk.Context, signingID tss.SigningID, assignedMembers []sdk.AccAddress)

	// Must be called before a retry that occurs due to expiration of the signing process.
	OnSigningTimeout(ctx sdk.Context, signingID tss.SigningID, idleMembers []sdk.AccAddress)
}

TSSCallback defines the expected interface for a callback object that registered in the callbackRouter.

type TextSignatureOrder

type TextSignatureOrder struct {
	// message is the data that needs to be signed.
	Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"`
}

TextSignatureOrder defines a general text signature order.

func NewTextSignatureOrder

func NewTextSignatureOrder(msg []byte) *TextSignatureOrder

func (*TextSignatureOrder) Descriptor

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

func (*TextSignatureOrder) Equal

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

func (*TextSignatureOrder) GetMessage

func (*TextSignatureOrder) IsInternal

func (rs *TextSignatureOrder) IsInternal() bool

IsInternal returns false for TextSignatureOrder (allow user to submit this content type).

func (*TextSignatureOrder) Marshal

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

func (*TextSignatureOrder) MarshalTo

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

func (*TextSignatureOrder) MarshalToSizedBuffer

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

func (*TextSignatureOrder) OrderRoute

func (rs *TextSignatureOrder) OrderRoute() string

OrderRoute returns the order router key

func (*TextSignatureOrder) OrderType

func (rs *TextSignatureOrder) OrderType() string

OrderType of TextSignatureOrder is "text"

func (*TextSignatureOrder) ProtoMessage

func (*TextSignatureOrder) ProtoMessage()

func (*TextSignatureOrder) Reset

func (m *TextSignatureOrder) Reset()

func (*TextSignatureOrder) Size

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

func (*TextSignatureOrder) String

func (m *TextSignatureOrder) String() string

func (*TextSignatureOrder) Unmarshal

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

func (*TextSignatureOrder) ValidateBasic

func (rs *TextSignatureOrder) ValidateBasic() error

ValidateBasic performs no-op for this type

func (*TextSignatureOrder) XXX_DiscardUnknown

func (m *TextSignatureOrder) XXX_DiscardUnknown()

func (*TextSignatureOrder) XXX_Marshal

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

func (*TextSignatureOrder) XXX_Merge

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

func (*TextSignatureOrder) XXX_Size

func (m *TextSignatureOrder) XXX_Size() int

func (*TextSignatureOrder) XXX_Unmarshal

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

type TunnelOriginator

type TunnelOriginator struct {
	// source_chain_id is the source chain ID that the data is originated from.
	SourceChainID string `protobuf:"bytes,1,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"`
	// tunnel_id is the tunnel ID that the request is originated from.
	TunnelID uint64 `protobuf:"varint,2,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"`
	// destination_chain_id is the destination chain ID that the data should be relayed to.
	DestinationChainID string `protobuf:"bytes,3,opt,name=destination_chain_id,json=destinationChainId,proto3" json:"destination_chain_id,omitempty"`
	// destination_contract_address is the destination address that the data should be relayed to.
	DestinationContractAddress string `` /* 141-byte string literal not displayed */
}

TunnelOriginator is a message originator defines an information of the requester on TSS request via tunnel module.

func NewTunnelOriginator

func NewTunnelOriginator(
	sourceChainID string,
	tunnelID uint64,
	destinationChainID string,
	destinationContractAddress string,
) TunnelOriginator

NewTunnelOriginator creates a new tunnel originator.

func (*TunnelOriginator) Descriptor

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

func (TunnelOriginator) Encode

func (o TunnelOriginator) Encode() ([]byte, error)

Encode encodes the originator into a byte array.

func (*TunnelOriginator) GetDestinationChainID

func (m *TunnelOriginator) GetDestinationChainID() string

func (*TunnelOriginator) GetDestinationContractAddress

func (m *TunnelOriginator) GetDestinationContractAddress() string

func (*TunnelOriginator) GetSourceChainID

func (m *TunnelOriginator) GetSourceChainID() string

func (*TunnelOriginator) GetTunnelID

func (m *TunnelOriginator) GetTunnelID() uint64

func (*TunnelOriginator) Marshal

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

func (*TunnelOriginator) MarshalTo

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

func (*TunnelOriginator) MarshalToSizedBuffer

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

func (*TunnelOriginator) ProtoMessage

func (*TunnelOriginator) ProtoMessage()

func (*TunnelOriginator) Reset

func (m *TunnelOriginator) Reset()

func (*TunnelOriginator) Size

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

func (*TunnelOriginator) String

func (m *TunnelOriginator) String() string

func (*TunnelOriginator) Unmarshal

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

func (TunnelOriginator) Validate

func (o TunnelOriginator) Validate(p Params) error

Validate checks the validity of the originator.

func (*TunnelOriginator) XXX_DiscardUnknown

func (m *TunnelOriginator) XXX_DiscardUnknown()

func (*TunnelOriginator) XXX_Marshal

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

func (*TunnelOriginator) XXX_Merge

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

func (*TunnelOriginator) XXX_Size

func (m *TunnelOriginator) XXX_Size() int

func (*TunnelOriginator) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Complain

func (*UnimplementedMsgServer) Confirm

func (*UnimplementedMsgServer) ResetDE

func (*UnimplementedMsgServer) SubmitDEs

func (*UnimplementedMsgServer) SubmitDKGRound1

func (*UnimplementedMsgServer) SubmitDKGRound2

func (*UnimplementedMsgServer) SubmitSignature

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Counts

func (*UnimplementedQueryServer) DE

func (*UnimplementedQueryServer) Group

func (*UnimplementedQueryServer) Groups

func (*UnimplementedQueryServer) IsGrantee

func (*UnimplementedQueryServer) Members

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PendingGroups

func (*UnimplementedQueryServer) PendingSignings

func (*UnimplementedQueryServer) Signing

func (*UnimplementedQueryServer) Signings

Jump to

Keyboard shortcuts

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