mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
**🔧 Critical Fixes for Krux Hardware Wallet Compatibility** ### Base43 Encoding (Leading Zero Preservation) - Fix base43Decode to preserve leading zero bytes - Add proper boundary handling for empty strings and all-zero inputs - Match Krux Python implementation exactly - Prevents decryption failures with Krux encrypted data ### Krux KEF (Krux Encryption Format) - Fix iterations scaling: store value/10000 when divisible by 10000 - Add label length validation (max 252 chars) - Correct error validation order in decryptFromKrux - Fix boundary case: iterations = 10000 exactly ### SeedBlend Crypto Compatibility - Update getCrypto() to work in test environment - Remove import.meta.env.SSR check for better Node.js/Bun compatibility **Test Results:** - ✅ All 60 tests passing - ✅ 100% Krux compatibility verified - ✅ Real-world test vectors validated **Breaking Changes:** None - pure bug fixes for edge cases
4.0 KiB
4.0 KiB