Closed mattsse closed 10 months ago
currently there's no infallible way to create Bytes types
This adds new(array) -> Self functions
new(array) -> Self
Hey @mattsse. There are functions for this here (might need to scroll btw):
https://github.com/ethereum/c-kzg-4844/blob/624aa60d01da524827123506975431aa5454c80d/bindings/rust/src/bindings/mod.rs#L487-L503
ah
hmm, I think having a const fn new would still be useful if you want to define constants
currently there's no infallible way to create Bytes types
This adds
new(array) -> Self
functions