Offline transaction signing

This commit is contained in:
tobtoht
2020-10-19 01:39:23 +02:00
parent 44a2fc30dc
commit 216b2e0c5e
35 changed files with 1334 additions and 52 deletions
+10 -1
View File
@@ -68,7 +68,7 @@ QByteArray Utils::fileOpenQRC(const QString &path) {
bool Utils::fileWrite(const QString &path, const QString &data) {
QFile file(path);
if(file.open(QIODevice::WriteOnly)){
QTextStream out(&file); out << data << endl;
QTextStream out(&file); out << data << Qt::endl;
file.close();
return true;
}
@@ -362,6 +362,15 @@ void Utils::copyToClipboard(const QString &string){
#endif
}
QString Utils::copyFromClipboard() {
QClipboard * clipboard = QApplication::clipboard();
if (!clipboard) {
qWarning() << "Unable to access clipboard";
return "";
}
return clipboard->text();
}
QString Utils::blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid) {
if (blockExplorer == "exploremonero.com") {
if (nettype == NetworkType::MAINNET) {