-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
developmentStandard developmentStandard developmentr&d:polykey:supporting activitySupporting core activitySupporting core activity
Milestone
Description
Description
Enable user-defined error serialization and deserialization through toError and fromError functions in js-rpc. Add optional replacer and reviver parameters to further customize the (de)serialization process, thereby enhancing security by allowing application-specific rules for sensitive data filtering.
Requirements
- User-Driven: User should be able to define toError and fromError functions.
- Optional Parameters: Introduce replacer and reviver for added customization.
- Application-Specific: Allow injectable rules for data filtering.
- PK Conformance: Compatibility with existing Polykey workflows.
Tasks
- Parameterize toError and fromError: Accept user-defined implementations.
- Constructor Implementation: Include toError, fromError, replacer, and reviver in the constructor.
- Unit Testing: Create tests for the new features.
- Documentation: Update js-rpc documentation.
Acceptance Criteria
- User-defined toError and fromError functions can be successfully implemented.
- Optional replacer and reviver parameters function as expected.
- The system supports application-specific data filtering rules.
- Documentation is updated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:supporting activitySupporting core activitySupporting core activity