Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "get_pubkeys_from_mnemonic" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Get public keys from mnemonic", Category: "validator", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "pubkeys", Type: "array", Description: "Array of generated public keys.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
Mnemonic string `yaml:"mnemonic" json:"mnemonic" require:"A" desc:"Mnemonic phrase used to derive validator public keys."`
StartIndex int `yaml:"startIndex" json:"startIndex" desc:"Index within the mnemonic from which to start deriving keys."`
Count int `yaml:"count" json:"count" desc:"Number of public keys to derive from the mnemonic."`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.