sigp / ssz_types

List, vector and bitfield types for SSZ
Apache License 2.0
1 stars 11 forks source link

Abstract quoted serde utils #3

Closed michaelsproul closed 1 year ago

michaelsproul commented 1 year ago

This change unifies the serde_utils for u64 lists and vectors using the ssz::TryFromIter trait. This also makes the utils compatible with milhouse types which implement the same trait.

Care has been taken to avoid memory DoS attacks in the new implementations of TryFromIter for VariableList and FixedVector.

I need to think further about whether this is a semver breaking change.