generateSharedKey method

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

Implementation

@override
Future<String> generateSharedKey(
  String selfPublicKey,
  String peerPublicKey, {
  String? overrideTopic,
}) async {
  _checkInitialized();

  String privKey = _getPrivateKey(selfPublicKey)!;
  String symKey = await utils.deriveSymKey(privKey, peerPublicKey);
  return await setSymKey(symKey, overrideTopic: overrideTopic);
}