cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Skeleton.Certificate

Description

This module exposes the certificate constructs used in a TxSkel and their associated utilities. To emit certificates in a skeleton, the usual way is to invoke txSkelCertificates = [pubKeyCertificate pk action, scriptCertificate script redeemer action ...]

Synopsis

Data types

data CertificateAction :: UserKind -> Type where Source #

The depiction of the possible actions in a certificate. Each actions exposes, in its types, the possible owners it can have.

data TxSkelCertificate where Source #

Certificates used in TxSkel. The types ensure that each certificate action is associated with a proper owner.

Constructors

TxSkelCertificate 

Fields

Optics

Smart constructors

pubKeyCertificate :: (ToPubKeyHash pkh, Typeable pkh, Typeable a, a '[IsPubKey, IsEither]) => pkh -> CertificateAction a -> TxSkelCertificate Source #

Smart constructor for a pubkey certificate

scriptCertificate :: (ToVScript script, Typeable script, RedeemerConstrs red) => script -> red -> CertificateAction IsEither -> TxSkelCertificate Source #

Smart constructor for a script certificate