Skip to content
BiglupPublic

About

Cometa.hs is a lightweight and high performance library designed to streamline transaction building and smart contract interactions on the Cardano blockchain i Haskell.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation


License Documentation Twitter Follow


Cometa.hs is a Haskell interface to cardano-c. It is in development and is not yet published on Hackage.

Hash a message

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)

License

Cometa.hs is licensed under the Apache License 2.0. See LICENSE.

About

Cometa.hs is a lightweight and high performance library designed to streamline transaction building and smart contract interactions on the Cardano blockchain i Haskell.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages