ipsilon / eof

Validation code for the EOF specification
Apache License 2.0
43 stars 19 forks source link

Require MAX_INITCODE_SIZE limit to be satisfied during validation #125

Closed pdobacz closed 4 months ago

pdobacz commented 5 months ago

Pushing in form of a PR after discussion during EOF implementers call 49.

To reiterate the reasoning behind:

Synopsis of the problem:

Proposal

Introduce a validation rule of max top-level container size of MAX_INITCODE_SIZE 48K (or twice that constant, for practical reasons like solidity testing methods). Whenever either the bytestring being the top-level container or the declared (in the header, as discovered during header parsing) size of the top-level container exceed that, validation fails.

chfast commented 5 months ago

I agree.

pdobacz commented 5 months ago

Just got an answer from Solidity, that limiting to MAX_INITCODE_SIZE is not an issue from their POV

pdobacz commented 4 months ago

Opening an EIPs PR for this and #128, as well as putting adding EEST tests on my list.