Safe Haskell | None |
---|---|
Language | Haskell2010 |
Minting policy script for credential tokens.
Synopsis
- newtype CredentialAuthority = CredentialAuthority {
- unCredentialAuthority :: PaymentPubKeyHash
- data Credential = Credential {
- credAuthority :: CredentialAuthority
- credName :: TokenName
- 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
CredentialAuthority | |
|
Instances
data Credential Source #
Named credential issued by a credential authority
Credential | |
|
Instances
policy :: CredentialAuthority -> MintingPolicy Source #
token :: Credential -> Value Source #
A single credential of the given name
tokens :: Credential -> Integer -> Value Source #
A number of credentials of the given name
tokenAccount :: Credential -> Account Source #
The Account
that can be spent by presenting the credential