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
While optimizing Shapeshift's runtime performance, particularly for devices with lower computational power, it's evident that the current encryption parameter benchmarking mechanism poses a bottleneck. The benchmark takes 4s to run on an M2 Mac and significantly more time on older mobile devices, causing undesirable delays during first boot. This issue aims to discuss and implement a hard-coded set of sensible defaults for encryption parameters, thereby removing the need for device-dependent benchmarks.
This issue is specific to native wallet only - other wallets are unaffected.
Additional Context
To reproduce the issue, launch the app for the first time (empty indexed db) to notice the benchmark run - it runs when the native wallet is first opened.
The benchmark aims to optimize for a target of 1000ms boot time but often exceeds this, especially on lower-end devices.
The benchmark iteself takes 4s to run on an M2 Mac and significantly more time on older mobile devices.
The current parameter set (e.g., 32MB buffer, 54 iterations) appears to be overkill for browser storage requirements.
Actions
Hardcode sensible defaults for encryption parameters, skipping the benchmark.
Conduct a performance analysis on a variety of devices to determine an optimal default set.
Acceptance criteria
Performance Metrics: Demonstrate that the new hardcoded encryption parameters result in a boot time that is notably faster than the current dynamic benchmarking method, especially on lower-end devices. Aim for a boot time under 1 second for modern devices and under 3 seconds for older devices.
Security Analysis: Conduct a security assessment to confirm that the hardcoded encryption parameters provide adequate protection against brute-force attacks and other vulnerabilities. The parameters should adhere to industry-standard security guidelines.
Backward Compatibility: Ensure that existing users who have wallets encrypted with the old parameters can seamlessly transition to using the new hardcoded parameters without any data loss or additional steps.
Cross-Device Consistency: Validate that the new hardcoded encryption parameters provide consistent boot times and security levels across a variety of devices (e.g., different models of smartphones, tablets, and desktops).
The text was updated successfully, but these errors were encountered:
Description:
While optimizing Shapeshift's runtime performance, particularly for devices with lower computational power, it's evident that the current encryption parameter benchmarking mechanism poses a bottleneck. The benchmark takes 4s to run on an M2 Mac and significantly more time on older mobile devices, causing undesirable delays during first boot. This issue aims to discuss and implement a hard-coded set of sensible defaults for encryption parameters, thereby removing the need for device-dependent benchmarks.
This issue is specific to native wallet only - other wallets are unaffected.
Additional Context
To reproduce the issue, launch the app for the first time (empty indexed db) to notice the benchmark run - it runs when the native wallet is first opened.
Actions
Acceptance criteria
The text was updated successfully, but these errors were encountered: