Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
146a462
updated constraints
lorenzogentile404 Oct 28, 2025
e8d0de9
updated precompile scenario fragment
lorenzogentile404 Oct 28, 2025
7413352
added p256_verify precompile to oob
lorenzogentile404 Oct 28, 2025
95f02d2
partially updated ec data
lorenzogentile404 Oct 28, 2025
9b737e2
implemented r1 membership check
lorenzogentile404 Oct 29, 2025
3755be8
updated precompile subsection
lorenzogentile404 Oct 29, 2025
4e8ead3
added test for p256_verify precompile
lorenzogentile404 Oct 31, 2025
8be3ac5
Merge branch 'arith-dev' into 2363-eip-7951-precompile-for-secp256r1-…
lorenzogentile404 Nov 3, 2025
7a30cf4
updated constraints
lorenzogentile404 Nov 3, 2025
b62f5c9
fixed LT ISZERO issue
lorenzogentile404 Nov 3, 2025
c5eec4d
removed computed columns from explicit tracing
lorenzogentile404 Nov 4, 2025
4ff91bd
updated constraints
lorenzogentile404 Nov 5, 2025
835d15a
filled pScenarioPrcP256Verify in the Hub trace
lorenzogentile404 Nov 5, 2025
079446b
Merge branch 'arith-dev' into 2363-eip-7951-precompile-for-secp256r1-…
lorenzogentile404 Nov 6, 2025
fcd2ccd
fixed bugs related to connecting the hub with ecdata wrt P256_VERIFY …
lorenzogentile404 Nov 7, 2025
616fc21
Merge branch 'arith-dev' into 2363-eip-7951-precompile-for-secp256r1-…
lorenzogentile404 Nov 7, 2025
4d142c0
updated constraints
lorenzogentile404 Nov 7, 2025
1c3d80e
updated constraints
lorenzogentile404 Nov 7, 2025
1fdeb76
fixed imports
lorenzogentile404 Nov 7, 2025
3aca610
fixed c1 memership and r1 membership
lorenzogentile404 Nov 7, 2025
702b8e1
cleaned code
lorenzogentile404 Nov 7, 2025
feb91eb
fixed bug related to success bit
lorenzogentile404 Nov 8, 2025
c489dac
fixed bug related to limb of p256_verify
lorenzogentile404 Nov 9, 2025
baed8b2
added several test cases and updated constraints
lorenzogentile404 Nov 10, 2025
6372d9d
Merge branch 'arith-dev' into 2363-eip-7951-precompile-for-secp256r1-…
lorenzogentile404 Nov 14, 2025
c9aa4d2
Merge branch 'arith-dev' into 2363-eip-7951-precompile-for-secp256r1-…
lorenzogentile404 Nov 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ public class ZkCounter implements LineCountingTracer {
new CountingOnlyModule(PRECOMPILE_ECPAIRING_MILLER_LOOPS);
private final IncrementingModule ecPairingFinalExponentiations =
new IncrementingModule(PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS);
private final IncrementingModule p256VerifyEffectiveCalls =
new IncrementingModule(PRECOMPILE_P256_VERIFY_EFFECTIVE_CALLS);

// related to Modexp
private final IncrementAndDetectModule modexpEffectiveCall =
Expand Down Expand Up @@ -338,7 +340,8 @@ public ZkCounter(LineaL1L2BridgeSharedConfiguration bridgeConfiguration) {
ecRecoverEffectiveCall,
ecPairingG2MembershipCalls,
ecPairingMillerLoops,
ecPairingFinalExponentiations);
ecPairingFinalExponentiations,
p256VerifyEffectiveCalls);
blsdata =
new BlsData(
wcp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public enum ModuleName {
PRECOMPILE_ECPAIRING_MILLER_LOOPS,
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS,
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS,
PRECOMPILE_P256_VERIFY_EFFECTIVE_CALLS,

// blakemodexp:
PRECOMPILE_BLAKE_EFFECTIVE_CALLS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_BLAKE_DATA;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_BLAKE_PARAMS;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_BLAKE_RESULT;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_MODEXP;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_MODEXP_BASE;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_MODEXP_EXPONENT;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_MODEXP_MODULUS;
import static net.consensys.linea.zktracer.Trace.Blake2fmodexpdata.INDEX_MAX_MODEXP_RESULT;
import static net.consensys.linea.zktracer.Trace.LLARGE;
import static net.consensys.linea.zktracer.Trace.PHASE_BLAKE_DATA;
import static net.consensys.linea.zktracer.Trace.PHASE_BLAKE_PARAMS;
Expand All @@ -31,6 +26,11 @@
import static net.consensys.linea.zktracer.Trace.PHASE_MODEXP_EXPONENT;
import static net.consensys.linea.zktracer.Trace.PHASE_MODEXP_MODULUS;
import static net.consensys.linea.zktracer.Trace.PHASE_MODEXP_RESULT;
import static net.consensys.linea.zktracer.TraceOsaka.Blake2fmodexpdata.INDEX_MAX_MODEXP;
import static net.consensys.linea.zktracer.TraceOsaka.Blake2fmodexpdata.INDEX_MAX_MODEXP_BASE;
import static net.consensys.linea.zktracer.TraceOsaka.Blake2fmodexpdata.INDEX_MAX_MODEXP_EXPONENT;
import static net.consensys.linea.zktracer.TraceOsaka.Blake2fmodexpdata.INDEX_MAX_MODEXP_MODULUS;
import static net.consensys.linea.zktracer.TraceOsaka.Blake2fmodexpdata.INDEX_MAX_MODEXP_RESULT;
import static net.consensys.linea.zktracer.types.Utils.leftPadTo;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public class EcData implements OperationListModule<EcDataOperation> {
private final CountingOnlyModule ecPairingMillerLoops;
private final IncrementingModule ecPairingFinalExponentiations;

private final IncrementingModule p256VerifyEffectiveCalls;

@Getter private EcDataOperation ecDataOperation;

@Override
Expand Down Expand Up @@ -144,6 +146,9 @@ public void callEcData(
ecDataOperation.circuitSelectorEcPairingCounter()
> 0); // See https://eprint.iacr.org/2008/490.pdf
}
case PRC_P256_VERIFY -> {
p256VerifyEffectiveCalls.updateTally(ecDataOperation.internalChecksPassed());
}
default -> throw new IllegalArgumentException("Operation not supported by EcData");
}
}
Expand Down
Loading
Loading