@clearproof/contracts 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.24;
3
-
4
- import {Pairing} from "./Pairing.sol";
5
-
6
- /// @dev Test-only access to internal library operations; not an authorization verifier.
7
- contract PairingHarness {
8
- function generators() external pure returns (Pairing.G1Point memory, Pairing.G2Point memory) {
9
- return (Pairing.P1(), Pairing.P2());
10
- }
11
-
12
- function negate(Pairing.G1Point memory p) external pure returns (Pairing.G1Point memory) {
13
- return Pairing.negate(p);
14
- }
15
-
16
- function add(Pairing.G1Point memory a, Pairing.G1Point memory b) external view returns (Pairing.G1Point memory) {
17
- return Pairing.add(a, b);
18
- }
19
-
20
- function multiply(Pairing.G1Point memory p, uint256 scalar) external view returns (Pairing.G1Point memory) {
21
- return Pairing.scalar_mul(p, scalar);
22
- }
23
-
24
- function pairing(Pairing.G1Point[] memory a, Pairing.G2Point[] memory b) external view returns (bool) {
25
- return Pairing.pairing(a, b);
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.24;
3
-
4
- /// @dev TEST ONLY. ABI-compatible stand-in for PilotGroth16Verifier so registry logic
5
- /// (pause, epochs, events, domain binding) runs without circuit artifacts. It performs
6
- /// no pairing check and must never be deployed outside a local test network.
7
- contract MockPilotVerifier {
8
- bytes32 public immutable artifactManifestDigest;
9
- bool public result = true;
10
-
11
- constructor(bytes32 manifestDigest) {
12
- artifactManifestDigest = manifestDigest;
13
- }
14
-
15
- function setResult(bool value) external {
16
- result = value;
17
- }
18
-
19
- function verifyProof(
20
- uint256[2] calldata,
21
- uint256[2][2] calldata,
22
- uint256[2] calldata,
23
- uint256[8] calldata
24
- ) external view returns (bool) {
25
- return result;
26
- }
27
- }