From e28e9c38809df8820e4fef727ea1ecdf2501af58 Mon Sep 17 00:00:00 2001 From: Zachary Atkins Date: Sun, 11 Apr 2021 07:36:15 -0500 Subject: [PATCH] fixed verification --- loc_chain_app/lib/pages/home.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loc_chain_app/lib/pages/home.dart b/loc_chain_app/lib/pages/home.dart index 87f5f1d..b5e867f 100644 --- a/loc_chain_app/lib/pages/home.dart +++ b/loc_chain_app/lib/pages/home.dart @@ -207,8 +207,8 @@ class _HomePageState extends State { combinedHash: transaction.hash, encodedGPSLocation: "{'none':true}", partnerPublicKey: transaction.pubKey, - validationSignature: await OpenPGP.sign( - transaction.hash, '', KeyFileManager.keyPair.privateKey, ''), + validationSignature: await OpenPGP.encrypt( + transaction.hash, KeyFileManager.keyPair.privateKey), ); var response = await postEncounter(encounter); print(response);