"""
Shared constants for the DecentraBrowser system.
"""

# Protocol constants
DEFAULT_PORT = 8844
DEFAULT_CENTRAL_SERVER_PORT = 8800
DEFAULT_REGISTRY_REFRESH = 300  # seconds

# Security constants
RSA_KEY_SIZE = 4096
AES_KEY_SIZE = 256
PFS_CURVE = 'secp384r1'
CERT_EXPIRY_DAYS = 365

# Path constants
DEFAULT_CERTS_DIR = 'certs'
DEFAULT_DOWNLOADS_DIR = 'downloads'
DEFAULT_DDNS_FILE = 'ddns.json'
DEFAULT_CONFIG_FILE = 'config.json'

# Command constants
CMD_SOURCES = '/sources'
CMD_DOWNLOAD = '/download'
CMD_P2P = '/p2p'
# Add these two lines:
CMD_VISIT = '/visit'  # Command for visiting domains
CMD_HELP = '/help'    # Command for displaying help
# Protocol format constants
DOMAIN_FORMAT = "{prefix}.{main}.{suffix}.domain"

# GUI constants
GUI_TITLE = "DecentraBrowser"
GUI_WIDTH = 1024
GUI_HEIGHT = 768