-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: re-export c-kzg
types and impl rlp traits
#4084
Conversation
Codecov Report
... and 6 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
crates/rlp/Cargo.toml
Outdated
# for eip-4844 | ||
c-kzg = { git = "https://github.com/ethereum/c-kzg-4844", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DaniPopes wdyt here, how would this affect migration to alloy-rlp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's just wrappers for byte arrays so it should be fine, but in general i don't think it's the rlp's crate job to provide implementations for external types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only other feasible solution would be to use wrapper types in reth which I think is messier
we could try to add it to the c-kzg repo itself eventually
crates/primitives/Cargo.toml
Outdated
# for eip-4844 | ||
c-kzg = { git = "https://github.com/ethereum/c-kzg-4844" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move to workspace dep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, changed
This re-exports the
c-kzg
crate inreth-primitives
in thekzg
module, also implementingEncodable
andDecodable