| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plutus.Contracts.Prism.Credential
Description
Minting policy script for credential tokens.
Synopsis
- newtype CredentialAuthority = CredentialAuthority {}
- data Credential = Credential {}
- policy :: CredentialAuthority -> MintingPolicy
- token :: Credential -> Value
- tokens :: Credential -> Integer -> Value
- tokenAccount :: Credential -> Account
Documentation
newtype CredentialAuthority Source #
Entity that is authorised to mint credential tokens
Constructors
| CredentialAuthority | |
Fields | |
Instances
data Credential Source #
Named credential issued by a credential authority
Constructors
| Credential | |
Fields | |
Instances
token :: Credential -> Value Source #
A single credential of the given name
tokenAccount :: Credential -> Account Source #
The Account that can be spent by presenting the credential