96 Commits

Author SHA1 Message Date
Dario via Pythagoras
b8b289f793
changes in cmake, working in progess 2021-03-17 20:04:32 +01:00
Dario
995c693252
Update code for sending transaction over hedera 2021-03-17 19:57:52 +01:00
Dario
5862a61d59
change encryption state of crypto_keys 2021-03-17 19:51:52 +01:00
Dario
266ef2c92a
updates for hedera transactions and saving crypto keys also clear un-encrypted 2021-03-17 19:51:51 +01:00
Dario
2881d33fed
update grpc to new version, update some things they don't work for create the first query to hedera 2021-03-17 19:42:13 +01:00
Dario
2e842fab0d
compose hedera query to get balance, update CMakeLists.txt for adding missing libs for grpc 2021-03-17 19:42:13 +01:00
Dario
a06cfebd60
add function to crypto key controller to get directly a KeyPairHedera 2021-03-17 19:41:05 +01:00
Dario
3d4f0d7b64
show and add node server and hedera accounts, model, controller and page 2021-03-17 19:41:05 +01:00
Dario
d8766f8d2d
add controller classes for new db tables crypto_keys and hedera_ids, update model tables for them 2021-03-17 19:41:05 +01:00
Dario
5575208cac
update comments, answer question 2021-03-17 19:38:25 +01:00
Dario
ba23cf7e37
add KeyPairHedera mostly copied from KeyPairEd25519 but not testet yet. Maybe I must use the iroha ed25519 implementation because in the past sodium don't work together with hedera 2021-03-17 19:38:25 +01:00
Dario
99846b0c61
rename AuthenticatedEncryption to SecretKeyCryptography 2021-03-17 19:31:45 +01:00
einhornimmond - MarkX
53d1309517 check by using fopen if f is valid, because started in /usr/local/bin without admin don't allow fopen in same dir as binary and leads to Segmentation fault error and crash 2020-09-07 08:49:36 +02:00
Dario
015caeed5b fix for linux 2020-07-21 12:18:04 +02:00
Dario
a71a69a619 change sorting mnemonic words for print out into case-insensitive 2020-07-21 11:16:21 +02:00
Dario
5e83681bab update german 2 word list and print to file sorted and with special chars 2020-07-20 12:40:03 +02:00
Dario
92de466261 add profiling messages for password hash, if it last to long 2020-07-14 20:41:59 +02:00
Dario
ddaad461d1 react on missing public key by login, if private key exist 2020-07-14 19:14:21 +02:00
Dario
a897ac6c8b fix problems with new user in new register process 2020-07-02 19:02:10 +02:00
Dario
75c5b4c063 doc 2020-06-25 12:06:00 +02:00
Dario
7a9e32912b fix header to work with Poco::AutoPtr 2020-06-25 12:05:44 +02:00
Dario
371d02a800 Use controller::User instead of old User Model in SigningTransaction and add some needed functions for that in other objects 2020-06-25 09:59:19 +02:00
Dario
39e85a959e fix compile errors with AuthenticatedEncryption as Poco::AutoPtr 2020-06-24 14:15:48 +02:00
Dario
b8e93e8142 change AuthenticatedEncryption to use auto ptr, if password will be calculated (changed password) and use to decrpyt it could be lead to an error 2020-06-24 10:34:00 +02:00
Dario
337bf554f5 use only one implementation of decryption, call from all input parameter variants via inline functions 2020-06-24 10:20:10 +02:00
Dario
dcfed9bb12 add compare function with private key as parameter for comparing private keys in controller::user::login to skip calculating public key from private key 2020-06-24 10:18:30 +02:00
Dario
c009a12f45 add createUserDirect and missing functions for that in related classes 2020-06-09 20:34:27 +02:00
Dario
7d826fcacd use new user in login 2020-06-09 12:14:51 +02:00
Dario
c44184f823 update code to work together for setting new password and update encrypted privkey and password hash in db 2020-06-08 18:30:29 +02:00
Dario
e7624382ae use KeyPairEd25519 and AuthenticatedEncryption in controller/User 2020-06-08 13:42:37 +02:00
Dario
8170bb21f0 Add test for TestAuthenticatedEncryption and update code to work with test 2020-06-08 12:54:07 +02:00
Dario
ea18b3ca0a add Crypto/AuthenticatedEncryption to move code from model/User into own class, add app secret to server config 2020-06-07 21:36:17 +02:00
Dario
2a907d50e5 remove profiling code, update key generation algorithmus from KeyPairEd25519 to get same results like KeyPair 2020-06-07 19:32:43 +02:00
Dario
d8c9c91d0c profile complete sha512 generation 2020-06-07 19:13:46 +02:00
Dario
28c2830d75 adding some profiling code sha 512 2020-06-07 18:32:47 +02:00
Dario
82d599f950 Add test for new key pair ed25519 class, because optimized algo create other results than old implementation 2020-06-07 17:24:53 +02:00
Dario
0325a90dab add possibility to use ed25519 with only a pubkey 2020-06-05 16:49:14 +02:00
Dario
ae74352fc6 add back const with help of mutable shared mutex 2020-06-05 13:44:41 +02:00
Dario
c8c6667331 add to interface 2020-06-05 13:25:21 +02:00
Dario
92f1f79af9 Add Key Pair in new format, now a own class for every key type 2020-06-05 13:22:35 +02:00
Dario
004d019819 Update mutex, now using std::shared_mutex allowing reload of word list while server is running 2020-06-05 13:20:00 +02:00
Dario
7030333e91 move bin hex converter to lib folder 2020-06-04 16:43:11 +02:00
Dario
dcfd35b49a Add BinHexConverter, BinTextConverter from Gradido Node with changed interfaces and without base58 2020-06-04 16:41:16 +02:00
Dario
7518832bf4 Add GoogleTest via conan and first tests 2020-06-02 12:54:55 +02:00
Dario
1aeb506cd3 make it more modular 2020-06-01 19:13:38 +02:00
Dario
80cd472597 fix missing word in german 1 mnemonic 2020-05-30 12:44:01 +02:00
Dario
c375e131ed fix new word list 2020-05-30 10:02:58 +02:00
Dario
8502de4b1a Add second german mnemonic set with fixed casing 2020-05-30 09:32:27 +02:00
Dario
9f9bc0c1ef adding admin user password reset 2020-04-22 15:05:08 +02:00
Dario
90469fb94b adding debug mnemonic page 2020-04-06 11:45:00 +02:00