exportSharedKey method

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

Implementation

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