Documentation ¶
Index ¶
- func InitBLSValidatorKey(secretsManager secrets.SecretsManager) ([]byte, error)
- func InitCloudSecretsManager(secretsConfig *secrets.SecretsManagerConfig) (secrets.SecretsManager, error)
- func InitECDSAValidatorKey(secretsManager secrets.SecretsManager) (types.Address, error)
- func InitNetworkingPrivateKey(secretsManager secrets.SecretsManager) (libp2pCrypto.PrivKey, error)
- func InitValidatorBLSSignature(secretsManager secrets.SecretsManager, account *wallet.Account, chainID int64) ([]byte, error)
- func LoadBLSPublicKey(secretsManager secrets.SecretsManager) (string, error)
- func LoadBLSSignature(secretsManager secrets.SecretsManager) (string, error)
- func LoadNodeID(secretsManager secrets.SecretsManager) (string, error)
- func LoadValidatorAddress(secretsManager secrets.SecretsManager) (types.Address, error)
- func MakeKOSKSignature(privateKey *bls.PrivateKey, address types.Address, chainID int64, ...) (*bls.Signature, error)
- func SetupLocalSecretsManager(dataDir string) (secrets.SecretsManager, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBLSValidatorKey ¶ added in v0.6.0
func InitBLSValidatorKey(secretsManager secrets.SecretsManager) ([]byte, error)
func InitCloudSecretsManager ¶ added in v0.6.1
func InitCloudSecretsManager(secretsConfig *secrets.SecretsManagerConfig) (secrets.SecretsManager, error)
InitCloudSecretsManager returns the cloud secrets manager from the provided config
func InitECDSAValidatorKey ¶ added in v0.6.0
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 InitValidatorBLSSignature ¶ added in v0.8.0
func LoadBLSPublicKey ¶ added in v0.6.1
func LoadBLSPublicKey(secretsManager secrets.SecretsManager) (string, error)
LoadBLSPublicKey loads BLS key by SecretsManager and returns BLS Public Key
func LoadBLSSignature ¶ added in v0.8.0
func LoadBLSSignature(secretsManager secrets.SecretsManager) (string, error)
LoadBLSSignature loads BLS Signature from SecretsManager and returns it
func LoadNodeID ¶ added in v0.6.1
func LoadNodeID(secretsManager secrets.SecretsManager) (string, error)
LoadNodeID loads Libp2p key by SecretsManager and returns Node ID
func LoadValidatorAddress ¶ added in v0.6.1
func LoadValidatorAddress(secretsManager secrets.SecretsManager) (types.Address, error)
LoadValidatorAddress loads ECDSA key by SecretsManager and returns validator address
func MakeKOSKSignature ¶ added in v0.8.0
func MakeKOSKSignature( privateKey *bls.PrivateKey, address types.Address, chainID int64, domain []byte) (*bls.Signature, error)
MakeKOSKSignature creates KOSK signature which prevents rogue attack
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.
Click to show internal directories.
Click to hide internal directories.