Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to new version of jc-kzg-4844 lib #7849

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion besu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ dependencies {
implementation 'org.rocksdb:rocksdbjni'
implementation 'org.springframework.security:spring-security-crypto'
implementation 'org.xerial.snappy:snappy-java'
implementation 'tech.pegasys:jc-kzg-4844'
implementation 'io.consensys.protocols:jc-kzg-4844'

runtimeOnly 'org.apache.logging.log4j:log4j-jul'
runtimeOnly 'com.splunk.logging:splunk-library-javalogging'
Expand Down
12,416 changes: 8,256 additions & 4,160 deletions besu/src/test/resources/trusted_setup.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ethereum/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies {
implementation 'io.tmio:tuweni-units'
implementation 'io.tmio:tuweni-rlp'
implementation 'org.immutables:value-annotations'
implementation 'tech.pegasys:jc-kzg-4844'
implementation 'io.consensys.protocols:jc-kzg-4844'

implementation 'org.xerial.snappy:snappy-java'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public BlobTestFixture() {
try {
CKZG4844JNI.loadNativeLibrary();
CKZG4844JNI.loadTrustedSetupFromResource(
"/kzg-trusted-setups/mainnet.txt", BlobTestFixture.class);
"/kzg-trusted-setups/mainnet.txt", BlobTestFixture.class, 0);

} catch (Exception e) {
fail("Failed to compute commitment", e);
Expand Down
2 changes: 1 addition & 1 deletion evm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies {
implementation 'org.hyperledger.besu:arithmetic'
implementation 'org.hyperledger.besu:bls12-381'
implementation'org.hyperledger.besu:gnark'
implementation 'tech.pegasys:jc-kzg-4844'
implementation 'io.consensys.protocols:jc-kzg-4844'

compileOnly 'com.fasterxml.jackson.core:jackson-databind'
compileOnly 'io.vertx:vertx-core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static void init(final Path trustedSetupFile) {
loadLib();
final String trustedSetupResourceName = trustedSetupFile.toAbsolutePath().toString();
LOG.info("Loading trusted setup from user-specified resource {}", trustedSetupResourceName);
CKZG4844JNI.loadTrustedSetup(trustedSetupResourceName);
CKZG4844JNI.loadTrustedSetup(trustedSetupResourceName, 0);
} else {
throw new IllegalStateException("KZG trusted setup was already loaded");
}
Expand All @@ -78,7 +78,7 @@ public static void init() {
LOG.info(
"Loading network trusted setup from classpath resource {}", trustedSetupResourceName);
CKZG4844JNI.loadTrustedSetupFromResource(
trustedSetupResourceName, KZGPointEvalPrecompiledContract.class);
trustedSetupResourceName, KZGPointEvalPrecompiledContract.class, 0);
}
}

Expand Down
2 changes: 1 addition & 1 deletion platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ dependencies {

api 'org.xerial.snappy:snappy-java:1.1.10.7'

api 'tech.pegasys:jc-kzg-4844:1.0.0'
api 'io.consensys.protocols:jc-kzg-4844:2.0.0'

api 'tech.pegasys.discovery:discovery:24.9.1'
}
Expand Down