Documentation ¶
Index ¶
- Constants
- Variables
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k *Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) AuthorizedAddress(goCtx context.Context, req *types.QueryAuthorizedAddressRequest) (*types.QueryAuthorizedAddressResponse, error)
- func (k Keeper) AuthorizedAddressAll(goCtx context.Context, req *types.QueryAuthorizedAddressAllRequest) (*types.QueryAuthorizedAddressAllResponse, error)
- func (k *Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k *Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) Commitments(c context.Context, req *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error)
- func (k Keeper) DecreaseAuthorizedCount(ctx context.Context, creator string)
- func (k Keeper) DecryptionKey(goCtx context.Context, req *types.QueryDecryptionKeyRequest) (*types.QueryDecryptionKeyResponse, error)
- func (k Keeper) DecryptionKeyAll(goCtx context.Context, req *types.QueryDecryptionKeyAllRequest) (*types.QueryDecryptionKeyAllResponse, error)
- func (k Keeper) DeleteActiveCommitments(ctx context.Context)
- func (k Keeper) DeleteActivePubkey(ctx context.Context)
- func (k Keeper) DeleteQueuedCommitments(ctx context.Context)
- func (k Keeper) DeleteQueuedPubkey(ctx context.Context)
- func (k Keeper) GeneralKeyshare(goCtx context.Context, req *types.QueryGeneralKeyshareRequest) (*types.QueryGeneralKeyshareResponse, error)
- func (k Keeper) GeneralKeyshareAll(goCtx context.Context, req *types.QueryGeneralKeyshareAllRequest) (*types.QueryGeneralKeyshareAllResponse, error)
- func (k Keeper) GetActiveCommitments(ctx context.Context) (val types.Commitments, found bool)
- func (k Keeper) GetActivePubkey(ctx context.Context) (val types.ActivePubkey, found bool)
- func (k Keeper) GetAllAuthorizedAddress(ctx context.Context) (list []types.AuthorizedAddress)
- func (k Keeper) GetAllDecryptionKeyRequests(ctx context.Context) (list []types.DecryptionKeyRequest)
- func (k Keeper) GetAllDecryptionKeys(ctx sdk.Context) (list []types.DecryptionKey)
- func (k Keeper) GetAllGeneralKeyshare(ctx context.Context) (list []types.GeneralKeyshare)
- func (k Keeper) GetAllKeyshare(ctx context.Context) (list []types.Keyshare)
- func (k Keeper) GetAllPrivateDecryptionKeyRequests(ctx context.Context) (list []types.PrivateDecryptionKeyRequest)
- func (k Keeper) GetAllPrivateKeyshare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare)
- func (k Keeper) GetAllValidatorSet(ctx context.Context) (list []types.ValidatorSet)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAuthorizedAddress(ctx context.Context, target string) (val types.AuthorizedAddress, found bool)
- func (k Keeper) GetAuthorizedCount(ctx context.Context, creator string) uint64
- func (k Keeper) GetDecryptionKey(ctx sdk.Context, height uint64) (val types.DecryptionKey, found bool)
- func (k Keeper) GetDecryptionKeyLength(ctx sdk.Context) uint64
- func (k Keeper) GetDecryptionKeyRequest(ctx context.Context, identity string) (val types.DecryptionKeyRequest, found bool)
- func (k Keeper) GetGeneralKeyshare(ctx context.Context, validator string, idType string, idValue string) (val types.GeneralKeyshare, found bool)
- func (k Keeper) GetKeyshare(ctx context.Context, validator string, blockHeight uint64) (val types.Keyshare, found bool)
- func (k Keeper) GetLastSubmittedHeight(ctx context.Context, validator string) uint64
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k *Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetPrivateDecryptionKeyRequest(ctx context.Context, identity string) (val types.PrivateDecryptionKeyRequest, found bool)
- func (k Keeper) GetPrivateKeyshare(ctx context.Context, validator string, identity string, requester string) (val types.ValidatorEncryptedKeyshare, found bool)
- func (k Keeper) GetQueuedCommitments(ctx context.Context) (val types.Commitments, found bool)
- func (k Keeper) GetQueuedPubkey(ctx context.Context) (val types.QueuedPubkey, found bool)
- func (k Keeper) GetRequestCount(ctx sdk.Context) string
- func (k Keeper) GetValidatorSet(ctx context.Context, index string) (val types.ValidatorSet, found bool)
- func (k Keeper) IncreaseAuthorizedCount(ctx context.Context, creator string)
- func (k Keeper) KeyExpiry(ctx sdk.Context) uint64
- func (k Keeper) Keyshare(c context.Context, req *types.QueryKeyshareRequest) (*types.QueryKeyshareResponse, error)
- func (k Keeper) KeyshareAll(c context.Context, req *types.QueryKeyshareAllRequest) (*types.QueryKeyshareAllResponse, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) MaxIdledBlock(ctx sdk.Context) (res uint64)
- func (k Keeper) MinimumBonded(ctx sdk.Context) (res uint64)
- func (k Keeper) OnAcknowledgementDecryptionKeyDataPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnAcknowledgementPrivateDecryptionKeyDataPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) (packetAck types.CurrentKeysPacketAck, err error)
- func (k Keeper) OnRecvGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) (packetAck types.GetDecryptionKeyPacketAck, err error)
- func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) (packetAck types.GetPrivateDecryptionKeyPacketAck, err error)
- func (k Keeper) OnRecvRequestDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) (packetAck types.RequestDecryptionKeyPacketAck, err error)
- func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) (packetAck types.RequestPrivateDecryptionKeyPacketAck, err error)
- func (k Keeper) OnTimeoutDecryptionKeyDataPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnTimeoutGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnTimeoutGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnTimeoutPrivateDecryptionKeyDataPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnTimeoutRequestDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error
- func (k Keeper) ProcessGovSignalQueue(ctx sdk.Context) error
- func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error
- func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error
- func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error
- func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error
- func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error)
- func (k Keeper) RemoveAuthorizedAddress(ctx context.Context, target string)
- func (k Keeper) RemoveDecryptionKey(ctx sdk.Context, height uint64)
- func (k Keeper) RemoveDecryptionKeyRequest(ctx context.Context, identity string)
- func (k Keeper) RemoveGeneralKeyshare(ctx context.Context, validator string, idType string, idValue string)
- func (k Keeper) RemoveKeyshare(ctx context.Context, validator string, blockHeight uint64)
- func (k Keeper) RemovePrivateDecryptionKeyRequest(ctx context.Context, identity string)
- func (k Keeper) RemovePrivateKeyshare(ctx context.Context, validator string, identiy string, requester string)
- func (k Keeper) RemoveValidatorSet(ctx context.Context, index string)
- func (k *Keeper) ScopedKeeper() exported.ScopedKeeper
- func (k Keeper) SetActiveCommitments(ctx context.Context, commits types.Commitments)
- func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey types.ActivePubkey)
- func (k Keeper) SetAuthorizedAddress(ctx context.Context, authorizedAddress types.AuthorizedAddress)
- func (k Keeper) SetDecryptionKey(ctx sdk.Context, decryptionKey types.DecryptionKey)
- func (k Keeper) SetDecryptionKeyLength(ctx sdk.Context, length uint64)
- func (k Keeper) SetDecryptionKeyRequest(ctx context.Context, decryptionKeyReq types.DecryptionKeyRequest)
- func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.GeneralKeyshare)
- func (k Keeper) SetKeyshare(ctx context.Context, keyShare types.Keyshare)
- func (k Keeper) SetLastSubmittedHeight(ctx context.Context, validator, height string)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k *Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetPrivateDecryptionKeyRequest(ctx context.Context, privDecryptionKeyReq types.PrivateDecryptionKeyRequest)
- func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyshare types.ValidatorEncryptedKeyshare)
- func (k Keeper) SetQueuedCommitments(ctx context.Context, commits types.Commitments)
- func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey types.QueuedPubkey)
- func (k Keeper) SetRequestCount(ctx sdk.Context, requestNumber uint64)
- func (k Keeper) SetValidatorSet(ctx context.Context, validatorSet types.ValidatorSet)
- func (k *Keeper) ShouldBound(ctx sdk.Context, portID string) bool
- func (k Keeper) SlashFractionNoKeyshare(ctx sdk.Context) (res math.LegacyDec)
- func (k Keeper) SlashFractionWrongKeyshare(ctx sdk.Context) (res math.LegacyDec)
- func (k Keeper) SlashingKeeper() types.SlashingKeeper
- func (k Keeper) TransmitDecryptionKeyDataPacket(ctx sdk.Context, packetData types.DecryptionKeyDataPacketData, ...) (uint64, error)
- func (k Keeper) TransmitPrivateDecryptionKeyDataPacket(ctx sdk.Context, packetData types.PrivateDecryptionKeyDataPacketData, ...) (uint64, error)
- func (k Keeper) TransmitRequestDecryptionKeyPacket(ctx sdk.Context, packetData types.RequestDecryptionKeyPacketData, ...) (uint64, error)
- func (k Keeper) TrustedAddresses(ctx sdk.Context) (res []string)
- func (k Keeper) ValidatorSet(c context.Context, req *types.QueryValidatorSetRequest) (*types.QueryValidatorSetResponse, error)
- func (k Keeper) ValidatorSetAll(c context.Context, req *types.QueryValidatorSetAllRequest) (*types.QueryValidatorSetAllResponse, error)
- func (k Keeper) VerifiableRandomness(goCtx context.Context, req *types.QueryVerifiableRandomnessRequest) (*types.QueryVerifiableRandomnessResponse, error)
- type Migrator
Constants ¶
const MAX_RETRIES = 5
const (
PrivateGovIdentity = "private-gov-identity"
)
Variables ¶
var SupportedIDTypes = []string{PrivateGovIdentity}
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService store.KVStoreService, logger log.Logger, authority string, ibcKeeperFn func() *ibckeeper.Keeper, scopedKeeper exported.ScopedKeeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, pepKeeper types.PepKeeper, slashingKeeper types.SlashingKeeper, stakingKeeper types.StakingKeeper, govKeeper types.GovKeeper, ) Keeper
func (*Keeper) AuthenticateCapability ¶ added in v0.7.0
func (k *Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
func (Keeper) AuthorizedAddress ¶
func (k Keeper) AuthorizedAddress( goCtx context.Context, req *types.QueryAuthorizedAddressRequest, ) (*types.QueryAuthorizedAddressResponse, error)
func (Keeper) AuthorizedAddressAll ¶
func (k Keeper) AuthorizedAddressAll( goCtx context.Context, req *types.QueryAuthorizedAddressAllRequest, ) (*types.QueryAuthorizedAddressAllResponse, error)
func (*Keeper) BindPort ¶ added in v0.7.0
BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function
func (*Keeper) ChanCloseInit ¶ added in v0.7.0
ChanCloseInit defines a wrapper function for the channel Keeper's function.
func (*Keeper) ClaimCapability ¶ added in v0.7.0
func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it
func (Keeper) Commitments ¶
func (k Keeper) Commitments(c context.Context, req *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error)
Commitments returns the list of all keyshares submitted
func (Keeper) DecreaseAuthorizedCount ¶
func (Keeper) DecryptionKey ¶ added in v0.10.0
func (k Keeper) DecryptionKey( goCtx context.Context, req *types.QueryDecryptionKeyRequest, ) (*types.QueryDecryptionKeyResponse, error)
DecryptionKey returns the decryption key for a particular height
func (Keeper) DecryptionKeyAll ¶ added in v0.10.0
func (k Keeper) DecryptionKeyAll( goCtx context.Context, req *types.QueryDecryptionKeyAllRequest, ) (*types.QueryDecryptionKeyAllResponse, error)
DecryptionKeyAll returns the paginated list of all decryption keys
func (Keeper) DeleteActiveCommitments ¶
DeleteActiveCommitments deletes the active public key in the store
func (Keeper) DeleteActivePubkey ¶ added in v0.10.0
DeleteActivePubkey deletes the active public key in the store
func (Keeper) DeleteQueuedCommitments ¶
DeleteQueuedCommitments deletes the queued public key in the store
func (Keeper) DeleteQueuedPubkey ¶ added in v0.10.0
DeleteQueuedPubkey deletes the queued public key in the store
func (Keeper) GeneralKeyshare ¶ added in v0.10.0
func (k Keeper) GeneralKeyshare( goCtx context.Context, req *types.QueryGeneralKeyshareRequest, ) (*types.QueryGeneralKeyshareResponse, error)
func (Keeper) GeneralKeyshareAll ¶ added in v0.10.0
func (k Keeper) GeneralKeyshareAll( goCtx context.Context, req *types.QueryGeneralKeyshareAllRequest, ) (*types.QueryGeneralKeyshareAllResponse, error)
func (Keeper) GetActiveCommitments ¶
GetActiveCommitments returns the Active public key
func (Keeper) GetActivePubkey ¶ added in v0.10.0
GetActivePubkey returns the Active public key
func (Keeper) GetAllAuthorizedAddress ¶
func (k Keeper) GetAllAuthorizedAddress(ctx context.Context) (list []types.AuthorizedAddress)
GetAllAuthorizedAddress returns all authorizedAddress
func (Keeper) GetAllDecryptionKeyRequests ¶ added in v0.10.0
func (k Keeper) GetAllDecryptionKeyRequests(ctx context.Context) (list []types.DecryptionKeyRequest)
GetAllDecryptionKeyRequests returns all decryption key requests
func (Keeper) GetAllDecryptionKeys ¶ added in v0.10.0
func (k Keeper) GetAllDecryptionKeys(ctx sdk.Context) (list []types.DecryptionKey)
GetAllDecryptionKeys returns all decryption keys
func (Keeper) GetAllGeneralKeyshare ¶ added in v0.10.0
func (k Keeper) GetAllGeneralKeyshare(ctx context.Context) (list []types.GeneralKeyshare)
GetAllGeneralKeyshare returns all generalKeyshare
func (Keeper) GetAllKeyshare ¶ added in v0.10.0
GetAllKeyshare returns all keyshares
func (Keeper) GetAllPrivateDecryptionKeyRequests ¶ added in v0.10.0
func (k Keeper) GetAllPrivateDecryptionKeyRequests( ctx context.Context, ) (list []types.PrivateDecryptionKeyRequest)
GetAllPrivateDecryptionKeyRequests returns all private keyShare requests
func (Keeper) GetAllPrivateKeyshare ¶ added in v0.10.0
func (k Keeper) GetAllPrivateKeyshare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare)
GetAllPrivateKeyshare returns all private Keyshares
func (Keeper) GetAllValidatorSet ¶
func (k Keeper) GetAllValidatorSet(ctx context.Context) (list []types.ValidatorSet)
GetAllValidatorSet returns all validatorSet
func (Keeper) GetAuthority ¶ added in v0.7.0
GetAuthority returns the module's authority.
func (Keeper) GetAuthorizedAddress ¶
func (k Keeper) GetAuthorizedAddress( ctx context.Context, target string, ) (val types.AuthorizedAddress, found bool)
GetAuthorizedAddress returns a authorizedAddress from its index
func (Keeper) GetAuthorizedCount ¶
func (Keeper) GetDecryptionKey ¶ added in v0.10.0
func (k Keeper) GetDecryptionKey( ctx sdk.Context, height uint64, ) (val types.DecryptionKey, found bool)
GetDecryptionKey returns a decryption key from its index
func (Keeper) GetDecryptionKeyLength ¶ added in v0.10.0
GetDecryptionKeyLength returns the length of decryption key
func (Keeper) GetDecryptionKeyRequest ¶ added in v0.10.0
func (k Keeper) GetDecryptionKeyRequest( ctx context.Context, identity string, ) (val types.DecryptionKeyRequest, found bool)
GetDecryptionKeyRequest returns a decryption key request from its index
func (Keeper) GetGeneralKeyshare ¶ added in v0.10.0
func (k Keeper) GetGeneralKeyshare( ctx context.Context, validator string, idType string, idValue string, ) (val types.GeneralKeyshare, found bool)
GetGeneralKeyshare returns a generalKeyshare from its index
func (Keeper) GetKeyshare ¶ added in v0.10.0
func (k Keeper) GetKeyshare( ctx context.Context, validator string, blockHeight uint64, ) (val types.Keyshare, found bool)
GetKeyshare returns a keyshare from its index
func (Keeper) GetLastSubmittedHeight ¶
func (*Keeper) GetPort ¶ added in v0.7.0
GetPort returns the portID for the IBC app module. Used in ExportGenesis
func (Keeper) GetPrivateDecryptionKeyRequest ¶ added in v0.10.0
func (k Keeper) GetPrivateDecryptionKeyRequest( ctx context.Context, identity string, ) (val types.PrivateDecryptionKeyRequest, found bool)
GetPrivateDecryptionKeyRequest returns a private decryption key request from its index
func (Keeper) GetPrivateKeyshare ¶ added in v0.10.0
func (k Keeper) GetPrivateKeyshare( ctx context.Context, validator string, identity string, requester string, ) (val types.ValidatorEncryptedKeyshare, found bool)
GetPrivateKeyshare returns a private Keyshare from its index
func (Keeper) GetQueuedCommitments ¶
GetQueuedCommitments returns the Queued public key
func (Keeper) GetQueuedPubkey ¶ added in v0.10.0
GetQueuedPubkey returns the Queued public key
func (Keeper) GetRequestCount ¶
GetRequestCount returns the request count
func (Keeper) GetValidatorSet ¶
func (k Keeper) GetValidatorSet( ctx context.Context, index string, ) (val types.ValidatorSet, found bool)
GetValidatorSet returns a validatorSet from its index
func (Keeper) IncreaseAuthorizedCount ¶
func (Keeper) Keyshare ¶ added in v0.10.0
func (k Keeper) Keyshare( c context.Context, req *types.QueryKeyshareRequest, ) (*types.QueryKeyshareResponse, error)
Keyshare returns a single keyshare submitted by a particular validator for a particular block height
func (Keeper) KeyshareAll ¶ added in v0.10.0
func (k Keeper) KeyshareAll( c context.Context, req *types.QueryKeyshareAllRequest, ) (*types.QueryKeyshareAllResponse, error)
KeyshareAll returns the list of all keyshares submitted
func (Keeper) MaxIdledBlock ¶
MaxIdledBlock returns the MaxIdledBlock param
func (Keeper) MinimumBonded ¶
MinimumBonded returns the MinimumBonded param
func (Keeper) OnAcknowledgementDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) OnAcknowledgementDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, data types.DecryptionKeyDataPacketData, ack channeltypes.Acknowledgement, ) error
OnAcknowledgementDecryptionKeyDataPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.
func (Keeper) OnAcknowledgementPrivateDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) OnAcknowledgementPrivateDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, data types.PrivateDecryptionKeyDataPacketData, ack channeltypes.Acknowledgement, ) error
OnAcknowledgementPrivateDecryptionKeyDataPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.
func (Keeper) OnRecvCurrentKeysPacket ¶ added in v0.6.0
func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData, ) (packetAck types.CurrentKeysPacketAck, err error)
OnRecvCurrentKeysPacket processes packet reception
func (Keeper) OnRecvGetDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnRecvGetDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, data types.GetDecryptionKeyPacketData, ) (packetAck types.GetDecryptionKeyPacketAck, err error)
OnRecvGetDecryptionKeyPacket processes packet reception
func (Keeper) OnRecvGetPrivateDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, data types.GetPrivateDecryptionKeyPacketData, ) (packetAck types.GetPrivateDecryptionKeyPacketAck, err error)
OnRecvGetPrivateDecryptionKeyPacket processes packet reception
func (Keeper) OnRecvRequestDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnRecvRequestDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, data types.RequestDecryptionKeyPacketData, ) (packetAck types.RequestDecryptionKeyPacketAck, err error)
OnRecvRequestDecryptionKeyPacket processes packet reception
func (Keeper) OnRecvRequestPrivateDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData, ) (packetAck types.RequestPrivateDecryptionKeyPacketAck, err error)
OnRecvRequestPrivateKeysharePacket processes packet reception
func (Keeper) OnTimeoutDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, data types.DecryptionKeyDataPacketData, ) error
OnTimeoutDecryptionKeyDataPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) OnTimeoutGetDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetDecryptionKeyPacketData) error
OnTimeoutGetDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) OnTimeoutGetPrivateDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetPrivateDecryptionKeyPacketData) error
OnTimeoutGetPrivateDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) OnTimeoutPrivateDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutPrivateDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, data types.PrivateDecryptionKeyDataPacketData, ) error
OnTimeoutPrivateDecryptionKeyDataPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) OnTimeoutRequestDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutRequestDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestDecryptionKeyPacketData) error
OnTimeoutRequestDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData) error
OnTimeoutRequestPrivateDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProcessGovRequestQueue ¶ added in v0.6.0
func (Keeper) ProcessGovSignalQueue ¶ added in v0.6.0
func (Keeper) ProcessPepRequestQueue ¶ added in v0.6.0
func (Keeper) ProcessPepSignalQueue ¶ added in v0.6.0
func (Keeper) ProcessPrivateRequestQueue ¶ added in v0.9.0
func (Keeper) ProcessPrivateSignalQueue ¶ added in v0.9.0
func (Keeper) Pubkey ¶ added in v0.10.0
func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error)
Pubkey returns the lates public keys
func (Keeper) RemoveAuthorizedAddress ¶
RemoveAuthorizedAddress removes a authorizedAddress from the store
func (Keeper) RemoveDecryptionKey ¶ added in v0.10.0
RemoveDecryptionKey removes a decryption key from the store
func (Keeper) RemoveDecryptionKeyRequest ¶ added in v0.10.0
RemoveDecryptionKeyRequest removes a decryption key request from the store
func (Keeper) RemoveGeneralKeyshare ¶ added in v0.10.0
func (k Keeper) RemoveGeneralKeyshare( ctx context.Context, validator string, idType string, idValue string, )
RemoveGeneralKeyshare removes a generalKeyshare from the store
func (Keeper) RemoveKeyshare ¶ added in v0.10.0
RemoveKeyshare removes a keyShare from the store
func (Keeper) RemovePrivateDecryptionKeyRequest ¶ added in v0.10.0
RemovePrivateDecryptionKeyRequest removes a private decryption key request from the store
func (Keeper) RemovePrivateKeyshare ¶ added in v0.10.0
func (k Keeper) RemovePrivateKeyshare( ctx context.Context, validator string, identiy string, requester string, )
RemovePrivateKeyshare removes an private Keyshare from the store
func (Keeper) RemoveValidatorSet ¶
RemoveValidatorSet removes a validatorSet from the store
func (*Keeper) ScopedKeeper ¶ added in v0.7.0
func (k *Keeper) ScopedKeeper() exported.ScopedKeeper
ScopedKeeper returns the ScopedKeeper
func (Keeper) SetActiveCommitments ¶
func (k Keeper) SetActiveCommitments(ctx context.Context, commits types.Commitments)
SetActiveCommitments set a specific public key to active in the store
func (Keeper) SetActivePubkey ¶ added in v0.10.0
func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey types.ActivePubkey)
SetActivePubkey set a specific public key to active in the store
func (Keeper) SetAuthorizedAddress ¶
func (k Keeper) SetAuthorizedAddress(ctx context.Context, authorizedAddress types.AuthorizedAddress)
SetAuthorizedAddress set a specific authorizedAddress in the store from its index
func (Keeper) SetDecryptionKey ¶ added in v0.10.0
func (k Keeper) SetDecryptionKey(ctx sdk.Context, decryptionKey types.DecryptionKey)
SetDecryptionKey set a specific decryption key in the store from its index
func (Keeper) SetDecryptionKeyLength ¶ added in v0.10.0
SetDecryptionKeyLength set a specific length to decryption key length
func (Keeper) SetDecryptionKeyRequest ¶ added in v0.10.0
func (k Keeper) SetDecryptionKeyRequest(ctx context.Context, decryptionKeyReq types.DecryptionKeyRequest)
SetDecryptionKeyRequest set a specific decryption key request in the store by its index
func (Keeper) SetGeneralKeyshare ¶ added in v0.10.0
func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.GeneralKeyshare)
SetGeneralKeyshare set a specific generalKeyshare in the store from its index
func (Keeper) SetKeyshare ¶ added in v0.10.0
SetKeyshare set a specific keyShare in the store from its index
func (Keeper) SetLastSubmittedHeight ¶
func (*Keeper) SetPort ¶ added in v0.7.0
SetPort sets the portID for the IBC app module. Used in InitGenesis
func (Keeper) SetPrivateDecryptionKeyRequest ¶ added in v0.10.0
func (k Keeper) SetPrivateDecryptionKeyRequest( ctx context.Context, privDecryptionKeyReq types.PrivateDecryptionKeyRequest, )
SetPrivateDecryptionKeyRequest set a specific private decryption key request in the store by its index
func (Keeper) SetPrivateKeyshare ¶ added in v0.10.0
func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyshare types.ValidatorEncryptedKeyshare)
SetPrivateKeyshare set a specific private Keyshare in the store from its index
func (Keeper) SetQueuedCommitments ¶
func (k Keeper) SetQueuedCommitments(ctx context.Context, commits types.Commitments)
SetQueuedCommitments set a specific public key in the store
func (Keeper) SetQueuedPubkey ¶ added in v0.10.0
func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey types.QueuedPubkey)
SetQueuedPubkey set a specific public key in the store
func (Keeper) SetRequestCount ¶
SetRequestCount sets RequestCount
func (Keeper) SetValidatorSet ¶
func (k Keeper) SetValidatorSet(ctx context.Context, validatorSet types.ValidatorSet)
SetValidatorSet set a specific validatorSet in the store from its index
func (*Keeper) ShouldBound ¶ added in v0.7.0
ShouldBound checks if the IBC app module can be bound to the desired port
func (Keeper) SlashFractionNoKeyshare ¶
SlashFractionNoKeyshare returns the SlashFractionNoKeyshare param
func (Keeper) SlashFractionWrongKeyshare ¶
SlashFractionWrongKeyshare returns the SlashFractionWrongKeyshare param
func (Keeper) SlashingKeeper ¶ added in v0.7.0
func (k Keeper) SlashingKeeper() types.SlashingKeeper
func (Keeper) TransmitDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) TransmitDecryptionKeyDataPacket( ctx sdk.Context, packetData types.DecryptionKeyDataPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) (uint64, error)
TransmitDecryptionKeyDataPacket transmits the packet over IBC with the specified source port and source channel
func (Keeper) TransmitPrivateDecryptionKeyDataPacket ¶ added in v0.10.0
func (k Keeper) TransmitPrivateDecryptionKeyDataPacket( ctx sdk.Context, packetData types.PrivateDecryptionKeyDataPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) (uint64, error)
TransmitPrivateDecryptionKeyDataPacket transmits the packet over IBC with the specified source port and source channel
func (Keeper) TransmitRequestDecryptionKeyPacket ¶ added in v0.10.0
func (k Keeper) TransmitRequestDecryptionKeyPacket( ctx sdk.Context, packetData types.RequestDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) (uint64, error)
TransmitRequestDecryptionKeyPacket transmits the packet over IBC with the specified source port and source channel
func (Keeper) TrustedAddresses ¶
TrustedAddresses returns the TrustedAddresses param
func (Keeper) ValidatorSet ¶
func (k Keeper) ValidatorSet( c context.Context, req *types.QueryValidatorSetRequest, ) (*types.QueryValidatorSetResponse, error)
func (Keeper) ValidatorSetAll ¶
func (k Keeper) ValidatorSetAll( c context.Context, req *types.QueryValidatorSetAllRequest, ) (*types.QueryValidatorSetAllResponse, error)
ValidatorSetAll returns the complete list of registered validators
func (Keeper) VerifiableRandomness ¶ added in v0.7.0
func (k Keeper) VerifiableRandomness( goCtx context.Context, req *types.QueryVerifiableRandomnessRequest, ) (*types.QueryVerifiableRandomnessResponse, error)
type Migrator ¶ added in v0.7.1
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v0.7.1
NewMigrator returns a new Migrator.
Source Files ¶
- authorized_address.go
- commitments.go
- current_keys.go
- decryption_key.go
- decryption_key_data.go
- decryption_key_request.go
- general_keyshare.go
- get_decryption_key.go
- keeper.go
- keyshare.go
- last_submitted_height.go
- migrations.go
- msg_authorized_address.go
- msg_create_pubkey.go
- msg_deregister_validator.go
- msg_override_pubkey.go
- msg_register_validator.go
- msg_send_keyshare.go
- msg_server.go
- msg_submit_encrypted_keyshare.go
- msg_submit_general_keyshare.go
- msg_update_params.go
- params.go
- process_queues.go
- pub_key.go
- query.go
- query_authorized_address.go
- query_commitments.go
- query_decryption_key.go
- query_general_keyshare.go
- query_keyshare.go
- query_params.go
- query_pub_key.go
- query_validator_set.go
- query_verifiable_randomness.go
- request_decryption_key.go
- validator_set.go