renewGroupKeyAsync method
Renews the group's private key. Can only be done by a group administrator. Should be called after removing members from the group.
groupId
- The group for which to renew the private key.
privateKeys
- Optional. Pre-generated private keys, returned by a call to SealdSdk.generatePrivateKeysAsync.
Implementation
Future<void> renewGroupKeyAsync(String groupId,
{SealdGeneratedPrivateKeys? privateKeys}) {
return compute((String groupId) async {
privateKeys ??= await generatePrivateKeysAsync();
return renewGroupKey(groupId, privateKeys: privateKeys);
}, groupId);
}