aboutsummaryrefslogtreecommitdiff
path: root/src/User.cpp
AgeCommit message (Collapse)Author
2020-08-18Remove user/group classes, user public key/group id directly to database insteaddec05eba
2020-08-18Replace files with sqlitedec05eba
Using sqlite because sqlite has transactions, storing/loading from files automatically, unloading data that is not accessed often. Removed cosmetic data (node name, username). They can be added using addData by the application that uses odhtdb instead. Database callback functions can now be called with stored data using database.loadNode function. TODO: Add local user storage (with password) back, it has been temorary disabled
2020-08-18Add decryption (and caching) of data, even when adding encryption key after ↵dec05eba
data has been added
2020-08-18Change local storage to fit dchat betterdec05eba
2020-08-18Store database storage to files, also loadingdec05eba
2020-08-18Expose include dirdec05eba
2020-08-18Fix add data operation not working correctlydec05eba
Reminder: do not get reference to hash map value... duh Add thread-safe logging (log is in order now!). Store data immediately to database when WE add it instead of waiting for response from remote peers. TODO: Test with multiple peers (not only localhost)
2020-08-18Add operation to allow users to be added to groupdec05eba
WARNING! Lazy implementation everywhere, does not handle out-of-order packets