aboutsummaryrefslogtreecommitdiff
path: root/Scheme.md
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-03-11 00:12:37 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit6099ec04bd0d98b9e75f5b55b1215c94ccf20202 (patch)
tree9a551e8e723cde057610d6071587bc76b4a6af19 /Scheme.md
parent0e62cb8e5ed06d906ad84321cdda22acfcc952c9 (diff)
Add operation to allow users to be added to group
WARNING! Lazy implementation everywhere, does not handle out-of-order packets
Diffstat (limited to 'Scheme.md')
-rw-r--r--Scheme.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/Scheme.md b/Scheme.md
index 61fdce5..f573f73 100644
--- a/Scheme.md
+++ b/Scheme.md
@@ -4,15 +4,29 @@ Packet
packet structure version
timestamp
creator public key
+ admin group id (uuid, 16 bytes)
Body (Encrypted)
creator name
name
-# Add
+# Add data
Packet
creator public key
Content (Signed with creator private key, verify with creator public key)
Header
packet structure version
timestamp
+ operation type
Body (Encrypted with node encryption key)
data
+# Add user to group
+Packet
+ creator public key
+ Content (Signed with creator private key, verify with creator public key)
+ Header
+ packet structure version
+ timestamp
+ operation type
+ Body
+ name (of the user to add to group)
+ public key (of user to add to group)
+ group id (the group which the user should be added to)