Skip to content

Commit

Permalink
Update gnark/src/main/java/org/hyperledger/besu/nativelib/gnark/LibGn…
Browse files Browse the repository at this point in the history
…arkEIP196.java

Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
  • Loading branch information
pinges authored Jun 27, 2024
1 parent a9adcbd commit 8aca5a1
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ public static int eip196_perform_operation(
return ret;
}

public int findFirstTrailingZeroIndex(byte[] array) {
for (int i = array.length - 1; i >= 0; i--) {
if (array[i] != 0) {
return i + 1; // The first trailing zero is after this non-zero byte
}
}
// If all bytes are zero, return 0
return 0;
}

public static native int eip196altbn128G1Add(
byte[] input,
Expand Down

0 comments on commit 8aca5a1

Please sign in to comment.