aboutsummaryrefslogtreecommitdiff
path: root/Scheme.md
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-14 00:20:11 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-14 00:27:29 +0200
commit9af086151e6d9d3fe88f9e3e21797812a3e701ba (patch)
treea11889f81b8f929c11dccbd2c1c3b3cd74fbb740 /Scheme.md
parentebff7aeafded4dd9d245dbcfc80d9c8d83fe1242 (diff)
Replace files with sqlite
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
Diffstat (limited to 'Scheme.md')
-rw-r--r--Scheme.md14
1 files changed, 5 insertions, 9 deletions
diff --git a/Scheme.md b/Scheme.md
index 865339e..9a757d2 100644
--- a/Scheme.md
+++ b/Scheme.md
@@ -1,13 +1,9 @@
# Create
Packet
- Header
- packet structure version
- timestamp
- creator public key
- admin group id (uuid, 16 bytes)
- Body (Encrypted)
- creator name
- name
+ packet structure version
+ timestamp
+ creator public key
+ admin group id (uuid, 16 bytes)
# Add data
Packet
creator public key
@@ -27,6 +23,6 @@ Packet
timestamp (not strictly accurate, mostly used for visual representation)
operation type
Body
- name (of the user to add to group, encrypted)
public key (of user to add to group)
group id (the group which the user should be added to)
+ PADDING (Random data, to ensure this packet gets an unique hash)