Skip to content

Commit

Permalink
Merge pull request #303 from nspcc-dev/zero-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Jul 22, 2024
2 parents 62e4ae0 + 20a2515 commit ec8f1f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions proto-docs/refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ content-addressed.

`ContainerID` is a 32 byte long
[SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
stable-marshalled container message.
stable-marshalled container message. ID consisting of all zero bytes is
reserved for undefined value and must not be specified as a field.

String presentation is a
[base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
Expand All @@ -97,7 +98,8 @@ It means `ObjectID` will change if the `header` or the `payload` changes.
`ObjectID` is a 32 byte long
[SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
the object's `header` field, which, in it's turn, contains the hash of the object's
payload.
payload. ID consisting of all zero bytes is reserved for undefined value and
must not be specified as a field.

String presentation is a
[base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
Expand Down
6 changes: 4 additions & 2 deletions refs/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ message Address {
// `ObjectID` is a 32 byte long
// [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
// the object's `header` field, which, in it's turn, contains the hash of the object's
// payload.
// payload. ID consisting of all zero bytes is reserved for undefined value and
// must not be specified as a field.
//
// String presentation is a
// [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
Expand All @@ -42,7 +43,8 @@ message ObjectID {
//
// `ContainerID` is a 32 byte long
// [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
// stable-marshalled container message.
// stable-marshalled container message. ID consisting of all zero bytes is
// reserved for undefined value and must not be specified as a field.
//
// String presentation is a
// [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
Expand Down

0 comments on commit ec8f1f5

Please sign in to comment.