-
Notifications
You must be signed in to change notification settings - Fork 28
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: split_commitment
function in KZG data availability implementation
#391
Conversation
I checked out the PR. Here are my questions:
All in all thanks for this PR! |
If you need any more clarification or there is any confusion we can also discuss this on call. Thanks |
Thanks for your speedy response.
I think you have clarified enough. But I am open to a call, generally just to discuss and understand how you are using snos. |
Sure here is my calendly link you can schedule a call whenever you are free: |
split_commitment
function in KZG data availability implementation
@ocdbytes thanks for this LGTM |
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.
Looks good. I'd prefer to use constants as was done previously, but I won't make a big deal out of that. (CC @HermanObst)
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.
LGTM
…ion (#391) * debug : prints added for blob * debug : prints added for blob * debug : prints added for blob * debug : prints added for blob * fix: fixed split commitment function * fix: fixed split commitment function * fix: fixed split commitment function * feat : removed logs * fix : lint and clippy * test : added a test for split commitment function * feat : requested changes done * chore : added constants for hardcoded values --------- Co-authored-by: Herman Obst Demaestri <70286869+HermanObst@users.noreply.github.com>
* wip: adds integration tests for invoke with delpoy_contract syscall * test: add tests for contract with no calldata * Fix inconsistent hash (#390) * point to snos_requirements branch * fix inconsistent hash * add blocks to CI * Using reference PIE to validate our PIEs are correct (#389) The reference PIE was created with `full_output` enabled, so `output.rs` was updated to support that. The code was refactored to better mirror the Cairo serialization code. Co-authored-by: Herman Obst Demaestri <hodemaestri@gmail.com> * fix: `split_commitment` function in KZG data availability implementation (#391) * debug : prints added for blob * debug : prints added for blob * debug : prints added for blob * debug : prints added for blob * fix: fixed split commitment function * fix: fixed split commitment function * fix: fixed split commitment function * feat : removed logs * fix : lint and clippy * test : added a test for split commitment function * feat : requested changes done * chore : added constants for hardcoded values --------- Co-authored-by: Herman Obst Demaestri <70286869+HermanObst@users.noreply.github.com> * QOL++ * Bugfix: work around retdata being Int(0) * Add test case for retdata issue * Update hashes for modified contract code * First pass at retdata hack * fmt * clippy * Fix compile errors in tests * fmt * Wrap os_input in Arc * s/Arc/Rc/ * fmt * clippy * Avoid hideous clone * Don't unwrap * Leave link to relevant code * Refine comment about no-oping * Add link to retdata cast() * clippy * Pass compiled OS to run_os --------- Co-authored-by: ftheirs <fntheirs@gmail.com> Co-authored-by: Shams Asari <shams@moonsonglabs.com> Co-authored-by: Herman Obst Demaestri <hodemaestri@gmail.com> Co-authored-by: Arun Jangra <arunjangra1001@gmail.com> Co-authored-by: Herman Obst Demaestri <70286869+HermanObst@users.noreply.github.com> Co-authored-by: Stephen Shelton <steve@brewcraft.org>
Problem:
The bug was that the commitment split returned by this function was wrong. I encountered this when I was integrating the snos with madara orchestrator and performing an e2e test. On the final step of the block processing the contract was giving an error saying that "precompile evaluation failed". After debugging we found out that this is the issue the commitment returned by the snos was wrong.
Issue Number: N/A
Type
Description
Breaking changes?