vault library
package:janzeer_sdk/vault.dart — the mnemonic (or any secret) at rest, sealed with a password.
Also carries the static Vault.encrypt / Vault.decrypt map API and the compute() entry points that the
Janzeer Flutter wallet used before the SDK existed.
Classes
Constants
- vaultIterations → const int
- PBKDF2 rounds
- vaultVersion → const int
- blob format version
Functions
-
decryptVault(
VaultBlob blob, String password) → String - Open a blob. Throws VaultException when the password is wrong or the blob was tampered with.
-
encryptVault(
String secret, String password) → VaultBlob -
Seal
secretunderpassword. Randomized (fresh salt + IV each call). -
vaultDecryptIsolate(
List args) → String -
compute()entry point:[vaultMap, password]→ the decrypted secret. Throws on a wrong password. -
vaultEncryptIsolate(
List< String> args) → Map<String, dynamic> -
compute()entry point:[mnemonic, password]→ the encrypted vault map.
Exceptions / Errors
- VaultException
- Wrong password or corrupted blob.