setSymKey method

  1. @override
Future<String> setSymKey(
  1. String symKey, {
  2. String? overrideTopic,
})
override

Implementation

@override
Future<String> setSymKey(
  String symKey, {
  String? overrideTopic,
}) async {
  _checkInitialized();

  final String topic = overrideTopic ?? utils.hashKey(symKey);
  // print('crypto setSymKey, symKey: $symKey, overrideTopic: $topic');
  await keyChain.set(topic, symKey);
  return topic;
}