ratchetSharedKey method

  1. @override
Future<Uint8List> ratchetSharedKey(
  1. {int? keyIndex}
)
override

Implementation

@override
Future<Uint8List> ratchetSharedKey({int? keyIndex}) async {
  if (_sharedKey == null) {
    throw Exception('shared key not set');
  }
  _sharedKey = await _keyProvider.ratchetSharedKey(index: keyIndex ?? 0);
  return _sharedKey!;
}