-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Description
The generateProof function in zk.ts could benefit from additional input validation to prevent potential errors and improve user experience.
Tasks:
- Add type checking for the opts parameter using TypeScript interfaces.
- Implement checks for required properties in the opts object.
- Validate the algorithm property against the list of supported algorithms.
- Add size checks for key, iv, and ciphertext based on the selected algorithm.
- Implement appropriate error handling and throw descriptive error messages for invalid inputs.
Adding input validation will help prevent runtime errors and provide clearer feedback to users when incorrect parameters are provided.
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
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest