zkmove / halo2-verifier.move

A set of tooling of halo2 circuits verification in Move environments
Apache License 2.0
16 stars 3 forks source link

parser coordinate x, y based on point #30

Closed luxebeng closed 11 months ago

luxebeng commented 11 months ago

there is an Todo issue for point, need to parser point coordinate x, y. then x, y can be stored into transcript separately.

    public fun common_point(self: &mut Transcript, point: Element<G1>) {
        hasher::update(&mut self.state, vector::singleton(KECCAK256_PREFIX_POINT));

        // Fixme. here need write coordinate x and y seperately?
        let p = bn254_arithmetic::to_bytes<G1, FormatG1Compr>(&point);
        hasher::update(&mut self.state, p)
        // let (x, y) = point::coordinates(&point);
        // hasher::update(&mut self.state, x);
        // hasher::update(&mut self.state, y);
    }