26 lines
355 B
Solidity
Raw Normal View History

2024-01-18 13:50:54 +01:00
// SPDX-License-Identifier: MIT
2024-01-23 10:24:02 +01:00
pragma solidity 0.8.23;
2024-01-18 13:50:54 +01:00
struct G1Point {
2024-01-23 13:26:05 +01:00
uint x;
uint y;
2024-01-18 13:50:54 +01:00
}
struct G2Point {
2024-01-23 13:26:05 +01:00
uint[2] x;
uint[2] y;
2024-01-18 13:50:54 +01:00
}
struct Groth16Proof {
2024-01-23 13:26:05 +01:00
G1Point a;
G2Point b;
G1Point c;
2024-01-18 13:50:54 +01:00
}
interface IGroth16Verifier {
function verify(
Groth16Proof calldata proof,
uint[] calldata pubSignals
) external view returns (bool);
}