Closed nanne007 closed 9 months ago
there is a reference implementation at Axiom: https://docs.axiom.xyz/transparency-and-security/kzg-trusted-setup
read from file and parser information of Params https://github.com/axiom-crypto/halo2-lib/blob/community-edition/halo2-base/src/utils/mod.rs#L392-#L456
Pass Params from off-chain to on-chain through write/read APIs。
let mut data = vec![];
<ParamsKZG<_> as Params<_>>::write(¶ms0, &mut data).unwrap();
let params1: ParamsKZG<Bn256> = Params::read::<_>(&mut &data[..]).unwrap();
Yes, we can use that. great!
KZG setup params are a list of public common data. see https://docs.scroll.io/en/learn/zero-knowledge/kzg-commitment-scheme/#1-trusted-setup For a start, we can use what params scroll use. Find out and fill them in to
src/param.move