isolate library

package:janzeer_sdk/isolate.dart — run the CPU-heavy operations (PBKDF2 ×2048 / ×250 000, secp256k1) off the main isolate with Isolate.run. Dart VM / Flutter mobile & desktop only (not web — there the plain synchronous calls are the only option).

Functions

decryptVaultInBackground(VaultBlob blob, String password) → Future<String>
decryptVault in a background isolate (throws VaultException on a wrong password).
deriveAccountInBackground(String mnemonic, {String passphrase = ''}) → Future<Account>
Account.fromMnemonic in a background isolate (returns the private key hex; rebuild the account with Account.fromPrivateKey — the Account object itself is not sendable).
encryptVaultInBackground(String secret, String password) → Future<VaultBlob>
encryptVault in a background isolate.
signInBackground(UnsignedTx tx, String privateKeyHex) → Future<String>
Sign a transaction in a background isolate. Returns the signature (Base64 DER); attach it with tx.withSignature(signature, account.publicKeyHex).