barretenberg icon indicating copy to clipboard operation
barretenberg copied to clipboard

Investigate constraint count increase caused by enabling poseidon gate for the Tube circuit

Open maramihali opened this issue 1 year ago • 1 comments

See: https://github.com/AztecProtocol/aztec-packages/pull/7494

maramihali avatar Jul 23 '24 14:07 maramihali

also for the ultra recursive verifier. I observed a ~46k gate difference before and after poseidon2 was added, when it should be way lower.

lucasxia01 avatar Aug 21 '24 16:08 lucasxia01

We should confirm that hashing in the tube does not result in unexpected numbers of gates.

ledwards2225 avatar Jul 08 '25 14:07 ledwards2225

TL;DR when we actually enabled the Poseidon2 gate in recursive verifiers arithmetised as ultra circuits (my big Georgia arc) we were a bit surprised by the increase in constraint count. It's not specifically the tube circuit, just ensuring the number of gates produced by Poseidon in ultra circuit is not higher than expected. Especially given that, at the time, there were still some things left slightly unconstrained in bb::field_conversions - we are missing a bunch of validate_on_curve checks

maramihali avatar Sep 12 '25 09:09 maramihali