-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4128 from jtraglia/compute-cells
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,22 @@ | ||
# Test format: Compute cells | ||
|
||
Compute the cells for a given `blob`. | ||
|
||
## Test case format | ||
|
||
The test data is declared in a `data.yaml` file: | ||
|
||
```yaml | ||
input: | ||
blob: Blob -- the data blob | ||
output: List[Cell] -- the cells | ||
``` | ||
- `Blob` is a 131072-byte hexadecimal string, prefixed with `0x`. | ||
- `Cell` is a 2048-byte hexadecimal string, prefixed with `0x`. | ||
|
||
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`. | ||
|
||
## Condition | ||
|
||
The `compute_cells` handler should compute the cells (chunks of an extended blob) for `blob`, and the result should match the expected `output`. If the blob is invalid (e.g. incorrect length or one of the 32-byte blocks does not represent a BLS field element) it should error, i.e. the output should be `null`. |
This file contains 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