Skip to content

Refactor CONFIG object for better maintainability #3

@adithyaakrishna

Description

@adithyaakrishna

The CONFIG object in config.ts contains configuration for different encryption algorithms. Refactoring this object could improve maintainability and readability.

Tasks:

  1. Create separate configuration objects for each encryption algorithm (chacha20, aes-256-ctr, aes-128-ctr).
  2. Use a factory function or a class to generate these configuration objects.
  3. Implement type checking for the configuration objects.
  4. Add comments explaining the purpose of each configuration property.
  5. Consider using TypeScript interfaces to define the structure of the configuration objects.

Refactoring the CONFIG object will make it easier to add new encryption algorithms in the future and improve code organization.

Contributors: Please note that by submitting a pull request, you are agreeing to accept and sign the Contributor License Agreement (CLA) found at https://github.com/reclaimprotocol/.github/blob/main/CLA.md

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions