Skip to content

Commit

Permalink
Merge pull request 0glabs#23 from 0glabs/encoder-refactor
Browse files Browse the repository at this point in the history
feat: encoder refactor
  • Loading branch information
MiniFrenchBread authored Apr 9, 2024
2 parents 3251d8a + a779ccf commit 8b2409c
Show file tree
Hide file tree
Showing 137 changed files with 477 additions and 13,891 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ build:
# cd churner && make build
cd disperser && make build
# cd node && make build
cd retriever && make build
# cd retriever && make build
# cd tools/traffic && make build

unit-tests:
Expand Down
301 changes: 150 additions & 151 deletions api/grpc/disperser/disperser.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/grpc/disperser/disperser_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions api/grpc/retriever/retriever.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/grpc/retriever/retriever_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api/proto/disperser/disperser.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ message DisperseBlobRequest {
// The disperser will ensure that the encoded blobs for each quorum are all processed
// within the same batch.
repeated SecurityParams security_params = 2;
// The number of chunks that encoded blob split into.
// The number of rows that encoded blob split into.
// The number will be aligned to the next power of 2 and be bounded by blob size.
uint32 target_chunk_num = 3;
uint32 target_row_num = 3;
}

message DisperseBlobReply {
Expand Down Expand Up @@ -144,8 +144,8 @@ message BlobInfo {
}

message BlobHeader {
// KZG commitment to the blob.
bytes commitment = 1;
// Merkle root of KZG commitments of blob.
bytes commitment_root = 1;
// The length of the blob in symbols (each symbol is 31 bytes).
uint32 data_length = 2;
// The params of the quorums that this blob participates in.
Expand Down
2 changes: 1 addition & 1 deletion cli/config.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/urfave/cli"
"github.com/0glabs/0g-data-avail/cli/flags"
"github.com/0glabs/0g-data-avail/common/aws"
"github.com/0glabs/0g-data-avail/common/logging"
"github.com/urfave/cli"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion cli/flags/flags.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package flags

import (
"github.com/urfave/cli"
"github.com/0glabs/0g-data-avail/common"
"github.com/0glabs/0g-data-avail/common/aws"
"github.com/0glabs/0g-data-avail/common/logging"
"github.com/urfave/cli"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"log"
"os"

"github.com/urfave/cli"
"github.com/0glabs/0g-data-avail/cli/flags"
"github.com/0glabs/0g-data-avail/common/aws/dynamodb"
"github.com/0glabs/0g-data-avail/common/aws/s3"
"github.com/0glabs/0g-data-avail/common/logging"
"github.com/0glabs/0g-data-avail/common/store"
"github.com/0glabs/0g-data-avail/disperser/common/blobstore"
"github.com/urfave/cli"
)

var (
Expand Down
199 changes: 0 additions & 199 deletions clients/retrieval_client.go

This file was deleted.

Loading

0 comments on commit 8b2409c

Please sign in to comment.