Module

Cardano.Types.ScriptHash

#fromBech32

fromBech32 :: Bech32String -> Maybe ScriptHash

Decodes a script hash from its Bech32 representation

#toBech32Unsafe

toBech32Unsafe :: Partial => String -> ScriptHash -> Bech32String

Convert scriptHash to Bech32 representation with given prefix. Will fail if prefix is invalid (length, mixed-case, etc) More on prefixes: https://cips.cardano.org/cips/cip5

Modules