helper

package
v0.0.0-...-11d95e7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPrivateKeyToHex

func ConvertPrivateKeyToHex(privateKey *ecdsa.PrivateKey) string

func InitBLSValidatorKey

func InitBLSValidatorKey(secretsManager secrets.SecretsManager) ([]byte, error)

func InitCloudSecretsManager

func InitCloudSecretsManager(secretsConfig *secrets.SecretsManagerConfig) (secrets.SecretsManager, error)

InitCloudSecretsManager returns the cloud secrets manager from the provided config

func InitECDSAValidatorKey

func InitECDSAValidatorKey(secretsManager secrets.SecretsManager) (types.Address, error)

InitECDSAValidatorKey creates new ECDSA key and set as a validator key

func InitNetworkingPrivateKey

func InitNetworkingPrivateKey(secretsManager secrets.SecretsManager) (libp2pCrypto.PrivKey, error)

func LoadBLSPublicKey

func LoadBLSPublicKey(secretsManager secrets.SecretsManager) (string, error)

LoadBLSPublicKey loads BLS key by SecretsManager and returns BLS Public Key

func LoadNodeID

func LoadNodeID(secretsManager secrets.SecretsManager) (string, error)

LoadNodeID loads Libp2p key by SecretsManager and returns Node ID

func LoadValidatorAddress

func LoadValidatorAddress(secretsManager secrets.SecretsManager) (types.Address, error)

LoadValidatorAddress loads ECDSA key by SecretsManager and returns validator address

func LoadValidatorKey

func LoadValidatorKey(secretsManager secrets.SecretsManager) (*ecdsa.PrivateKey, error)

func SetupLocalSecretsManager

func SetupLocalSecretsManager(dataDir string) (secrets.SecretsManager, error)

SetupLocalSecretsManager is a helper method for boilerplate local secrets manager setup

Types

This section is empty.

Jump to

Keyboard shortcuts

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