-
Notifications
You must be signed in to change notification settings - Fork 56
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
bug: Parsing risc0 proof which is 0 padded does not parse correctly #230
Comments
I think I can fix it. |
Right. I would suggest
|
closed by #233 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Garaga version:
Current behavior:
In the moment if we have for example in the
proof.json
the following journal value:{ "journal": "0x00000000000000000000000000000000000000000000000000000000000f3893" }
the
return Groth16Proof._from_risc0( seal=bytes.fromhex(seal[2:]), image_id=bytes.fromhex(image_id[2:]), journal=bytes.fromhex(journal[2:]), )
is failing because the linejournal=bytes.fromhex(journal[2:]),
is failing and the fallback option is to callpublic_inputs = find_item_from_key_patterns(data, ["public"])
which fails.Expected behavior:
The correct behavior would be to correctly parse the journal.
Steps to reproduce:
Just put
{ "journal": "0x00000000000000000000000000000000000000000000000000000000000f3893" }
in theproof.json
and it would fail.The text was updated successfully, but these errors were encountered: