org.sigilaris.core.crypto.Hash
See theHash companion object
Type class for Keccak-256 hashing.
Provides a type-safe way to hash values of type A, returning a tagged hash value that remembers its source type. The hash is computed using Keccak-256 (32 bytes).
Type parameters
- A
-
the type of value to hash
Attributes
- See also
-
CryptoOps.keccak256 for the underlying hash function
- Example
-
import Hash.ops.* // Hash a UTF-8 string val utf8Hash: Hash.Value[Utf8] = Utf8("hello").toHash // Build custom hash instance given Hash[MyType] = Hash.build[MyType] - Companion
- object
- Source
- Hash.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article