Cometa.hs is a Haskell interface to cardano-c. It is in development and is not yet published on Hackage.
- Official website
- Installation and local builds
- Documentation
- Haddock API reference — CI downloads and local builds.
- Contributing
Build from source with GHC, Cabal, and the pinned cardano-c dependency; see installation. Compute a 32-byte digest:
import qualified Cometa.Crypto.Blake2b as Blake2b
import qualified Data.ByteString.Char8 as ByteString
import qualified Data.Text.IO as Text
import System.Exit (die)
main :: IO ()
main = do
result <- Blake2b.compute 32 (ByteString.pack "Hello, Cardano!")
case result of
Left failure -> die (show failure)
Right digest -> Text.putStrLn (Blake2b.toHex digest)Cometa.hs is licensed under the Apache License 2.0. See LICENSE.