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") // ErrorKeyNotOnKeystore returned when tried to fetch a key that is not on the keystore ErrorKeyNotOnKeystore = errors.New("the specified public key doesn't exists on the keystore") )
Functions ¶
This section is empty.
Types ¶
type Keystore ¶
type Keystore interface { CreateKeystore() error OpenKeystore() error Close() error GenerateNewValidatorKey(amount uint64) ([]*Key, error) HasKeysToParticipate() bool GetValidatorKey(pubkey [48]byte) (*Key, bool) GetValidatorKeys() ([]*Key, error) GetMnemonic() string GetLastPath() int ToggleKey(pub [48]byte, value bool) error AddKey(k *Key) error }
Click to show internal directories.
Click to hide internal directories.