All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scorex.account.PrivateKeyAccount.scala Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
package scorex.account

import scorex.crypto.EllipticCurveImpl

@SerialVersionUID(8568952246932352318L)
case class PrivateKeyAccount(seed: Array[Byte], privateKey: Array[Byte], override val publicKey: Array[Byte])
  extends PublicKeyAccount(publicKey) {

  def this(seed: Array[Byte], keyPair: (Array[Byte], Array[Byte])) = this(seed, keyPair._1, keyPair._2)

  def this(seed: Array[Byte]) = this(seed, EllipticCurveImpl.createKeyPair(seed))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy