Skip to content

Commit

Permalink
[3/N] Chunk encoding optimization: Add support of new encoding format… (
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Jul 11, 2024
1 parent 63c1d21 commit 660f0f1
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 76 deletions.
230 changes: 155 additions & 75 deletions api/grpc/node/node.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/node/node_grpc.pb.go

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

9 changes: 9 additions & 0 deletions api/proto/node/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ message RetrieveChunksRequest {
message RetrieveChunksReply {
// All chunks the Node is storing for the requested blob per RetrieveChunksRequest.
repeated bytes chunks = 1;
// Describes how the chunks above are encoded.
enum ChunkEncoding {
UNKNOWN = 0;
GNARK = 1;
GOB = 2;
}
ChunkEncoding encoding = 2;
}


Expand Down Expand Up @@ -109,6 +116,8 @@ message Bundle {
// Each chunk corresponds to a collection of points on the polynomial.
// Each chunk has same number of points.
repeated bytes chunks = 1;
// All chunks of the bundle encoded in a byte array.
bytes bundle = 2;
}

message G2Commitment {
Expand Down

0 comments on commit 660f0f1

Please sign in to comment.