SBV1)Password-based encryption for the wallet’s vault: Argon2id (m = 19456 KiB, t = 2, p = 1) derives a 32-byte key, and ChaCha20-Poly1305 seals the secret. The 48-byte header ("SBV1" ‖ salt(32) ‖ nonce(12)) is the AEAD associated data.
These files are adapted from Lace (lace-extension@2.4.0, packages/lib/core/src/secret-box/).
Changes made by Logical Mechanism LLC:
@noble/hashes and @noble/ciphers directly instead of Lace’s @lace-lib/vendor re-exports.emip3.ts and its fallback in open). This wallet only ever writes SBV1.DERIVED_KEY_LEN from constants.ts into kdf.ts.Each file names its Lace original at the top.