aboutsummaryrefslogtreecommitdiff
path: root/Scheme.md
blob: 50aaa3e897fb475fca4b4f3383e61c009498ee41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Create
Packet
    packet structure version
    timestamp
    creator public key
    admin group id (uuid, 16 bytes)
# Add data
Packet
    creator public key
    Content (Signed with creator private key, verify with creator public key)
        Header
            packet structure version
            timestamp (not strictly accurate, mostly used for visual representation)
            operation type
            user action counter
        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 (not strictly accurate, mostly used for visual representation)
            operation type
            user action counter
        Body
            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)