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

scorex.crypto.hash.CryptographicHash32.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 CryptographicHash32 extends CryptographicHash {

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

  override val DigestSize: Int = 32

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy