Skip to content

Commit

Permalink
don't use jc-kzg-4844 dependency inside spec
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Oct 28, 2023
1 parent bec0b6e commit 7bdc0f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ethereum/spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies {
implementation 'org.apache.tuweni:tuweni-ssz'
implementation 'org.apache.tuweni:tuweni-ssz'
implementation 'org.apache.tuweni:tuweni-units'
implementation 'tech.pegasys:jc-kzg-4844'
implementation project(':ethereum:execution-types')
implementation project(':ethereum:pow:api')
implementation project(':ethereum:signingrecord')
Expand Down Expand Up @@ -65,10 +64,8 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testImplementation 'org.mockito:mockito-core'
testImplementation 'tech.pegasys:jc-kzg-4844'
testImplementation testFixtures(project(':infrastructure:async'))
testImplementation testFixtures(project(':infrastructure:bls'))
testImplementation testFixtures(project(':infrastructure:bls'))
testImplementation testFixtures(project(':infrastructure:collections'))
testImplementation testFixtures(project(':infrastructure:json'))
testImplementation testFixtures(project(':infrastructure:kzg'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@

package tech.pegasys.teku.spec.config;

import java.math.BigInteger;
import java.util.Optional;
import org.apache.tuweni.bytes.Bytes;
import tech.pegasys.teku.infrastructure.bytes.Bytes4;
import tech.pegasys.teku.infrastructure.unsigned.UInt64;

public interface SpecConfigDeneb extends SpecConfigCapella, NetworkingSpecConfigDeneb {
BigInteger BLS_MODULUS =
new BigInteger(
"52435875175126190479447740508185965837690552500527637822603658699938581184513");
Bytes VERSIONED_HASH_VERSION_KZG = Bytes.fromHexString("0x01");
UInt64 BYTES_PER_FIELD_ELEMENT = UInt64.valueOf(32);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package tech.pegasys.teku.spec.datastructures.util;

import static ethereum.ckzg4844.CKZG4844JNI.BLS_MODULUS;
import static tech.pegasys.teku.spec.config.SpecConfigDeneb.BLS_MODULUS;
import static tech.pegasys.teku.spec.config.SpecConfigDeneb.VERSIONED_HASH_VERSION_KZG;

import com.google.common.collect.Streams;
Expand Down

0 comments on commit 7bdc0f0

Please sign in to comment.