Skip to content

Commit 37fbc75

Browse files
Merge pull request #54 from 0chain/hm90121-patch-1
README.md changes(WIP)
2 parents 5a5a616 + 256e10b commit 37fbc75

File tree

1 file changed

+40
-26
lines changed

1 file changed

+40
-26
lines changed

README.md

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,47 @@
1-
# Introduction
2-
This module provides s3-compatible API to 0chain allocation using minio-gateway Interface.
3-
User can set their access-key and secret-key before running zs3Server. So basically, zs3server is an http server that provides s3 compatible api so that clients that are already s3 compatible can easily communicates with 0chain allocationcan. Its just a plug and play.
1+
# zs3server - a no-code decentralized storage server
42

5-
# Architecture
3+
zs3server provides a no-code s3-compatible decentralized storage server on Züs allocation using a minio-gateway interface.
4+
5+
- [Züs Overview](#züs-overview)
6+
- [Architecture](#architecture)
7+
- [Building zs3 server](#building-zs3-server)
8+
- [Running zs3 server](#running-zs3-server)
9+
- [Test MiniO client](#test-minio-client)
10+
- [Configure Minio client](#configure-minio-client)
11+
12+
## Züs Overview
13+
[Züs](https://zus.network/) is a high-performance cloud on a fast blockchain offering privacy and configurable uptime. It is an alternative to traditional cloud S3 and has shown better performance on a test network due to its parallel data architecture. The technology uses erasure code to distribute the data between data and parity servers. Züs storage is configurable to provide flexibility for IT managers to design for desired security and uptime, and can design a hybrid or a multi-cloud architecture with a few clicks using [Blimp's](https://blimp.software/) workflow, and can change redundancy and providers on the fly.
14+
15+
For instance, the user can start with 10 data and 5 parity providers and select where they are located globally, and later decide to add a provider on-the-fly to increase resilience, performance, or switch to a lower cost provider.
16+
17+
Users can also add their own servers to the network to operate in a hybrid cloud architecture. Such flexibility allows the user to improve their regulatory, content distribution, and security requirements with a true multi-cloud architecture. Users can also construct a private cloud with all of their own servers rented across the globe to have a better content distribution, highly available network, higher performance, and lower cost.
18+
19+
[The QoS protocol](https://medium.com/0chain/qos-protocol-weekly-debrief-april-12-2023-44524924381f) is time-based where the blockchain challenges a provider on a file that the provider must respond within a certain time based on its size to pass. This forces the provider to have a good server and data center performance to earn rewards and income.
20+
21+
The [privacy protocol](https://zus.network/build) from Züs is unique where a user can easily share their encrypted data with their business partners, friends, and family through a proxy key sharing protocol, where the key is given to the providers, and they re-encrypt the data using the proxy key so that only the recipient can decrypt it with their private key.
22+
23+
Züs has ecosystem apps to encourage traditional storage consumption such as [Blimp](https://blimp.software/), a S3 server and cloud migration platform, and [Vult](https://vult.network/), a personal cloud app to store encrypted data and share privately with friends and family, and [Chalk](https://chalk.software/), a zero upfront cost permanent storage solution for NFT artists.
24+
25+
Other apps are [Bolt](https://bolt.holdings/), a wallet that is very secure with air-gapped 2FA split-key protocol to prevent hacks from compromising your digital assets, and it enables you to stake and earn from the storage providers; [Atlus](https://atlus.cloud/), a blockchain explorer and [Chimney](https://demo.chimney.software/), which allows anyone to join the network and earn using their server or by just renting one, with no prior knowledge required.
26+
27+
## Architecture
628

729
![Main-architecture](./assets/main-struture.png)
830

931
There are three main components that will be installed in the customer server.
1032

11-
1. ZS3Server is the main component which will communicate directly with 0chain allocation
33+
1. ZS3Server is the main component that will communicate directly with Züs storage.
1234

13-
2. [LogSereach](/logsearchapi/README.md) API is the log component which will store the audit log from S3 server and It will be consumed using ZS3 API
35+
2. [LogSearch](/logsearchapi/README.md) API is the log component that will store the audit log from the S3 server and it will be consumed using ZS3 API
1436

1537
3. [MinioClient](/client-api/README.md) is the component that will communicate directly to the zs3server and it is protected using access and secret key.
1638

39+
## Building zs3-server
40+
Prerequisites to run MinIO ZCN gateway:
41+
- [A wallet.json created using zwalletcli](https://github.com/0chain/zwalletcli#creating-and-restoring-wallets)
42+
- [Config.yaml](https://github.com/0chain/zboxcli/blob/staging/network/config.yaml)
43+
- [An allocation.txt created using zboxcli](https://github.com/0chain/zboxcli/tree/staging#create-new-allocation).
1744

18-
# Run zs3-server
19-
As a prerequisite to run MinIO ZCN gateway, you need 0chain credentials; wallet.json, config.yaml and allocation.txt.
20-
21-
## Build Binary
2245
```
2346
git clone [email protected]:0chain/zs3server.git
2447
cd zs3server
@@ -29,32 +52,23 @@ export MINIO_ROOT_PASSWORD=someminiopassword
2952
./minio gateway zcn --configDir /path/to/config/dir
3053
Note: allocation and configDir both are optional. By default configDir takes ~/.zcn as configDir and if allocation is not provided in command then it will look for allocation.txt file in configDir directory.
3154
```
32-
3355
> If you want to debug on local you might want to build with `-gcflags="all=-N -l"` flag to view all the objects during debugging.
3456
35-
## Run using docker
36-
37-
To build and run minio sevrer component in any machine you will need first to install docker and docker-compose
38-
39-
1. Make sure docker and docker-compose in your machine
57+
## Running zs3-server
4058

41-
2. Make sure you have the allocation ready in the default folder ``~/.zcn``
42-
43-
3. Run docker-compose command like the following
59+
1. To build and run the minio server component you need to install [docker](https://www.docker.com/products/docker-desktop/).
4460

61+
2. Run the docker-compose command inside the zs3server directory./
4562
```
4663
docker-compose -f environment/docker-compose.yaml up -d
4764
```
65+
3. Make sure allocation.txt file exist in the default folder ``~/.zcn``
4866

49-
4. Now you can interact with the clint API follow this [doc](/client-api/README.md)
50-
51-
5. You can also interact with the logsearch API by following this [doc](/logsearchapi/README.md)
52-
53-
## Test using MinIO Client `mc`
67+
## Test MinIO Client
5468

55-
`mc` provides a modern alternative to UNIX commands such as ls, cat, cp, mirror, diff etc. It supports filesystems and Amazon S3 compatible cloud storage services.
69+
MinIO client `mc` provides a modern alternative to UNIX commands such as ls, cat, cp, mirror, diff, etc. It supports filesystems and Amazon S3-compatible cloud storage services. To interact with the client API follow this [doc](/client-api/README.md). You can also interact with the log search API by following this [doc.](/logsearchapi/README.md)
5670

57-
### Configure `mc`
71+
## Configure MinIO Client
5872
```
5973
mc config host add zcn http://localhost:9000 miniouser miniopassword
6074
mc ls zcn //List your buckets

0 commit comments

Comments
 (0)