Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Dec 7, 2024
1 parent a8880ce commit a0e3608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/ext/ithaca/BLS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ library BLS {
function sha2(data_, n_) -> _h {
if iszero(
and(eq(returndatasize(), 0x20), staticcall(gas(), 2, data_, n_, 0x00, 0x20))
) { revert(codesize(), 0x00) }
) { revert(calldatasize(), 0x00) }
_h := mload(0x00)
}

function modfield(s_, b_) {
mcopy(add(s_, 0x60), b_, 0x40)
if iszero(
and(eq(returndatasize(), 0x40), staticcall(gas(), 5, s_, 0x100, b_, 0x40))
) { revert(codesize(), 0x00) }
) { revert(calldatasize(), 0x00) }
}

function mapToG2(s_, r_) {
Expand Down

0 comments on commit a0e3608

Please sign in to comment.