Skip to content

Commit

Permalink
- zwaves (bls12) and zwaves-bn256 now in zwaves library;
Browse files Browse the repository at this point in the history
- removed a hack with reflection in Curve25519.
  • Loading branch information
vsuharnikov committed Oct 13, 2023
1 parent 9c49518 commit ec0ed47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit ec0ed47

Please sign in to comment.