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

scorex.crypto.hash.CryptographicHash64.scala Maven / Gradle / Ivy

There is a newer version: 1.2.0-RC3
Show newest version
package scorex.crypto.hash

import scorex.crypto._
import shapeless.Sized

trait CryptographicHash64 extends CryptographicHash {

  type SizedDigest = Sized[Array[Byte], Nat64]

  override val DigestSize: Int = 64

  def hashSized(in: Message): SizedDigest = Sized.wrap(hash(in))

  def hashSized(in: String): SizedDigest = hashSized(in.getBytes)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy