mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 22:03:07 +00:00
get_extension_targets
This commit is contained in:
parent
2d9891983f
commit
79af87535a
@ -57,6 +57,18 @@ impl<F: Field> PartialWitness<F> {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn get_extension_targets<const D: usize>(
|
||||
&self,
|
||||
ets: &[ExtensionTarget<D>],
|
||||
) -> Vec<F::Extension>
|
||||
where
|
||||
F: Extendable<D>,
|
||||
{
|
||||
ets.iter()
|
||||
.map(|&et| self.get_extension_target(et))
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn get_hash_target(&self, ht: HashOutTarget) -> HashOut<F> {
|
||||
HashOut {
|
||||
elements: self.get_targets(&ht.elements).try_into().unwrap(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user