generateSharedKey method

  1. @override
Future<String> generateSharedKey({
  1. required String selfPublicKey,
  2. required String peerPublicKey,
  3. String? overrideTopic,
})
override

Implementation

@override
Future<String> generateSharedKey({
  required String selfPublicKey,
  required String peerPublicKey,
  String? overrideTopic,
}) async {
  _isInitialized();
  final selfPrivateKey = _getPrivateKey(selfPublicKey);
  final symKey = await utils.deriveSymKey(selfPrivateKey, peerPublicKey);
  return setSymKey(symKey: symKey, overrideTopic: overrideTopic);
}