Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNotInitialized is returned when a bucket is not properly initialized ErrorNotInitialized = errors.New("the keystore is not initialized") // ErrorAlreadyOpen returned when user tries to open a keystore already open. ErrorAlreadyOpen = errors.New("keystore is already open") // ErrorNoOpen returned when the keystore is not open. ErrorNoOpen = errors.New("open the keystore to start using it") // ErrorKeystoreExists returned when a user creates a new keystore over an existing keystore. ErrorKeystoreExists = errors.New("cannot create new keystore, it already exists") )
Functions ¶
This section is empty.
Types ¶
type Keystore ¶
type Keystore interface {
CreateKeystore() error
OpenKeystore() error
Close() error
GetValidatorKey(pubkey [48]byte) (common.SecretKey, bool)
GetValidatorKeys() ([]common.SecretKey, error)
GenerateNewValidatorKey(amount uint64) ([]common.SecretKey, error)
HasKeysToParticipate() bool
AddKey(priv []byte) error
}
Click to show internal directories.
Click to hide internal directories.