Overview

Key Functions

  • deposit() - Handles deposit with a hashed secret and ensures fee payment.
  • withdraw() - Allows withdrawal if the correct secret is provided.

Utility Functions

  • saveSecret() - Safely stores secret information locally.
  • logSuccess() - Outputs a styled success message.
  • logError() - Outputs a styled error message.