mirror of
https://github.com/fluencelabs/crypto
synced 2025-04-24 14:22:18 +00:00
Slogging dependency is kept only in keystore (#7)
This commit is contained in:
parent
1a8313b321
commit
38608df192
@ -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
|
||||
)
|
||||
)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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._
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user