forked from TrueCloudLab/frostfs-api
[#38] Change ObjectID format from UUID to Hash
NeoFS Object are now Content-addressed. It means the Object's address depends on it's content. ObjectID is now calculated as hash of Header, which contains a hash of payload. If either if Object's payload of Headers change, the ID will also change. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
66c58e45e8
commit
818ec7f0dc
7 changed files with 130 additions and 157 deletions
|
@ -56,8 +56,7 @@ message EACLRecord {
|
|||
enum Header {
|
||||
HEADER_UNKNOWN = 0;
|
||||
REQUEST = 1;
|
||||
OBJECT_SYSTEM = 2;
|
||||
OBJECT_USER = 3;
|
||||
OBJECT = 2;
|
||||
}
|
||||
|
||||
// Header carries type of header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue