codex-storage / codex-contracts-eth

Ethereum smart contracts for Codex
Other
5 stars 8 forks source link

Verifier: represent elements from field F_{p^2} as `real + i * imag` #87

Closed markspanbroek closed 4 months ago

markspanbroek commented 4 months ago

Reason: Circom and Ethereum EIP-197 both represent these elements as arrays of two elements, but they do it in reverse order of each other. This change makes it explicit which number is the real part, and which number is the imaginary part.