Open
Description
Our consensus/types
crate depends on our crypto/kzg
crate, which imports c-kzg
. The c-kzg
dependency is annoying for using our types
crate outside of lighthouse. I was thinking we could create a smaller crypto/kzg-types
crate where we house anything in crypto/kzg
we require in the consensus/types
crate. And just import this kzg-types
crate into kzg
.
Things to do:
- stop using constants from
c-kzg
in our types - instead we could add a compile time assertion in
kzg
that the constants set inkzg-types
are equivalent to those set inc-kzg
- move the method
BlobSidecar::random_valid
off of the type and into thekzg
crate so we don't require it in the types crate