diff --git a/lang/jvm/src/main/scala/com/wavesplatform/crypto/Curve25519.scala b/lang/jvm/src/main/scala/com/wavesplatform/crypto/Curve25519.scala index 3e19e95287c..40f876471ff 100644 --- a/lang/jvm/src/main/scala/com/wavesplatform/crypto/Curve25519.scala +++ b/lang/jvm/src/main/scala/com/wavesplatform/crypto/Curve25519.scala @@ -1,16 +1,9 @@ package com.wavesplatform.crypto -import java.lang.reflect.Constructor - import org.whispersystems.curve25519.OpportunisticCurve25519Provider object Curve25519 { - private lazy val provider: OpportunisticCurve25519Provider = { - val constructor = classOf[OpportunisticCurve25519Provider].getDeclaredConstructors.head - .asInstanceOf[Constructor[OpportunisticCurve25519Provider]] - constructor.setAccessible(true) - constructor.newInstance() - } + private lazy val provider = new OpportunisticCurve25519Provider() val KeyLength: Int = 32 diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 001304596ec..3957eda9a9e 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -31,7 +31,7 @@ object Dependencies { val logback = "ch.qos.logback" % "logback-classic" % "1.3.11" // 1.4.x and later is built for Java 11 val janino = "org.codehaus.janino" % "janino" % "3.1.10" val asyncHttpClient = "org.asynchttpclient" % "async-http-client" % "2.12.3" - val curve25519 = "com.wavesplatform" % "curve25519-java" % "0.6.5" + val curve25519 = "com.wavesplatform" % "curve25519-java" % "0.6.6" val nettyHandler = "io.netty" % "netty-handler" % "4.1.94.Final" val catsCore = catsModule("core", "2.9.0") @@ -66,10 +66,10 @@ object Dependencies { shapeless.value, "org.typelevel" %%% "cats-mtl" % "1.3.1", "ch.obermuhlner" % "big-math" % "2.3.2", + googleGuava, curve25519, bouncyCastleProvider, - "com.wavesplatform" % "zwaves" % "0.1.0-SNAPSHOT", - "com.wavesplatform" % "zwaves-bn256" % "0.1.5-SNAPSHOT", + "com.wavesplatform" % "zwaves" % "0.1.7-23-SNAPSHOT", web3jModule("crypto") ) ++ langCompilerPlugins.value ++ scalapbRuntime.value ++ protobuf.value )