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

Integrate with sponge & Add multivariate challenge strategy #82

Merged
merged 25 commits into from
Jul 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/challenge.rs
  • Loading branch information
Pratyush committed Jul 22, 2021
commit 8ea00329bc03d9bfe223b311e66c1047da720695
5 changes: 1 addition & 4 deletions src/challenge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ impl<F: PrimeField, S: CryptographicSponge> ChallengeGenerator<F, S> {
}
}

/// Returns the sponge state if `self` is multivariate.
///
/// ## Panics
/// This function will panic if `self` is univariate.
/// Returns the sponge state if `self` is multivariate. Returns `None` otherwise.
pub fn into_sponge(self) -> Option<S> {
match self {
Self::Multivariate(s, _) => Some(s),
Expand Down