aboutsummaryrefslogtreecommitdiff
path: root/Scheme.md
diff options
context:
space:
mode:
authorAleksi Lindeman <0xdec05eba@gmail.com>2018-03-11 00:12:37 +0100
committerAleksi Lindeman <0xdec05eba@gmail.com>2018-03-11 00:13:38 +0100
commit1328d943c5016dd1662a4e46d4a408bca010cffc (patch)
tree8483ee99e3831fca474a2b7b3743e8dbd0e6ee52 /Scheme.md
parent230e61091b401b8b2bb9496d557a15660fb5072b (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)