-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cache access structure and update submodules to the latest #1804
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the review methodology here out of curiosity? I am inclined to think this is fine as long as CI passes since we are just modifying the submodule binding. The access seems like a fine solution as well, because I don't know of way to length check/sanity check the header to prevent this issue from happening again.
Good question! Generally, CI is a good indicator when it comes to updating submodules and making sure the freshly built bindings don't break anything. Other than that, the cache access change was just a hot fix that I did and since it now "just works" it should be good to go (given it didn't do that before :D) |
@@ -53,7 +53,7 @@ function parseHeader( | |||
methods: MethodInterface[], | |||
header: SnarkKeyHeader | |||
): CacheHeader { | |||
let hash = Pickles.util.fromMlString(header[1][2][7]); | |||
let hash = Pickles.util.fromMlString(header[1][2][6]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, did the ocaml type change? if yes it would be nice to also change MlSnarkKeysHeader
(the TS type)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A handful of changes to the cache system in the Mina repository changed and resulted in o1js accessing an out of bounds elements in the header structure of the cached data, this fixes it.
Additionally, this updates the bindings and mina submodule to the latest commit while making sure everything builds correctly (this wasn't the case previously)
Caching continues to work as intended as the change was only in the structure of the header data
o1js-bindings o1-labs/o1js-bindings#298