vote

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultVoteManagerAddress = "sv1mqts0klc9768rns9h2ykeaka5tve6ts39c2zu3"

DefaultVoteManagerAddress is the default vote manager used in genesis. Corresponds to the VM_PRIVKEY set via .env (local) or GitHub secret (CI).

Variables

This section is empty.

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 ProvideSetVoteManagerSigner

func ProvideSetVoteManagerSigner() 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

Types

type AppModule

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

AppModule implements the Cosmos SDK AppModule interface for the vote module.

func NewAppModule

func NewAppModule(keeper *keeper.Keeper, cdc codec.Codec) AppModule

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

func (am AppModule) EndBlock(goCtx context.Context) error

EndBlock computes the commitment tree root and transitions expired ACTIVE rounds to TALLYING.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, _ codec.JSONCodec) json.RawMessage

ExportGenesis exports the module state as genesis. Uses sdk.Context (not context.Context) to satisfy module.HasGenesis interface.

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage)

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

func (AppModule) Name() string

Name returns the module name.

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

type ModuleOutputs struct {
	depinject.Out

	Module appmodule.AppModule
	Keeper *keeper.Keeper
}

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.

Directories

Path Synopsis
Package ante implements the validation pipeline for vote module transactions.
Package ante implements the validation pipeline for vote module transactions.
client
cli
module
v1

Jump to

Keyboard shortcuts

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