convertGroupTMRTemporaryKeyAsync method
Convert a group TMR temporary key to become a group member.
groupId
The Id of the group for which to convert a TMR key.
temporaryKeyId
The Id of the temporary key to convert.
tmrJWT
TMR JWT to use.
rawOverEncryptionKey
The raw encryption key to use. This MUST be a cryptographically random buffer of 64 bytes.
deleteOnConvert
Should the temporary key be deleted after conversion.
Implementation
Future<void> convertGroupTMRTemporaryKeyAsync(String groupId,
String temporaryKeyId, String tmrJWT, Uint8List rawOverEncryptionKey,
{bool deleteOnConvert = false}) {
return compute(
(Map<String, dynamic> args) => convertGroupTMRTemporaryKey(
args["groupId"],
args["temporaryKeyId"],
args["tmrJWT"],
args["rawOverEncryptionKey"],
deleteOnConvert: args["deleteOnConvert"]),
{
"groupId": groupId,
"temporaryKeyId": temporaryKeyId,
"tmrJWT": tmrJWT,
"rawOverEncryptionKey": rawOverEncryptionKey,
"deleteOnConvert": deleteOnConvert
});
}