getAllHmacKeys method

  1. @override
Future<List<Map<String, dynamic>>> getAllHmacKeys()
override

Aggregate HMAC keys for every conversation the client knows about (including stitched duplicate DMs). Each entry: {topic: String, hmacKey: Uint8List, thirtyDayPeriodsSinceEpoch: int}. libxmtp returns 3 keys per conversation (prior / current / next epoch). Feed these to the notif server's subscribeWithMetadata so it can filter listener traffic without breaking E2E.

Implementation

@override
Future<List<Map<String, dynamic>>> getAllHmacKeys() async {
  final List<dynamic> result = await methodChannel.invokeMethod('getAllHmacKeys');
  return result.map((e) => Map<String, dynamic>.from(e as Map)).toList();
}