Closed ralexstokes closed 1 year ago
things to check:
FromIterator
implementations which just silently discard "extra" dataDefault
implementations -- we should not derive and instead add checks for type bounds
TODO
comments in codethis was handled in #55
the idea is to only allow a few entry points for the custom types, see the docs here https://github.com/ralexstokes/ssz-rs#custom-types
there are several ways to construct valid SSZ objects, e.g. from deserializing some bytes, or using a
FromIterator
implementation.let's make sure that any way to consume or produce bytes from this library only allows for valid SSZ. in particular, this means making sure there is no Rust facility to construct "invalid" instances