We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ae52b commit c69aa19Copy full SHA for c69aa19
runtime/app.go
@@ -32,6 +32,7 @@ import (
32
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
33
)
34
35
+// KeyGenF is a function that generates a private key for use by comet.
36
type KeyGenF = func() (cmtcrypto.PrivKey, error)
37
38
// App is a wrapper around BaseApp and ModuleManager that can be used in hybrid
@@ -313,6 +314,7 @@ type hasServicesV1 interface {
313
314
RegisterServices(grpc.ServiceRegistrar) error
315
}
316
317
+// ValidatorKeyProvider returns a function that generates a private key for use by comet.
318
func (a *App) ValidatorKeyProvider() KeyGenF {
319
return func() (cmtcrypto.PrivKey, error) {
320
return cmted25519.GenPrivKey(), nil
0 commit comments