Skip to content

Commit

Permalink
docs: add namespace Go definition to specs (#3021)
Browse files Browse the repository at this point in the history
I was linking to specs and noticed that the Protobuf section was empty.
We don't have a Protobuf definition for namespace but we do have a Go
definition.

Ref:
https://github.com/celestiaorg/celestia-app/blob/34c98b96fee6e5aaf0ce9cb7b0ec03ee47f24774/pkg/namespace/namespace.go#L8-L11
  • Loading branch information
rootulp authored Jan 17, 2024
1 parent d047732 commit c8af5bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions specs/src/specs/namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ Applications MUST refrain from using the [reserved namespaces](#reserved-namespa

See [pkg/namespace](../../../pkg/namespace).

## Protobuf Definition
## Go Definition

<!-- TODO: Add protobuf definition for namespace -->
```go
type Namespace struct {
Version uint8
ID []byte
}
```

## References

Expand Down

0 comments on commit c8af5bf

Please sign in to comment.