Copyright | 2018 Monadic GmbH |
---|---|
License | BSD3 |
Maintainer | kim@monadic.xyz, team@monadic.xyz |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
A mapping of multihash to CBOR.
Instead of an opaque, multihash-encoded blob, this provides a tagged CBOR
encoding where the hash algorithm used is a Word16
field containing the
multihash code for the algorithm, followed by the digest bytes.
Synopsis
- encode :: Multihashable a => Digest a -> Encoding
- decode :: forall s a. Multihashable a => Decoder s (Digest a)
- type Multihashable a = (HashAlgorithm a, FromCryptonite a)
Documentation
Re-exports
type Multihashable a = (HashAlgorithm a, FromCryptonite a) #