| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plutus.Script.Utils.V1.Scripts
Contents
Description
This module contains functions related to the computation of script hashes for PlutusV1.
Synopsis
- data Validator
- data ValidatorHash
- data MintingPolicy
- data MintingPolicyHash
- data StakeValidator
- data StakeValidatorHash
- fromCardanoHash :: ScriptHash -> ScriptHash
- validatorHash :: Validator -> ValidatorHash
- mintingPolicyHash :: MintingPolicy -> MintingPolicyHash
- stakeValidatorHash :: StakeValidator -> StakeValidatorHash
- scriptHash :: Script -> ScriptHash
- scriptCurrencySymbol :: MintingPolicy -> CurrencySymbol
- toCardanoApiScript :: Script -> Script PlutusScriptV1
Script hashes
Instances
| Eq Validator | |
| Ord Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
| Show Validator | |
| Generic Validator | |
| NFData Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
| Serialise Validator | |
Defined in Plutus.V1.Ledger.Scripts Methods encode :: Validator -> Encoding encodeList :: [Validator] -> Encoding decodeList :: Decoder s [Validator] | |
| Pretty Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
| type Rep Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
data ValidatorHash #
Instances
data MintingPolicy #
Instances
data MintingPolicyHash #
Instances
data StakeValidator #
Instances
data StakeValidatorHash #
Instances
fromCardanoHash :: ScriptHash -> ScriptHash Source #
Transform a Cardano Script hash in a Plutus Script hash
validatorHash :: Validator -> ValidatorHash Source #
Hash a Validator script.
mintingPolicyHash :: MintingPolicy -> MintingPolicyHash Source #
Hash a MintingPolicy script.
stakeValidatorHash :: StakeValidator -> StakeValidatorHash Source #
Hash a StakeValidator script.
scriptHash :: Script -> ScriptHash Source #
Hash a Script
Script utilities
scriptCurrencySymbol :: MintingPolicy -> CurrencySymbol Source #
The CurrencySymbol of a MintingPolicy.
toCardanoApiScript :: Script -> Script PlutusScriptV1 Source #
Convert a Script to a 'cardano-api' script.
For why we depend on `cardano-api`, see note [Hash computation of datums, redeemers and scripts]