Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eigenDA client protos #306

Merged
merged 3 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 89 additions & 5 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions core/node/eigenda_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ anyhow.workspace = true
axum.workspace = true
tokio.workspace = true
tracing.workspace = true
# we can't use the workspace version of prost because
# the tonic dependency requires a hugher version.
prost = "0.13.1"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prost is available as a workspace dependency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the prost version used workspace wide is older than the one required for tonic. I added a comment explaining that

tonic = { version = "0.12.1", features = ["tls", "channel", "tls-roots"]}
tonic-web = "0.12.1"

[build-dependencies]
tonic-build = { version = "0.12.1", features = ["prost"] }
7 changes: 7 additions & 0 deletions core/node/eigenda_proxy/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fn main() {
tonic_build::configure()
.build_server(false)
.out_dir("src/")
.compile_protos(&["proto/disperser/disperser.proto"], &["proto"])
.unwrap();
}
10 changes: 10 additions & 0 deletions core/node/eigenda_proxy/proto/common/common.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
syntax = "proto3";
package common;
option go_package = "github.com/Layr-Labs/eigenda/api/grpc/common";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this go package?
Same with other files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the proto files just to know where the compiled code comes from.


message G1Commitment {
// The X coordinate of the KZG commitment. This is the raw byte representation of the field element.
bytes x = 1;
// The Y coordinate of the KZG commitment. This is the raw byte representation of the field element.
bytes y = 2;
}
Loading
Loading