Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountDirFlag = "data-dir" AccountConfigFlag = "config" PrivateKeyFlag = "private-key" ChainIDFlag = "chain-id" AccountDirFlagDesc = "the directory for the Frietor Saar data if the local FS is used" AccountConfigFlagDesc = "the path to the SecretsManager config file, if omitted, the local FS secrets manager is used" PrivateKeyFlagDesc = "hex-encoded private key of the account which executes rootchain commands" ChainIDFlagDesc = "ID of child chain" )
common flags for all polybft commands
Variables ¶
View Source
var ( ErrInvalidNum = fmt.Errorf("num flag value should be between 1 and %d", maxInitNum) ErrInvalidParams = errors.New("no config file or data directory passed in") ErrUnsupportedType = errors.New("unsupported secrets manager") ErrSecureLocalStoreNotImplemented = errors.New( "use a secrets backend, or supply an --insecure flag " + "to store the private keys locally on the filesystem, " + "avoid doing so in production") )
common errors for all polybft commands
Functions ¶
func GetCommand ¶
func GetSecretsManager ¶
func GetSecretsManager(dataPath, configPath string, insecureLocalStore bool) (secrets.SecretsManager, error)
GetSecretsManager function resolves secrets manager instance based on provided data or config paths. insecureLocalStore defines if utilization of local secrets manager is allowed.
Types ¶
type Results ¶
type Results []command.CommandResult
type SecretsInitResult ¶
type SecretsInitResult struct { Address types.Address `json:"address"` BLSPubkey string `json:"bls_pubkey"` NodeID string `json:"node_id"` PrivateKey string `json:"private_key"` BLSPrivateKey string `json:"bls_private_key"` Insecure bool `json:"insecure"` Generated string `json:"generated"` }
func (*SecretsInitResult) GetOutput ¶
func (r *SecretsInitResult) GetOutput() string
Click to show internal directories.
Click to hide internal directories.