Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refs: Prohibit IDs consisting of all zero bytes #303

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading