Skip to content
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

Arrabbiata: coining alpha challenge + implement generic coin_challenge #3027

Open
wants to merge 6 commits into
base: arrabbiata/squeeze-challenge-method
Choose a base branch
from

Conversation

dannywillems
Copy link
Member

No description provided.

@dannywillems dannywillems force-pushed the dw/coin-alpha-challenge branch from c29c506 to d19d3c2 Compare February 12, 2025 21:09
});
let verifier_answer = E1::squeeze_challenge(&mut sponge).to_biguint().into();
self.challenges[chal] = verifier_answer;
sponge.sponge.poseidon_block_cipher();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to abstract it later.

});
let verifier_answer = E2::squeeze_challenge(&mut sponge).to_biguint().into();
self.challenges[chal] = verifier_answer;
sponge.sponge.poseidon_block_cipher();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to abstract it later.

});
let verifier_answer = E1::squeeze_challenge(&mut sponge).to_biguint().into();
self.challenges[chal] = verifier_answer;
sponge.sponge.poseidon_block_cipher();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to add a pass of block_cipher there ?

});
let verifier_answer = E2::squeeze_challenge(&mut sponge).to_biguint().into();
self.challenges[chal] = verifier_answer;
sponge.sponge.poseidon_block_cipher();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as line 1272

Comment on lines +1291 to +1298
let state: Vec<BigInt> = sponge
.sponge
.state
.iter()
.map(|x| x.to_biguint().into())
.collect();
self.prover_sponge_state = state.try_into().unwrap();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be factorised with the other half of the commit

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 71.01449% with 20 lines in your changes missing coverage. Please review.

Please upload report for BASE (arrabbiata/squeeze-challenge-method@6d3ae53). Learn more about missing BASE report.

Files with missing lines Patch % Lines
arrabbiata/src/challenge.rs 16.66% 20 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                           @@
##             arrabbiata/squeeze-challenge-method    #3027   +/-   ##
======================================================================
  Coverage                                       ?   76.86%           
======================================================================
  Files                                          ?      263           
  Lines                                          ?    62244           
  Branches                                       ?        0           
======================================================================
  Hits                                           ?    47846           
  Misses                                         ?    14398           
  Partials                                       ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants