Circuit::synthesize(): Load the Sinsemilla generator lookup table.

This commit is contained in:
therealyingtong 2021-06-06 19:36:01 +08:00
parent a369004037
commit 23af4d72ee
1 changed files with 5 additions and 2 deletions

View File

@ -235,9 +235,12 @@ impl plonk::Circuit<pallas::Base> for Circuit {
fn synthesize(
&self,
_config: Self::Config,
_layouter: impl Layouter<pallas::Base>,
config: Self::Config,
mut layouter: impl Layouter<pallas::Base>,
) -> Result<(), plonk::Error> {
// Load the Sinsemilla generator lookup table used by the whole circuit.
SinsemillaChip::load(config.sinsemilla_config_1, &mut layouter)?;
Ok(())
}
}