From a8880cec8a0bae9b68bbfea0b285c1930332bfc7 Mon Sep 17 00:00:00 2001 From: Vectorized Date: Sat, 7 Dec 2024 02:43:11 +0000 Subject: [PATCH] T --- test/ext/ithaca/BLS.t.sol | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/ext/ithaca/BLS.t.sol b/test/ext/ithaca/BLS.t.sol index 3aed23d7e..68ba1482f 100644 --- a/test/ext/ithaca/BLS.t.sol +++ b/test/ext/ithaca/BLS.t.sol @@ -93,7 +93,7 @@ contract BLSTest is SoladyTest { function testHashToCurveG2(bytes memory message) public { bytes memory expected = abi.encode(this.hashToCurveG2Original(message)); - bytes memory computed = abi.encode(this.hashToCurveG2Optimized(message)); + bytes memory computed = abi.encode(this.hashToCurveG2OptimizedBrutalized(message)); assertEq(computed, expected); } @@ -101,6 +101,14 @@ contract BLSTest is SoladyTest { public view returns (BLS.G2Point memory result) + { + result = BLS.hashToG2(message); + } + + function hashToCurveG2OptimizedBrutalized(bytes memory message) + public + view + returns (BLS.G2Point memory result) { _misalignFreeMemoryPointer(); _brutalizeMemory();