Skip to content

fix(vm): bind memory timestamps and harden ecrecover hooks - #105

Open
WindOctober wants to merge 2 commits into
brevis-network:mainfrom
WindOctober:fix/memory-timestamps-and-ecrecover
Open

fix(vm): bind memory timestamps and harden ecrecover hooks#105
WindOctober wants to merge 2 commits into
brevis-network:mainfrom
WindOctober:fix/memory-timestamps-and-ecrecover

Conversation

@WindOctober

Copy link
Copy Markdown

MemoryReadWrite rows currently match CPU load/store instructions without including chunk and clk, allowing the memory table to use an execution time different from the corresponding CPU row. This change appends (chunk, clk) to both sides of the lookup so each ordinary load/store transition is bound to the CPU row's constrained execution time.

The ECRecover hook currently assumes guest-provided field and scalar encodings are canonical and can panic while decoding or inverting invalid inputs. This change replaces those assumptions with checked conversions and returns the hook's existing failure response for invalid encodings. VM and AOT execution now share the same implementation so both paths apply identical validation.

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.

1 participant