updated keygen to conform with backend

This commit is contained in:
Zachary Atkins
2021-04-11 00:58:10 -05:00
parent 8c2dc2a1b7
commit be205fddc8
2 changed files with 14 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import 'package:fast_rsa/model/bridge.pb.dart';
import 'package:openpgp/model/bridge.pb.dart';
import 'package:path_provider/path_provider.dart';
import 'dart:io';
@@ -31,10 +31,8 @@ class KeyFileManager {
String pubKey = await _pubKeyFile.then(
(file) => file.readAsString(),
);
keyPair = KeyPair(
privateKey: privKey,
publicKey: pubKey,
);
keyPair.publicKey = pubKey;
keyPair.privateKey = privKey;
return keyPair;
} catch (e) {
print(e);