getPendingKeyExchangeRatchetKey method

ECKeyPair getPendingKeyExchangeRatchetKey()

Implementation

ECKeyPair getPendingKeyExchangeRatchetKey() {
  final publicKey = Curve.decodePointList(
      _sessionStructure.pendingKeyExchange.localRatchetKey, 0);

  final privateKey = Curve.decodePrivatePoint(Uint8List.fromList(
      _sessionStructure.pendingKeyExchange.localRatchetKeyPrivate));

  return ECKeyPair(publicKey, privateKey);
}