From 6e5565f2389b86ff13e7ebfd68e7f9dd3dc52331 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 15:10:44 +0300 Subject: [PATCH] [#26] object: Replace CreationPoint with Epoch In previous version of the format Object message included moment of creation in two epoch times: NeoFS and Unix. Since unix is not processed in the system, this commit narrows the time point of object creation to the system epoch number. The object.CreationPoint message has therefore been deleted as no longer used Signed-off-by: Leonard Lyubich --- object/types.proto | 11 ++--------- proto-docs/object.md | 15 +-------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/object/types.proto b/object/types.proto index 0b249fd..e6bb914 100644 --- a/object/types.proto +++ b/object/types.proto @@ -57,15 +57,8 @@ message SystemHeader { bytes OwnerID = 4; // CID is a SHA256 hash of the container structure (container identifier) bytes CID = 5; - // CreatedAt is a timestamp of object creation - CreationPoint CreatedAt = 6; -} - -message CreationPoint { - // UnixTime is a date of creation in unixtime format - int64 UnixTime = 1; - // Epoch is a date of creation in NeoFS epochs - uint64 Epoch = 2; + // CreationEpoch carries number of NeoFS epoch on which the object was created. + uint64 CreationEpoch = 6; } message IntegrityHeader { diff --git a/proto-docs/object.md b/proto-docs/object.md index 8115802..eb69f23 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -30,7 +30,6 @@ - Messages - [Attribute](#object.Attribute) - - [CreationPoint](#object.CreationPoint) - [ExtendedHeader](#object.ExtendedHeader) - [Header](#object.Header) - [IntegrityHeader](#object.IntegrityHeader) @@ -374,18 +373,6 @@ Attribute groups the parameters of the object attributes. | Value | [string](#string) | | Value carries the string value of the object attribute. | - - -### Message CreationPoint - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| UnixTime | [int64](#int64) | | UnixTime is a date of creation in unixtime format | -| Epoch | [uint64](#uint64) | | Epoch is a date of creation in NeoFS epochs | - - ### Message ExtendedHeader @@ -479,7 +466,7 @@ Header groups the information about the NeoFS object. | ID | [bytes](#bytes) | | ID is an object identifier, is a valid UUIDv4 | | OwnerID | [bytes](#bytes) | | OwnerID is a wallet address | | CID | [bytes](#bytes) | | CID is a SHA256 hash of the container structure (container identifier) | -| CreatedAt | [CreationPoint](#object.CreationPoint) | | CreatedAt is a timestamp of object creation | +| CreationEpoch | [uint64](#uint64) | | CreationEpoch carries number of NeoFS epoch on which the object was created. |