cometa-0.1.0.0: Idiomatic Haskell bindings to cardano-c
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cometa.Diagnostics

Description

Human-readable category labels for logs and error messages. Unlike Show, these functions describe only the category and never include hashes, keys or payloads. They use the English cardano-c diagnostic vocabulary, not CIP-116 JSON tags. Use the domain encoders for machine interchange.

Synopsis

Documentation

certificateKind :: Certificate -> Text Source #

Certificate category, for example "Certificate Type: Stake Registration". Field contents and registration/deposit state do not affect the label.

nativeScriptKind :: NativeScript -> Text Source #

Native script condition, for example "Native Script Type: Require All Of". Does not evaluate the script or expose any child condition or credential.

vote :: Vote -> Text Source #

Voting choice as "Vote: No", "Vote: Yes" or "Vote: Abstain".

voterKind :: Voter -> Text Source #

Voting authority kind, distinguishing committee and DRep key/script credentials from stake pool keys. The credential hash is never included.