prepareRenewAsync method
Prepare a private key renewal, so it can be stored on SSKS without risk of loss during the actual renew
privateKeys
- Optional. Pre-generated private keys, returned by a call to SealdSdk.generatePrivateKeysAsync.
Returns a Uint8List containing a prepared renewal.
Implementation
Future<Uint8List> prepareRenewAsync(
{SealdGeneratedPrivateKeys? privateKeys}) {
return compute((_) async {
privateKeys ??= await generatePrivateKeysAsync();
return prepareRenew(privateKeys: privateKeys);
}, null);
}