You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Node.js API to use Uint8Array for data handling (#45)
* Refactor Node.js API to use Uint8Array for data handling
- Updated method signatures in the `Keys` and `Transport` classes to replace `Buffer` with `Uint8Array`, enhancing consistency in data types across the API.
- Modified encryption and decryption methods to utilize `Uint8Array`, improving performance and compatibility with modern JavaScript practices.
- Adjusted TypeScript definitions to reflect the changes in method signatures, ensuring alignment with the updated Rust implementation.
- Enhanced overall code clarity and maintainability by streamlining data handling processes in the API.
* Refactor tests to utilize Uint8Array for data validation
- Updated comprehensive API, lifecycle, cross-platform, and basic tests to replace Buffer checks with Uint8Array validations, enhancing consistency in data type handling.
- Introduced a new utility function, `uint8ArrayEquals`, for comparing Uint8Array instances, improving code clarity and maintainability.
- Adjusted assertions across multiple test files to ensure proper validation of cryptographic keys and encrypted data, aligning with recent API changes.
- Enhanced overall test coverage and robustness by ensuring all relevant tests reflect the updated data handling practices.
0 commit comments