Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) CancelProvingSchemeActivation(ctx sdk.Context, index utils.SEDAKeyIndex) error
- func (k Keeper) CheckKeyRegistrationRate(ctx sdk.Context, keyIndex utils.SEDAKeyIndex) (bool, error)
- func (k Keeper) EndBlock(ctx sdk.Context) (err error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k Keeper) GetActivationBlockDelay(ctx sdk.Context) (int64, error)
- func (k Keeper) GetActivationThresholdPercent(ctx sdk.Context) (uint32, error)
- func (k Keeper) GetAllProvingSchemes(ctx sdk.Context) ([]types.ProvingScheme, error)
- func (k Keeper) GetAllValidatorPubKeys(ctx context.Context) ([]types.ValidatorPubKeys, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error)
- func (k Keeper) GetProvingScheme(ctx context.Context, index utils.SEDAKeyIndex) (types.ProvingScheme, error)
- func (k Keeper) GetValidatorKeyAtIndex(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex) ([]byte, error)
- func (k Keeper) GetValidatorKeys(ctx context.Context, validatorAddr string) (result types.ValidatorPubKeys, err error)
- func (k Keeper) HasRegisteredKey(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex) (bool, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
- func (k Keeper) IsProvingSchemeActivated(ctx context.Context, index utils.SEDAKeyIndex) (bool, error)
- func (k Keeper) JailValidators(ctx sdk.Context, keyIndex utils.SEDAKeyIndex) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) SetProvingScheme(ctx context.Context, scheme types.ProvingScheme) error
- func (k Keeper) SetValidatorKeyAtIndex(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex, ...) error
- func (k Keeper) StartProvingSchemeActivation(ctx sdk.Context, index utils.SEDAKeyIndex) error
- func (k Keeper) StoreIndexedPubKeys(ctx sdk.Context, valAddr sdk.ValAddress, pubKeys []types.IndexedPubKey) error
- type Querier
- func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (q Querier) ProvingSchemes(ctx context.Context, _ *types.QueryProvingSchemesRequest) (*types.QueryProvingSchemesResponse, error)
- func (q Querier) ValidatorKeys(ctx context.Context, req *types.QueryValidatorKeysRequest) (*types.QueryValidatorKeysResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeService storetypes.KVStoreService, stk types.StakingKeeper, slk types.SlashingKeeper, valAddrCdc address.Codec, authority string) *Keeper
func (Keeper) CancelProvingSchemeActivation ¶
func (Keeper) CheckKeyRegistrationRate ¶
func (k Keeper) CheckKeyRegistrationRate(ctx sdk.Context, keyIndex utils.SEDAKeyIndex) (bool, error)
CheckKeyRegistrationRate checks if the current registration rate of public keys of the given key scheme exceeds the threshold.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
ExportGenesis extracts all data from store to genesis state.
func (Keeper) GetActivationBlockDelay ¶
func (Keeper) GetActivationThresholdPercent ¶
func (Keeper) GetAllProvingSchemes ¶
func (Keeper) GetAllValidatorPubKeys ¶
GetAllValidatorPubKeys returns all validator public keys in the store.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetProvingScheme ¶
func (k Keeper) GetProvingScheme(ctx context.Context, index utils.SEDAKeyIndex) (types.ProvingScheme, error)
func (Keeper) GetValidatorKeyAtIndex ¶
func (k Keeper) GetValidatorKeyAtIndex(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex) ([]byte, error)
func (Keeper) GetValidatorKeys ¶
func (k Keeper) GetValidatorKeys(ctx context.Context, validatorAddr string) (result types.ValidatorPubKeys, err error)
GetValidatorKeys returns all public keys of a given validator.
func (Keeper) HasRegisteredKey ¶
func (k Keeper) HasRegisteredKey(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex) (bool, error)
HasRegisteredKey returns true if the validator has registered a key at the index.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
InitGenesis initializes the store based on the given genesis state.
func (Keeper) IsProvingSchemeActivated ¶
func (Keeper) JailValidators ¶
JailValidators goes through all validators in the store and jails validators without the public key corresponding to the given key scheme.
func (Keeper) SetProvingScheme ¶
func (Keeper) SetValidatorKeyAtIndex ¶
func (k Keeper) SetValidatorKeyAtIndex(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex, pubKey []byte) error
func (Keeper) StartProvingSchemeActivation ¶
StartProvingSchemeActivation starts the activation of the given proving scheme.
func (Keeper) StoreIndexedPubKeys ¶
func (k Keeper) StoreIndexedPubKeys(ctx sdk.Context, valAddr sdk.ValAddress, pubKeys []types.IndexedPubKey) error
StoreIndexedPubKeys stores the given list of indexed public keys for a validator.
type Querier ¶
type Querier struct {
*Keeper
}
func (Querier) Params ¶
func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Querier) ProvingSchemes ¶
func (q Querier) ProvingSchemes(ctx context.Context, _ *types.QueryProvingSchemesRequest) (*types.QueryProvingSchemesResponse, error)
func (Querier) ValidatorKeys ¶
func (q Querier) ValidatorKeys(ctx context.Context, req *types.QueryValidatorKeysRequest) (*types.QueryValidatorKeysResponse, error)