HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecardano-crypto-class-2.5.1.0

Cardano.Crypto.Hash

  • 13 types
  • 2 classes
  • 29 values
datadata ByteString
#

A space-efficient representation of a Word8 vector, supporting many efficient operations.

A ByteString contains 8-bit bytes, or by using the operations from Data.ByteString.Char8 it can be interpreted as containing 8-bit characters.

Instances29IsList, Eq, Data, Ord, Read, Show, …
datadata Blake2b_224
#
Instances5HashAlgorithm, IncrementalHashAlgorithm, HashSize, SizeHash, HashContext
datadata Blake2b_256
#
Instances6HashAlgorithm, IncrementalHashAlgorithm, SodiumHashAlgorithm, HashSize, SizeHash, HashContext
newtypenewtype Hash h a
#
Instances20Eq, Ord, Read, Show, Generic, Storable, …
classclass (KnownNat (HashSize h), Typeable h) => HashAlgorithm h where
#

Associated types

Methods

Instances10HashAlgorithm, …
familytype family HashSize h :: Nat
#
Instances10HashSize, …
  • type HashSize Blake2b_224 = 28Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.Blake2b
  • type HashSize Blake2b_256 = 32Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.Blake2b
  • type HashSize Keccak256 = 32Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.Keccak256
  • type HashSize NeverHash = 0Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.NeverUsed
  • type HashSize RIPEMD160 = 20Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.RIPEMD160
  • type HashSize SHA256 = 32Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.SHA256
  • type HashSize SHA3_256 = 32Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.SHA3_256
  • type HashSize SHA3_512 = 64Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.SHA3_512
  • type HashSize SHA512 = 64Defined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.SHA512
  • type HashSize (Blake2bPrefix n) = nDefined in cardano-crypto-class-2.5.1.0 · Cardano.Crypto.Hash.Short
classclass HashAlgorithm h => IncrementalHashAlgorithm h where
#

Associated types

Methods

Instances2IncrementalHashAlgorithm
familytype family SizeHash h :: Nat
#

Deprecated. In favor of HashSize

Instances10SizeHash, …
datadata SHA256
#
Instances4HashAlgorithm, SodiumHashAlgorithm, HashSize, SizeHash
datadata SHA512
#
Instances3HashAlgorithm, HashSize, SizeHash
datadata PackedBytes (n :: Nat) where
#
Instances11Eq, Ord, Show, Storable, NFData, MemPack, …