mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-16 04:03:11 +00:00
Current tests are failing because ECMUL is not a valid opcode in hardhat. Exploring alternatives.
16 lines
250 B
Solidity
16 lines
250 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity >=0.8.0 <=0.8.13;
|
|
|
|
library Curve {
|
|
struct G1Point {
|
|
uint256 X;
|
|
uint256 Y;
|
|
}
|
|
|
|
// Encoding of field elements is: X[0] * z + X[1]
|
|
struct G2Point {
|
|
uint256[2] X;
|
|
uint256[2] Y;
|
|
}
|
|
} |