Skip to content

Conversation

@turuslan
Copy link
Contributor

@turuslan turuslan commented Nov 25, 2025

  • Spec expects 3116 byte signature (bincode).
    • actual size is 3884
  • FieldArray used collect_seq/deserialize_seq, which encoded sequence size (extra bytes).
  • FieldArray size is fixed, so use serialize_tuple/deserialize_tuple.

@tcoratger
Copy link
Contributor

@turuslan Just so that we avoid doing stupid things in the future, can you add a small unit test to validate the length of the obtained serialized object?

@tcoratger tcoratger merged commit e059aac into leanEthereum:main Nov 25, 2025
2 checks passed
@turuslan turuslan deleted the size3116 branch November 26, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants