Safe Haskell | None |
---|---|
Language | Haskell2010 |
Implements an n-out-of-m multisig contract.
Synopsis
- data MultiSig = MultiSig {
- signatories :: [PaymentPubKeyHash]
- minNumSignatures :: Integer
- type MultiSigSchema = Endpoint "lock" (MultiSig, Value) .\/ Endpoint "unlock" (MultiSig, [PaymentPubKeyHash])
- contract :: AsContractError e => Contract () MultiSigSchema e ()
- lock :: AsContractError e => Promise () MultiSigSchema e ()
- typedValidator :: MultiSig -> TypedValidator MultiSig
- validate :: MultiSig -> () -> () -> ScriptContext -> Bool
Documentation
MultiSig | |
|
Instances
type MultiSigSchema = Endpoint "lock" (MultiSig, Value) .\/ Endpoint "unlock" (MultiSig, [PaymentPubKeyHash]) Source #
contract :: AsContractError e => Contract () MultiSigSchema e () Source #
lock :: AsContractError e => Promise () MultiSigSchema e () Source #
Lock some funds in a MultiSig
contract.
typedValidator :: MultiSig -> TypedValidator MultiSig Source #