scorex.crypto.hash.CryptographicHash64.scala Maven / Gradle / Ivy
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