A library is implemented to conveniently call the precompile:
https://github.com/matter-labs/eip1962_lib/
The usage will be as simple as:
EIP1962.G1Pair[] memory pairs = EIP1962.Pair[
EIP1962.PairG1({
p1: EIP1962.G1Point(1, 2),
p2: EIP1962.G1Point(1, 3)
})
];
bytes memory result = BLS12.pairingG1(pairs);
require(result, "Wrong inputs");