cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Skeleton.Signatory

Description

This module exposes the notion of signatory for out TxSkel

Synopsis

Data types

data TxSkelSignatory where Source #

Signatories in skeletons

Constructors

TxSkelSignatory 

Fields

Optics

txSkelSignatoryMPrivateKeyL :: Lens' TxSkelSignatory (Maybe XPrv) Source #

A lens focusing on the option private key for this signatory

txSkelSignatoryPrivateKeyAT :: AffineTraversal' TxSkelSignatory XPrv Source #

An affine traversal focusing on the existing private key for this signatory

txSkelSignatoryPubKeyHashL :: Lens' TxSkelSignatory PubKeyHash Source #

A lens focusing on the public key hash of this signatory

Smart constructors

signatoryWallet :: Wallet -> TxSkelSignatory Source #

Builds a signatory from a wallet, which will be able to actually sign the transaction.

signatoryPubKey :: (ToPubKeyHash pkh, Show pkh) => pkh -> TxSkelSignatory Source #

Builds a signatory from a pubkey, which will no be able to actually sign the transaction, but will act as a requirement.

txSkelSignatoriesFromList :: [Wallet] -> [TxSkelSignatory] Source #

Builds a list of signatories from a list of wallets