File indexing completed on 2024-05-19 05:02:36

0001 /*
0002   SPDX-FileCopyrightText: 2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "e2ekey.h"
0008 
0009 E2eKey::E2eKey() = default;
0010 
0011 E2eKey::~E2eKey() = default;
0012 
0013 void E2eKey::parseKeyInfo(const QJsonObject &replyObject)
0014 {
0015     const QJsonObject publicKey = replyObject[QLatin1String("public_key")].toObject();
0016 
0017     const QJsonObject privateKey = replyObject[QLatin1String("private_key")].toObject();
0018     // TODO
0019 }
0020 
0021 QString E2eKey::binaryPrivateKey() const
0022 {
0023     return mBinaryPrivateKey;
0024 }
0025 
0026 void E2eKey::setBinaryPrivateKey(const QString &newBinaryPrivateKey)
0027 {
0028     mBinaryPrivateKey = newBinaryPrivateKey;
0029 }
0030 
0031 QDebug operator<<(QDebug d, const E2eKey &t)
0032 {
0033     // TODO
0034     return d;
0035 }