2018-10-05 20:59:12 -07:00
|
|
|
package keys
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
func errKeyNameConflict(name string) error {
|
2019-02-05 08:22:56 -08:00
|
|
|
return fmt.Errorf("account with name %s already exists", name)
|
2018-10-05 20:59:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func errMissingName() error {
|
|
|
|
return fmt.Errorf("you have to specify a name for the locally stored account")
|
|
|
|
}
|
|
|
|
|
|
|
|
func errMissingPassword() error {
|
|
|
|
return fmt.Errorf("you have to specify a password for the locally stored account")
|
|
|
|
}
|
|
|
|
|
2019-02-05 08:22:56 -08:00
|
|
|
func errMissingMnemonic() error {
|
|
|
|
return fmt.Errorf("you have to specify a mnemonic for key recovery")
|
|
|
|
}
|
|
|
|
|
|
|
|
func errInvalidMnemonic() error {
|
|
|
|
return fmt.Errorf("the mnemonic is invalid")
|
|
|
|
}
|
|
|
|
|
|
|
|
func errInvalidAccountNumber() error {
|
|
|
|
return fmt.Errorf("the account number is invalid")
|
|
|
|
}
|
|
|
|
|
|
|
|
func errInvalidIndexNumber() error {
|
|
|
|
return fmt.Errorf("the index number is invalid")
|
2018-10-08 21:38:58 -07:00
|
|
|
}
|