Skip to content

Commit 2964609

Browse files
authored
Merge pull request #2095 from StefanBratanov/upgrade_jc_kzg_4844
Upgrade jc-kzg-4844 to 2.0.0
2 parents 059f735 + 3139236 commit 2964609

File tree

5 files changed

+4102
-5
lines changed

5 files changed

+4102
-5
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ext {
2525
javaWebSocketVersion = '1.5.6'
2626
picocliVersion = '4.7.6'
2727
ensAdraffyVersion = '0.2.0'
28-
kzg4844Version = '1.0.0'
28+
kzg4844Version = '2.0.0'
2929
tuweniVersion = '2.4.2'
3030
// test dependencies
3131
equalsverifierVersion = '3.16.1'

crypto/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
project(':utils'),
1111
"org.slf4j:slf4j-api:$slf4jVersion",
1212
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
13-
"tech.pegasys:jc-kzg-4844:$kzg4844Version"
13+
"io.consensys.protocols:jc-kzg-4844:$kzg4844Version"
1414
implementation("io.tmio:tuweni-bytes:$tuweniVersion")
1515
implementation("io.tmio:tuweni-units:$tuweniVersion")
1616
}

crypto/src/main/java/org/web3j/crypto/BlobUtils.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public class BlobUtils {
2626
}
2727

2828
private static void loadTrustedSetupParameters() {
29-
CKZG4844JNI.loadTrustedSetupFromResource(BlobUtils.trustedSetupFilePath, BlobUtils.class);
29+
CKZG4844JNI.loadTrustedSetupFromResource(
30+
BlobUtils.trustedSetupFilePath, BlobUtils.class, 0);
3031
}
3132

3233
public static Bytes getCommitment(Blob blobData) {

0 commit comments

Comments
 (0)