| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Gini.Crypto.Hash
Synopsis
- newtype BlockHash = BlockHash {
- unBlockHash :: Digest BlockHashAlgorithm
- blockHashSize :: Int
- computeBlockHash :: ByteArrayAccess a => a -> BlockHash
- buildBlockHash :: ByteArrayAccess a => a -> Maybe BlockHash
- mkBlockHashHexQ :: String -> Q Exp
- newtype POWHash = POWHash {
- unPOWHash :: Digest POWHashAlgorithm
- powHashSize :: Int
- computePOWHash :: ByteArrayAccess a => a -> POWHash
- buildPOWHash :: ByteArrayAccess a => a -> Maybe POWHash
Documentation
Constructors
| BlockHash | |
Fields
| |
Instances
| Eq BlockHash # | |
| Show BlockHash # | |
| NFData BlockHash # | |
Defined in Gini.Crypto.Hash | |
| ByteArrayAccess BlockHash # | |
| Display BlockHash # | |
Defined in Gini.Crypto.Hash | |
| Persist BlockHash # | |
Defined in Gini.Crypto.Hash | |
| Validity BlockHash # | |
Defined in Gini.Crypto.Hash | |
| PersistField BlockHash # | |
Defined in Gini.Crypto.Hash Methods toPersistValue :: BlockHash -> PersistValue fromPersistValue :: PersistValue -> Either Text BlockHash | |
| PersistFieldSql BlockHash # | |
Defined in Gini.Crypto.Hash | |
blockHashSize :: Int #
Expected length of a block digest
computeBlockHash :: ByteArrayAccess a => a -> BlockHash #
Compute the hash digest of a block.
buildBlockHash :: ByteArrayAccess a => a -> Maybe BlockHash #
Create BlockHash from a sequence of bytes
mkBlockHashHexQ :: String -> Q Exp #
Block hash from hex encoded string.
Instances
| Eq POWHash # | |
| Show POWHash # | |
| NFData POWHash # | |
Defined in Gini.Crypto.Hash | |
| ByteArrayAccess POWHash # | |
| Display POWHash # | |
Defined in Gini.Crypto.Hash | |
| Persist POWHash # | |
Defined in Gini.Crypto.Hash | |
| Validity POWHash # | |
Defined in Gini.Crypto.Hash | |
powHashSize :: Int #
Expected length of a block digest in bytes
computePOWHash :: ByteArrayAccess a => a -> POWHash #
Compute the hash digest of a block.
buildPOWHash :: ByteArrayAccess a => a -> Maybe POWHash #
Create POWHash from a sequence of bytes
