chore: simplify ToFields trait (#154)

This commit is contained in:
Eduard S. 2025-03-20 09:38:46 +01:00 committed by GitHub
parent b1689c5b37
commit 2a2628ccbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 66 additions and 100 deletions

View file

@ -58,7 +58,7 @@ pub type Entry = (String, Value);
pub struct PodId(pub Hash);
impl ToFields for PodId {
fn to_fields(&self, params: &Params) -> (Vec<F>, usize) {
fn to_fields(&self, params: &Params) -> Vec<F> {
self.0.to_fields(params)
}
}
@ -211,7 +211,6 @@ pub trait PodProver {
}
pub trait ToFields {
/// returns Vec<F> representation of the type, and a usize indicating how many field elements
/// does the vector contain
fn to_fields(&self, params: &Params) -> (Vec<F>, usize);
/// returns Vec<F> representation of the type
fn to_fields(&self, params: &Params) -> Vec<F>;
}