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> -
decryptVaultin a background isolate (throws VaultException on a wrong password). -
deriveAccountInBackground(
String mnemonic, {String passphrase = ''}) → Future< Account> -
Account.fromMnemonicin a background isolate (returns the private key hex; rebuild the account withAccount.fromPrivateKey— the Account object itself is not sendable). -
encryptVaultInBackground(
String secret, String password) → Future< VaultBlob> -
encryptVaultin 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).