2023-11-02 13:51:38 +00:00
|
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Keycard(Enum):
|
2024-07-19 06:43:44 +00:00
|
|
|
|
KEYCARD_PIN = '1'
|
|
|
|
|
KEYCARD_INCORRECT_PIN = '2'
|
2023-11-17 14:54:57 +00:00
|
|
|
|
KEYCARD_CORRECT_PUK = '111111111111'
|
|
|
|
|
KEYCARD_INCORRECT_PUK = '222222222222'
|
2023-11-02 13:51:38 +00:00
|
|
|
|
KEYCARD_NAME = 'Test Keycard'
|
2023-11-17 14:54:44 +00:00
|
|
|
|
ACCOUNT_NAME = 'Test Account'
|
2023-11-10 11:34:49 +00:00
|
|
|
|
KEYCARD_POPUP_HEADER_CREATE_SEED = 'Create a new Keycard account with a new seed phrase'
|
|
|
|
|
KEYCARD_POPUP_HEADER_IMPORT_SEED = 'Import or restore a Keycard via a seed phrase'
|
|
|
|
|
KEYCARD_POPUP_HEADER_SET_UP_EXISTING = 'Set up a new Keycard with an existing account'
|
2023-11-02 13:51:38 +00:00
|
|
|
|
KEYCARD_INSTRUCTIONS_PLUG_IN = 'Plug in Keycard reader...'
|
|
|
|
|
KEYCARD_INSTRUCTIONS_INSERT_KEYCARD = 'Insert Keycard...'
|
|
|
|
|
KEYCARD_RECOGNIZED = 'Keycard recognized'
|
|
|
|
|
KEYCARD_CHOOSE_PIN = 'Choose a Keycard PIN'
|
2023-11-10 15:30:47 +00:00
|
|
|
|
KEYCARD_ENTER_PIN = "Enter this Keycard’s PIN"
|
2023-11-15 16:28:11 +00:00
|
|
|
|
KEYCARD_ENTER_PIN_2 = "Enter Keycard PIN"
|
2023-11-10 11:34:49 +00:00
|
|
|
|
KEYCARD_PIN_NOTE = 'It is very important that you do not lose this PIN'
|
2023-11-02 13:51:38 +00:00
|
|
|
|
KEYCARD_REPEAT_PIN = 'Repeat Keycard PIN'
|
|
|
|
|
KEYCARD_PIN_SET = 'Keycard PIN set'
|
2023-11-10 15:30:47 +00:00
|
|
|
|
KEYCARD_PIN_VERIFIED = 'Keycard PIN verified!'
|
2023-11-10 11:34:49 +00:00
|
|
|
|
KEYCARD_NAME_KEYCARD = 'Name this Keycard'
|
2023-11-02 13:51:38 +00:00
|
|
|
|
KEYCARD_NAME_ACCOUNTS = 'Name accounts'
|
|
|
|
|
KEYCARD_NEW_ACCOUNT_CREATED = 'New account successfully created'
|
2023-11-08 14:33:16 +00:00
|
|
|
|
KEYCARD_READY = 'Keycard is ready to use!'
|
2023-11-10 11:34:49 +00:00
|
|
|
|
KEYCARD_SELECT_KEYPAIR = 'Select a key pair'
|
|
|
|
|
KEYCARD_SELECT_WHICH_PAIR = 'Select which key pair you’d like to move to this Keycard'
|
|
|
|
|
KEYCARD_KEYPAIR_INFO = 'Moving this key pair will require you to use your Keycard to login'
|
|
|
|
|
KEYCARD_MIGRATING = 'Migrating key pair to Keycard'
|
2024-07-19 06:43:44 +00:00
|
|
|
|
KEYCARD_KEYPAIR_MIGRATED = 'Key pair successfully migrated'
|
2023-11-10 11:34:49 +00:00
|
|
|
|
KEYCARD_COMPLETE_MIGRATION = 'To complete migration close Status and log in with your new Keycard'
|
2023-11-10 15:30:47 +00:00
|
|
|
|
KEYCARD_EMPTY = 'Keycard is empty'
|
|
|
|
|
KEYCARD_NO_KEYPAIR = 'There is no key pair on this Keycard'
|
|
|
|
|
KEYCARD_NOT = 'This is not a Keycard'
|
|
|
|
|
KEYCARD_NOT_RECOGNIZED_NOTE = 'The card inserted is not a recognised Keycard,\nplease remove and try and again'
|
|
|
|
|
KEYCARD_LOCKED = 'Keycard locked'
|
|
|
|
|
KEYCARD_LOCKED_NOTE = 'You will need to unlock it before proceeding'
|
|
|
|
|
KEYCARD_ACCOUNTS = 'Accounts on this Keycard'
|
2023-11-15 16:28:11 +00:00
|
|
|
|
KEYCARD_FACTORY_RESET_TITLE = 'A factory reset will delete the key on this Keycard.\nAre you sure you want to do this?'
|
|
|
|
|
KEYCARD_FACTORY_RESET_SUCCESSFUL = 'Keycard successfully factory reset'
|
|
|
|
|
KEYCARD_YOU_CAN_USE_AS_EMPTY = 'You can now use this Keycard as if it\nwas a brand new empty Keycard'
|
|
|
|
|
KEYCARD_INCORRECT_PIN_MESSAGE = 'PIN incorrect'
|
2023-11-17 14:54:57 +00:00
|
|
|
|
KEYCARD_4_ATTEMPTS_REMAINING = '4 attempts remaining'
|
|
|
|
|
KEYCARD_3_ATTEMPTS_REMAINING = '3 attempts remaining'
|
2023-11-15 16:28:11 +00:00
|
|
|
|
KEYCARD_2_ATTEMPTS_REMAINING = '2 attempts remaining'
|
|
|
|
|
KEYCARD_1_ATTEMPT_REMAINING = '1 attempt remaining'
|
|
|
|
|
KEYCARD_LOCKED_INCORRECT_PIN = 'Pin entered incorrectly too many times'
|
2023-11-17 14:54:57 +00:00
|
|
|
|
KEYCARD_LOCKED_INCORRECT_PUK = 'Puk entered incorrectly too many times'
|
|
|
|
|
KEYCARD_UNLOCK = 'Unlock this Keycard'
|
|
|
|
|
KEYCARD_ENTER_PUK = 'Enter PUK'
|
|
|
|
|
KEYCARD_UNLOCK_SUCCESSFUL = 'Unlock successful'
|
|
|
|
|
KEYCARD_PUK_IS_INCORRECT = 'The PUK is incorrect, try entering it again'
|