Skip to content

Commit

Permalink
@peter/doc (#14)
Browse files Browse the repository at this point in the history
* add documentation
  • Loading branch information
0g-peterzhb authored Mar 24, 2024
1 parent 371271d commit f76949b
Show file tree
Hide file tree
Showing 57 changed files with 880 additions and 1,721 deletions.
2 changes: 2 additions & 0 deletions .bookignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
inabox/*

Binary file added .gitbook/assets/zg-da-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/zg-da-batcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
12 changes: 0 additions & 12 deletions .github/pull_request_template.md

This file was deleted.

63 changes: 53 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,74 @@
# Deployment
# 0GDA

## Prerequisites
## Overview

- For local test environment, [aws-cli](https://aws.amazon.com/cn/cli/) is required.
0GDA is a decentralized data availability (DA) service with deep consideration in security, scalability and decentralization. It is also the first DA solution with a built-in data storage layer. Users interact with ZeroGDA to submit and store their data into [0G Storage](https://github.com/0glabs/0g-storage-client) for later retrieval.

To dive deep into the technical details, continue reading [0GDA protocol spec](docs/).

## Integration

Check out [this example](https://github.com/0glabs/0g-da-example-rust) for how to integrate the 0GDA into your own applications.

For detailed public APIs, visit [gRPC API](docs/api/) section.

## Deployment

* For local test environment, [aws-cli](https://aws.amazon.com/cli/) is required.
* [Local Stack setup](./#localstack)
* [Disperser](./#disperser)
* [Retriever](./#retriever)

### LocalStack

## LocalStack
Create LocalStack(local aws simulation) docker image and start a docker instance:

```bash
cd inabox

make deploy-localstack
```

## Disperser
Build binaries:
### Disperser

1. Build binaries:

```
cd disperser
make build
```
Run encoder:

2. Run encoder:

```
make run_encoder
```
Set the cli arguments of run_batcher in Makefile to proper values, then run batcher and server:

3. Set the cli arguments of run\_batcher in Makefile to proper values. Full list of available configuration parameters are showing below.

4. Then run batcher and the main disperser server:

```
make run_batcher
make run_server
```
```

### Retriever

1. Build binaries:

```
cd retriever
make build
```

2. Run the main retriever server:

```
make run
```

## Contributing

To make contributions to the project, please follow the guidelines [here](contributing.md).
21 changes: 21 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Table of contents

* [0GDA](README.md)
* [0G DA Spec](docs/README.md)
* [Introduction](<docs/introduction.md>)
* [Architecture](<docs/architecture/README.md>)
* [Disperser](<docs/architecture/disperser.md>)
* [Batcher](<docs/architecture/batcher.md>)
* [Retriever](<docs/architecture/retriever.md>)
* [Security Guarantee](<docs/security/README.md>)
* [Encoding](<docs/security/encoding.md>)
* [KZG Encoder Backend](<docs/security/kzg.md>)
* [Data Model](<docs/data-model.md>)
* [gRPC API](<docs/api/README.md>)
* [Disperser API](<docs/api/disperser.md>)
* [Retriever API](<docs/api/retriever.md>)
* [Dependent Package](<docs/pkg/README.md>)
* [Encoding](<docs/pkg/encoding.md>)
* [KZG and FFT utils](<docs/pkg/kzg.md>)
* [Glossary](<docs/glossary.md>)
* [Contributing](contributing.md)
4 changes: 0 additions & 4 deletions api/docs/README.md

This file was deleted.

Loading

0 comments on commit f76949b

Please sign in to comment.