Skip to content

Commit 552eaba

Browse files
authored
Expand CompatibleUnion deserialization error handling (#4699)
Add missing error cases to CompatibleUnion deserialization specification: - Incomplete data handling - Corrupted input validation - Inner type validation failures Syncs changes from [EIP-8016](ethereum/EIPs#10631 (review))
1 parent 490e221 commit 552eaba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ssz/simple-serialize.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ non-exhaustive list:
330330
- More elements than a list limit allows. Part of enforcing consensus.
331331
- An out-of-bounds selected index in an `Union`.
332332
- An out-of-bounds type selector in a `CompatibleUnion`.
333+
- Incomplete data in a `CompatibleUnion` where the input is shorter than
334+
required for the selected type.
335+
- Corrupted input in a `CompatibleUnion` where the data contains invalid values
336+
or malformed content.
337+
- Inner type validation failures in a `CompatibleUnion` where the deserialized
338+
data fails validation for the selected type.
333339

334340
Efficient algorithms for computing this object can be found in
335341
[the implementations](#implementations).

0 commit comments

Comments
 (0)