Skip to content

Commit

Permalink
Update to new version of jc-kzg-4844 lib (#7849)
Browse files Browse the repository at this point in the history
* Updating Dependencies
Signed-off-by: vaidikcode <[email protected]>

* Update CHANGELOG.md
Signed-off-by: Fabio Di Fabio <[email protected]>

---------

Signed-off-by: Vaidik <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Co-authored-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
vaidikcode and fab-10 authored Feb 19, 2025
1 parent c1c3715 commit 65baa30
Show file tree
Hide file tree
Showing 11 changed files with 12,360 additions and 12,493 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Transaction indexing will be disabled by default in a future release for snap sync and checkpoint sync modes. This will break RPCs that use transaction hash for historical queries.
- Support for block creation on networks running a pre-Byzantium fork is deprecated for removal in a future release, after that in order to update Besu on nodes that build blocks, your network needs to be upgraded at least to the Byzantium fork. The main reason is to simplify world state management during block creation, since before Byzantium for each selected transaction, the receipt must contain the root hash of the modified world state, and this does not play well with the new plugin features and future work on parallelism.
### Additions and Improvements
- Update the jc-kzg-4844 dependency from 1.0.0 to 2.0.0, which is now available on Maven Central [#7849](https://github.com/hyperledger/besu/pull/7849)
- Add TLS/mTLS options and configure the GraphQL HTTP service[#7910](https://github.com/hyperledger/besu/pull/7910)
- Allow plugins to propose transactions during block creation [#8268](https://github.com/hyperledger/besu/pull/8268)
- Update `eth_getLogs` to return a `Block not found` error when the requested block is not found. [#8290](https://github.com/hyperledger/besu/pull/8290)
Expand Down
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.

4,163 changes: 0 additions & 4,163 deletions config/src/main/resources/kzg-trusted-setups/holesky.txt

This file was deleted.

4,163 changes: 0 additions & 4,163 deletions config/src/main/resources/kzg-trusted-setups/mainnet.txt

This file was deleted.

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 @@ -45,7 +45,7 @@ dependencies {
implementation 'io.tmio:tuweni-units'
implementation 'org.hyperledger.besu:arithmetic'
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
4,096 changes: 4,096 additions & 0 deletions evm/src/main/resources/kzg-trusted-setups/mainnet.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,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:25.2.0'
}
Expand Down

0 comments on commit 65baa30

Please sign in to comment.