Skip to content

Commit

Permalink
Merge pull request #2095 from StefanBratanov/upgrade_jc_kzg_4844
Browse files Browse the repository at this point in the history
Upgrade jc-kzg-4844 to 2.0.0
  • Loading branch information
gtebrean authored Sep 11, 2024
2 parents 059f735 + 3139236 commit 2964609
Show file tree
Hide file tree
Showing 5 changed files with 4,102 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
javaWebSocketVersion = '1.5.6'
picocliVersion = '4.7.6'
ensAdraffyVersion = '0.2.0'
kzg4844Version = '1.0.0'
kzg4844Version = '2.0.0'
tuweniVersion = '2.4.2'
// test dependencies
equalsverifierVersion = '3.16.1'
Expand Down
2 changes: 1 addition & 1 deletion crypto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
project(':utils'),
"org.slf4j:slf4j-api:$slf4jVersion",
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
"tech.pegasys:jc-kzg-4844:$kzg4844Version"
"io.consensys.protocols:jc-kzg-4844:$kzg4844Version"
implementation("io.tmio:tuweni-bytes:$tuweniVersion")
implementation("io.tmio:tuweni-units:$tuweniVersion")
}
Expand Down
3 changes: 2 additions & 1 deletion crypto/src/main/java/org/web3j/crypto/BlobUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class BlobUtils {
}

private static void loadTrustedSetupParameters() {
CKZG4844JNI.loadTrustedSetupFromResource(BlobUtils.trustedSetupFilePath, BlobUtils.class);
CKZG4844JNI.loadTrustedSetupFromResource(
BlobUtils.trustedSetupFilePath, BlobUtils.class, 0);
}

public static Bytes getCommitment(Blob blobData) {
Expand Down
Loading

0 comments on commit 2964609

Please sign in to comment.