Slogging dependency is kept only in keystore (#7)

This commit is contained in:
Dmitry Kurinskiy 2019-06-13 15:28:05 +03:00 committed by GitHub
parent 1a8313b321
commit 38608df192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 8 deletions

View File

@ -14,7 +14,7 @@ val scalaV = scalaVersion := "2.12.8"
val commons = Seq(
scalaV,
version := "0.0.5",
version := "0.0.6",
fork in Test := true,
parallelExecution in Test := false,
organization := "one.fluence",
@ -104,7 +104,7 @@ lazy val `crypto-hashsign` = crossProject(JVMPlatform, JSPlatform)
)
.jsSettings(
npmDependencies in Compile ++= Seq(
"elliptic" -> "6.4.0"
"elliptic" -> "6.4.1"
),
scalaJSModuleKind in Test := ModuleKind.CommonJSModule,
//all JavaScript dependencies will be concatenated to a single file *-jsdeps.js
@ -125,7 +125,7 @@ lazy val `crypto-cipher` = crossProject(JVMPlatform, JSPlatform)
.settings(
commons,
libraryDependencies ++= Seq(
"biz.enef" %%% "slogging" % SloggingV,
"biz.enef" %%% "slogging" % SloggingV % Test,
"org.scalatest" %%% "scalatest" % ScalatestV % Test
)
)

View File

@ -127,7 +127,7 @@ class AesCrypt(password: Array[Char], withIV: Boolean, config: AesConfig) {
}
}
object AesCrypt extends slogging.LazyLogging {
object AesCrypt {
def build(password: ByteVector, withIV: Boolean, config: AesConfig): Crypto.Cipher[Array[Byte]] = {
val aes = new AesCrypt(password.toHex.toCharArray, withIV, config)

View File

@ -220,7 +220,7 @@ class AesCrypt(password: Array[Char], withIV: Boolean, config: AesConfig) extend
}
}
object AesCrypt extends slogging.LazyLogging {
object AesCrypt {
def build(password: ByteVector, withIV: Boolean, config: AesConfig): Crypto.Cipher[Array[Byte]] = {
val aes = new AesCrypt(password.toHex.toCharArray, withIV, config)

View File

@ -21,7 +21,6 @@ import cats.data.EitherT
import cats.instances.try_._
import fluence.crypto.ecdsa.Ecdsa
import fluence.crypto.signature.Signature
import fluence.crypto.{CryptoError, KeyPair}
import org.scalatest.{Matchers, WordSpec}
import scodec.bits.ByteVector

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package fluence.crypto.ecdsa
package fluence.crypto.eddsa
import java.security._

View File

@ -21,7 +21,7 @@ import java.io.File
import cats.data.EitherT
import cats.instances.try_._
import fluence.crypto.ecdsa.Ed25519
import fluence.crypto.eddsa.Ed25519
import fluence.crypto.keystore.FileKeyStorage
import fluence.crypto.signature.Signature
import org.scalatest.{Matchers, WordSpec}