| 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 | |
| Pretty Validator | |
| Serialise Validator | |
| type Rep Validator | |
Defined in Plutus.V1.Ledger.Scripts | |
data ValidatorHash Source #
Script runtime representation of a Digest SHA256.
Instances
data MintingPolicy Source #
MintingPolicy is a wrapper around Scripts which are used as validators for minting constraints.
Instances
data MintingPolicyHash Source #
Script runtime representation of a Digest SHA256.
Instances
data StakeValidator Source #
StakeValidator is a wrapper around Scripts which are used as validators for withdrawals and stake address certificates.
Instances
data StakeValidatorHash Source #
Script runtime representation of a Digest SHA256.
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]