This commit is contained in:
2021-04-11 07:56:23 -05:00
parent 7a50af0cf6
commit b8e057c341
3 changed files with 9 additions and 6 deletions

View File

@@ -14,8 +14,7 @@ class Transaction {
var lesser = idLess ? id : otherUserId;
var greater = idLess ? otherUserId : id;
return Transaction(
hash: DBCrypt()
.hashpw("$lesser-$greater", KeyFileManager.keyPair.privateKey),
hash: DBCrypt().hashpw("$lesser-$greater", DBCrypt().gensalt()),
pubKey: KeyFileManager.keyPair.publicKey,
);
}