mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2026-03-02 03:40:13 +00:00
updated keygen to conform with backend
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user