encrypt method
Encrypt the wallet using password
returning a Future which resolves to a JSON wallet.
Implementation
Future<String> encrypt(String password,
[void Function(double progress)? progressCallback]) =>
promiseToFuture<String>(
impl.encrypt(
password,
null,
progressCallback != null ? allowInterop(progressCallback) : null,
),
);