This repository was archived by the owner on May 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
doc: add readme #32
Merged
Merged
doc: add readme #32
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # go-da | ||
|
|
||
| go-da defines a generic Data Availability interface for modular blockchains. | ||
|
|
||
| <!-- markdownlint-disable MD013 --> | ||
| [](https://github.com/rollkit/go-da/actions/workflows/ci_release.yml) | ||
| [](https://github.com/rollkit/go-da/actions/workflows/lint.yml) | ||
| [](https://goreportcard.com/report/github.com/rollkit/go-da) | ||
| [](https://codecov.io/gh/rollkit/go-da) | ||
| [](https://godoc.org/github.com/rollkit/go-da) | ||
| <!-- markdownlint-enable MD013 --> | ||
|
|
||
| ## DA Interface | ||
|
|
||
| | Method | Params | Return | | ||
| | ----------- |-------------------------------| -------------| | ||
| | `MaxBlobSize` | | `uint64` | | ||
| | `Get` | `ids []ID` | `[]Blobs` | | ||
| | `GetIDs` | `height uint64` | `[]ID` | | ||
| | `Commit` | `blobs []Blob` | `[]Commitment` | | ||
| | `Validate` | `ids []Blob, proofs []Proof` | `[]bool` | | ||
|
|
||
| ## Implementations | ||
|
|
||
| The following implementations are available: | ||
|
|
||
| * [celestia-da](https://github.com/rollkit/celestia-da) implements Celestia as DA. | ||
| * [avail-da](https://github.com/rollkit/avail-da) implements Polygon Avail as DA. | ||
|
|
||
| In addition the following helper implementations are available: | ||
|
|
||
| * [DummyDA](https://github.com/rollkit/go-da/blob/main/test/dummy.go) implements | ||
| a Mock DA useful for testing. | ||
| * [Proxy](https://github.com/rollkit/go-da/tree/main/proxy) implements a proxy | ||
| server that forwards requests to a gRPC server. The proxy client | ||
| can be used directly to interact with the DA service. | ||
|
|
||
| ## Helpful commands | ||
|
|
||
| ```sh | ||
| # Generate protobuf files. Requires docker. | ||
| make proto-gen | ||
|
|
||
| # Lint protobuf files. Requires docker. | ||
| make proto-lint | ||
|
|
||
| # Run tests. | ||
| make test | ||
|
|
||
| # Run linters (requires golangci-lint, markdownlint, hadolint, and yamllint) | ||
| make lint | ||
| ``` | ||
|
|
||
| ## Contributing | ||
|
|
||
| We welcome your contributions! Everyone is welcome to contribute, whether it's | ||
| in the form of code, documentation, bug reports, feature | ||
| requests, or anything else. | ||
|
|
||
| If you're looking for issues to work on, try looking at the | ||
| [good first issue list](https://github.com/rollkit/go-da/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). | ||
| Issues with this tag are suitable for a new external contributor and is a great | ||
| way to find something you can help with! | ||
|
|
||
| Please join our | ||
| [Community Discord](https://discord.com/invite/YsnTPcSfWQ) | ||
| to ask questions, discuss your ideas, and connect with other contributors. | ||
|
|
||
| ## Code of Conduct | ||
|
|
||
| See our Code of Conduct [here](https://docs.celestia.org/community/coc). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.