Maintainer | [email protected] |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A basic N of M multisignature validation function.
Synopsis
- validatedByMultisig :: forall (s :: S). MultiSig -> Term s (PMultiSigContext :--> PBool)
- pvalidatedByMultisig :: forall (s :: S). Term s (PMultiSig :--> (PMultiSigContext :--> PBool))
- newtype PMultiSig (s :: S) = PMultiSig {
- getMultiSig :: Term s (PDataRecord '["keys" := PBuiltinList (PAsData PPubKeyHash), "minSigs" := PInteger])
- data MultiSig
- mkMultiSig :: [PubKeyHash] -> Integer -> Maybe MultiSig
- data PMultiSigContext (s :: S)
- pmultiSigContext :: forall r (s :: S). HasField "signatories" r (Term s (PBuiltinList (PAsData PPubKeyHash))) => r -> Term s PMultiSigContext
Documentation
validatedByMultisig :: forall (s :: S). MultiSig -> Term s (PMultiSigContext :--> PBool) Source #
Check if a Haskell-level MultiSig
signs this transaction.
Since: 3.2.0
pvalidatedByMultisig :: forall (s :: S). Term s (PMultiSig :--> (PMultiSigContext :--> PBool)) Source #
Check if a Plutarch-level MultiSig signs this transaction.
Since: 3.2.0
newtype PMultiSig (s :: S) Source #
Plutarch-level MultiSig
Since: 0.1.0
PMultiSig | |
|
Instances
A MultiSig
represents a proof that a particular set of signatures
are present on a transaction.
Since: 3.8.0
Instances
mkMultiSig :: [PubKeyHash] -> Integer -> Maybe MultiSig Source #
data PMultiSigContext (s :: S) Source #
Context required in order to check MultiSig
.
Should be constructed with pmultiSigContext
.
Since: 3.8.0
Instances
pmultiSigContext :: forall r (s :: S). HasField "signatories" r (Term s (PBuiltinList (PAsData PPubKeyHash))) => r -> Term s PMultiSigContext Source #
Construct PMultiSigContext
providing the signatories
field,
which typically comes from PTxInfo
.
Since: 3.2.0