Documentation
¶
Index ¶
- Variables
- func ProvideAckExecutiveAuthorityKeySigner() signing.CustomGetSigner
- func ProvideAuthorizedSendSigner() signing.CustomGetSigner
- func ProvideCastVoteSigner() signing.CustomGetSigner
- func ProvideContributeDKGSigner() signing.CustomGetSigner
- func ProvideCreateValidatorWithPallasKeySigner() signing.CustomGetSigner
- func ProvideCreateVotingSessionSigner() signing.CustomGetSigner
- func ProvideDelegateVoteSigner() signing.CustomGetSigner
- func ProvideRegisterPallasKeySigner() signing.CustomGetSigner
- func ProvideRevealShareSigner() signing.CustomGetSigner
- func ProvideRotatePallasKeySigner() signing.CustomGetSigner
- func ProvideSubmitPartialDecryptionSigner() signing.CustomGetSigner
- func ProvideSubmitTallySigner() signing.CustomGetSigner
- func ProvideUpdateVoteManagersSigner() signing.CustomGetSigner
- type AppModule
- func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (am AppModule) DefaultGenesis(_ codec.JSONCodec) json.RawMessage
- func (am AppModule) EndBlock(goCtx context.Context) error
- func (am AppModule) ExportGenesis(ctx sdk.Context, _ codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage)
- func (AppModule) IsAppModule()
- func (AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, data json.RawMessage) error
- type ModuleInputs
- type ModuleOutputs
Constants ¶
This section is empty.
Variables ¶
var DefaultVoteManagerAddresses = []string{
"sv1mqts0klc9768rns9h2ykeaka5tve6ts39c2zu3",
}
DefaultVoteManagerAddresses is the default vote-manager set used in DefaultGenesis.
Functions ¶
func ProvideAckExecutiveAuthorityKeySigner ¶
func ProvideAckExecutiveAuthorityKeySigner() signing.CustomGetSigner
MsgAckExecutiveAuthorityKey stays noop: it is auto-injected by PrepareProposal and never goes through standard Cosmos SDK signing.
func ProvideAuthorizedSendSigner ¶ added in v0.3.0
func ProvideAuthorizedSendSigner() signing.CustomGetSigner
func ProvideCastVoteSigner ¶
func ProvideCastVoteSigner() signing.CustomGetSigner
func ProvideContributeDKGSigner ¶ added in v0.4.0
func ProvideContributeDKGSigner() signing.CustomGetSigner
MsgContributeDKG is auto-injected by PrepareProposal (like ack/partial-decrypt), never submitted via standard Cosmos SDK signing.
func ProvideCreateValidatorWithPallasKeySigner ¶
func ProvideCreateValidatorWithPallasKeySigner() signing.CustomGetSigner
func ProvideCreateVotingSessionSigner ¶
func ProvideCreateVotingSessionSigner() signing.CustomGetSigner
func ProvideDelegateVoteSigner ¶
func ProvideDelegateVoteSigner() signing.CustomGetSigner
func ProvideRegisterPallasKeySigner ¶
func ProvideRegisterPallasKeySigner() signing.CustomGetSigner
func ProvideRevealShareSigner ¶
func ProvideRevealShareSigner() signing.CustomGetSigner
func ProvideRotatePallasKeySigner ¶ added in v0.4.1
func ProvideRotatePallasKeySigner() signing.CustomGetSigner
func ProvideSubmitPartialDecryptionSigner ¶
func ProvideSubmitPartialDecryptionSigner() signing.CustomGetSigner
MsgSubmitPartialDecryption stays noop: it is auto-injected by PrepareProposal during the TALLYING phase and never goes through standard Cosmos SDK signing.
func ProvideSubmitTallySigner ¶
func ProvideSubmitTallySigner() signing.CustomGetSigner
func ProvideUpdateVoteManagersSigner ¶ added in v0.5.8
func ProvideUpdateVoteManagersSigner() signing.CustomGetSigner
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule implements the Cosmos SDK AppModule interface for the vote module.
func NewAppModule ¶
NewAppModule creates a new AppModule.
func (AppModule) AutoCLIOptions ¶
func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
AutoCLIOptions implements autocli.HasAutoCLIConfig.
func (AppModule) DefaultGenesis ¶
func (am AppModule) DefaultGenesis(_ codec.JSONCodec) json.RawMessage
DefaultGenesis returns the default genesis state as raw JSON bytes.
func (AppModule) EndBlock ¶
EndBlock computes the commitment tree root and transitions expired ACTIVE rounds to TALLYING.
func (AppModule) ExportGenesis ¶
ExportGenesis exports the module state as genesis. Uses sdk.Context (not context.Context) to satisfy module.HasGenesis interface.
func (AppModule) InitGenesis ¶
InitGenesis initializes the module state from genesis. Uses sdk.Context (not context.Context) to satisfy module.HasGenesis interface.
func (AppModule) IsAppModule ¶
func (AppModule) IsAppModule()
IsAppModule implements appmodule.AppModule.
func (AppModule) IsOnePerModuleType ¶
func (AppModule) IsOnePerModuleType()
IsOnePerModuleType implements depinject.OnePerModuleType.
func (AppModule) RegisterInterfaces ¶
func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the vote module's message types with the InterfaceRegistry, required for MsgServiceRouter to accept vote messages.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers the module's gRPC services with the app.
Both QueryServer and MsgServer are registered. Vote-round messages bypass the Cosmos SDK Tx envelope (using a raw [tag || protobuf] wire format) with ZKP/RedPallas authentication. Ceremony messages (except MsgAck) use standard Cosmos SDK transactions with signature verification and validator gating. All messages are routed to the keeper via BaseApp's MsgServiceRouter.
func (AppModule) ValidateGenesis ¶
func (am AppModule) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, data json.RawMessage) error
ValidateGenesis performs genesis state validation.
type ModuleInputs ¶
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Logger log.Logger
Config *modulev1.Module
StakingKeeper *stakingkeeper.Keeper
BankKeeper bankkeeper.BaseKeeper
}
ModuleInputs defines the inputs needed to create the vote module.
type ModuleOutputs ¶
ModuleOutputs defines the outputs produced by the vote module.
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs
ProvideModule is called by depinject to construct the vote module and keeper.