You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/architecture/pallets/storage-provider-extra.md
-2
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,12 @@ Sealing a sector using Proof-of-Replication (PoRep) is a computation-intensive p
47
47
-**Run a SNARK on the Proof**: Compress the proof using a Succinct Non-interactive Argument of Knowledge (SNARK).
48
48
-**Submit the Compressed Proof:** Submit the result of the compression to the blockchain as certification of the storage commitment.
49
49
50
-
51
50
## Usage
52
51
53
52
### Modifying storage provider information
54
53
55
54
The `Storage Provider Pallet` allows storage providers to modify their information such as changing the peer id, through `change_peer_id` and changing owners, through `change_owner_address`.
Copy file name to clipboardExpand all lines: docs/src/architecture/polka-storage-provider-server.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ To achieve that, the pipeline is composed of 3 main stages.
96
96
97
97
### Add Piece
98
98
99
-
The Add Piece stage gathers pieces into unsealed sectors, preparing them for the next steps.
99
+
The Add Piece stage gathers pieces into unsealed sectors, preparing them for the next steps. The pipeline uses a configured fill threshold (default 95%) to determine when a sector is ready for sealing, or will seal after a configured delay even if not completely filled. The time-based sealing is important because once a storage deal is published, the storage provider has made a formal commitment to store that data. If the storage provider fails to complete the sealing process and prove storage after this commitment, they risk being slashed (penalized).
100
100
101
101
While the system can theoretically support multiple sector sizes (2KiB, 8MiB, 512MiB and 1GiB), only the 1GiB sector size is considered safe for production use. Other sector sizes should be considered experimental and are not recommended for production deployments.
Copy file name to clipboardExpand all lines: docs/src/getting-started/building/source.md
+19-19
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
This guide will outline how to setup your environment to build the Polka Storage parachain,
4
4
we cover how to build the binaries directly on your system or using [Nix](https://nixos.org/download/) to ease the process.
5
5
6
-
*[Get the code](#get-the-code)
7
-
*[System dependencies](#system-dependencies)
8
-
*[Using Nix](#using-nix)
9
-
*[Pre-requisites](#pre-requisites)
10
-
*[Building](#building)
6
+
-[Get the code](#get-the-code)
7
+
-[System dependencies](#system-dependencies)
8
+
-[Using Nix](#using-nix)
9
+
-[Pre-requisites](#pre-requisites)
10
+
-[Building](#building)
11
11
12
12
## Get the code
13
13
@@ -22,9 +22,9 @@ cd polka-storage
22
22
23
23
To build the binaries directly on your system you will need the following tools:
24
24
25
-
* Rust 1.81.0 — you can install it using [`rustup`](https://rustup.rs/) and its [guide](https://rust-lang.github.io/rustup/installation/other.html) for help.
26
-
* Other dependencies — keep reading, we'll get to it after the end of this list!
27
-
*`just` (optional) — (after installing Rust) you can use `cargo install just` or check the [official list of packages](https://just.systems/man/en/packages.html).
25
+
- Rust 1.81.0 — you can install it using [`rustup`](https://rustup.rs/) and its [guide](https://rust-lang.github.io/rustup/installation/other.html) for help.
26
+
- Other dependencies — keep reading, we'll get to it after the end of this list!
27
+
-`just` (optional) — (after installing Rust) you can use `cargo install just` or check the [official list of packages](https://just.systems/man/en/packages.html).
28
28
29
29
The dependencies mentioned are for Linux distros using the `apt` family of package managers.
30
30
Different systems may use different package managers, as such, they may require you to find the equivalent package.
Not all of the binaries can be built from the polka-storage repository!
67
-
We depend on the <ahref="https://github.com/paritytech/zombienet/releases/tag/v1.3.116">zombienet</a> and <ahref="https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2409-2">polkadot, polkadot-prepare-worker, polkadot-execute-worker</a> binaries which need to be downloaded regardless (if not using <ahref="#using-nix">Nix</a>).
67
+
We depend on the <ahref="https://github.com/paritytech/zombienet/releases/tag/v1.3.116">zombienet</a> and <ahref="https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2412">polkadot, polkadot-prepare-worker, polkadot-execute-worker</a> binaries which need to be downloaded regardless (if not using <ahref="#using-nix">Nix</a>).
Alice is a [Storage User](../glossary.md#storage-user) and wants to store an image of her lovely Polkadot logo [`polkadot.svg`](../images/polkadot.svg) in the Polka Storage [parachain](../glossary.md#parachain).
Afterwards, it's time to propose a deal, currently — i.e. while the network isn't live —
36
36
any deals will be accepted by Charlie (the Storage Provider).
37
37
38
-
39
38
Alice fills out the deal form according to a JSON template (`polka-logo-deal.json`):
40
39
41
40
```json
@@ -53,19 +52,18 @@ Alice fills out the deal form according to a JSON template (`polka-logo-deal.jso
53
52
}
54
53
```
55
54
56
-
*`piece_cid` — is the `cid` field from the previous step, where she calculated the piece commitment. It uniquely identifies the piece.
57
-
*`piece_size` — is the `size` field from the previous step, where she calculated the piece commitment. It is the size of the processed piece, not the original file!
58
-
*`client` — is the client's (i.e. the reader's) public key, encoded in bs58 format.
55
+
-`piece_cid` — is the `cid` field from the previous step, where she calculated the piece commitment. It uniquely identifies the piece.
56
+
-`piece_size` — is the `size` field from the previous step, where she calculated the piece commitment. It is the size of the processed piece, not the original file!
57
+
-`client` — is the client's (i.e. the reader's) public key, encoded in bs58 format.
59
58
For more information on how to generate your own keypair, read the [Polka Storage Provider CLI/`client`/`wallet`](../storage-provider-cli/client/wallet.md).
60
-
*`provider` — is the storage provider's public key, encoded in bs58 format.
59
+
-`provider` — is the storage provider's public key, encoded in bs58 format.
61
60
If you don't know your storage provider's public key, you can query it using `polka-storage-provider-client`'s `info` command.
62
-
*`label` — is an arbitrary string to be associated with the deal.
63
-
*`start_block` — is the deal's start block, it MUST be positive and lower than `end_block`.
64
-
*`end_block` — is the deal's end block, it must be positive and larger than `start_block`.
65
-
*`storage_price_per_block` — the storage price over the duration of a single block — e.g. if your deal is 20 blocks long, it will cost `20 * storage_price_per_block` in total.
66
-
*`provider_collateral` — the price to pay *by the storage provider* if they fail to uphold the deal.
67
-
*`state` — the deal state, only `Published` is accepted.
68
-
61
+
-`label` — is an arbitrary string to be associated with the deal.
62
+
-`start_block` — is the deal's start block, it MUST be positive and lower than `end_block`.
63
+
-`end_block` — is the deal's end block, it must be positive and larger than `start_block`.
64
+
-`storage_price_per_block` — the storage price over the duration of a single block — e.g. if your deal is 20 blocks long, it will cost `20 * storage_price_per_block` in total.
65
+
-`provider_collateral` — the price to pay _by the storage provider_ if they fail to uphold the deal.
66
+
-`state` — the deal state, only `Published` is accepted.
* As other parts of this project, file retrieval is actively being worked on! 🚧
163
-
* Files stored in storage providers are public, as such, we suggest you encrypt your files.
161
+
- As other parts of this project, file retrieval is actively being worked on! 🚧
162
+
- Files stored in storage providers are public, as such, we suggest you encrypt your files.
164
163
While file encryption is a broad enough topic, if you not sure about which tools to use,
165
164
we suggest you keep it simple by compressing your file in a format such as [7zip](https://www.7-zip.org/) and using its encryption features.
166
165
If 7zip doesn't cut it, you may want to take a look into [age](https://github.com/FiloSottile/age) or [VeraCrypt](https://www.veracrypt.fr/code/VeraCrypt/).
Copy file name to clipboardExpand all lines: docs/src/getting-started/index.md
-2
Original file line number
Diff line number
Diff line change
@@ -20,5 +20,3 @@ Before proceeding with the setup, please ensure the host system meets the follow
20
20
-[_Local Testnet - Polka Storage Parachain_](local-testnet/index.md) — Covers how to setup a local testnet for the Polka Storage parachain, using Zombienet.
21
21
-[_Launching a Storage Provider_](storage-provider.md) - Covers how to setup a Storage Provider.
22
22
-[_Storing a file_](demo-file-store.md) — Covers how to store a file by the Storage Client.
Copy file name to clipboardExpand all lines: docs/src/getting-started/local-testnet/getting-funds.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Please make sure to follow the instructions on how to generate a new account if
10
10
You can read more about creating a Polkadot account using the extension in the following [link](https://support.polkadot.network/support/solutions/articles/65000098878-how-to-create-a-dot-account#How-to-create-an-account-with-the-Polkadot-extension)
0 commit comments