From dd5919348da9731f24504e7bc485516c2ba5f11c Mon Sep 17 00:00:00 2001
From: Denis Kirillov <d.kirillov@yadro.com>
Date: Thu, 9 Nov 2023 17:39:25 +0300
Subject: [PATCH] [#48] frostfsid: Update storage scheme doc

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
---
 frostfsid/doc.go | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/frostfsid/doc.go b/frostfsid/doc.go
index 2b15bfa..9e02ce4 100644
--- a/frostfsid/doc.go
+++ b/frostfsid/doc.go
@@ -8,16 +8,18 @@ FrostFSID contract does not produce notifications to process.
 
 # Contract storage scheme
 
- |   Key                                                                           | Value                          |           Description                              |
- |---------------------------------------------------------------------------------|--------------------------------|----------------------------------------------------|
- | `o` + [ owner address ]                                                         | []byte{1}                      | contract owners that can invoke write methods      |
- | `s` + [ subject address ]                                                       | Serialized Subject structure   | subject into                                       |
- | `a` + [ pk address ] + [ subject address ]                                      | []byte{1}                      | link extra public keys for subject                 |
- | `n` + [ RIPEMD160 of namespace ]                                                | Serialized Namespace structure | namespace info                                     |
- | `N` + [ RIPEMD160 of namespace ] + [ subject address ]                          | []byte{1}                      | subject that belongs to the namespace              |
- | `l` + [ RIPEMD160 of namespace ] + [ RIPEMD160 of subject name ]                | Subject public key             | subject name to public key index                   |
- | `g` + [ RIPEMD160 of namespace ] + [ RIPEMD160 of group ]                       | Serialized Group structure     | group into                                         |
- | `G` + [ RIPEMD160 of namespace ] + [ RIPEMD160 of group ] + [ subject address ] | []byte{1}                      | subject that belongs to the group                  |
+ |   Key                                                                        | Value                          |           Description                         |
+ |------------------------------------------------------------------------------|--------------------------------|-----------------------------------------------|
+ | `o` + [ owner address ]                                                      | []byte{1}                      | contract owners that can invoke write methods |
+ | `s` + [ subject address ]                                                    | Serialized Subject structure   | subject into                                  |
+ | `a` + [ pk address ] + [ subject address ]                                   | []byte{1}                      | link extra public keys for subject            |
+ | `n` + [ RIPEMD160 of namespace ]                                             | Serialized Namespace structure | namespace info                                |
+ | `N` + [ RIPEMD160 of namespace ] + [ subject address ]                       | []byte{1}                      | subject that belongs to the namespace         |
+ | `l` + [ RIPEMD160 of namespace ] + [ RIPEMD160 of subject name ]             | Subject public key             | subject name to public key index              |
+ | `g` + [ RIPEMD160 of namespace ] + [ 8 byte group id ]                       | Serialized Group structure     | group into                                    |
+ | `G` + [ RIPEMD160 of namespace ] + [ 8 byte group id ] + [ subject address ] | []byte{1}                      | subject that belongs to the group             |
+ | `c`                                                                          | Int                            | group id counter                              |
+ | `m` + [ RIPEMD160 of namespace ] + [ RIPEMD160 of subject name ]             | Serialized group id int        | group name to group id index                  |
 
 
 */