createMultiSigMofN

fun createMultiSigMofN(m: Int, pubkeys: List<PublicKey>): List<ScriptElt>

Creates a m-of-n multisig script.

Return

a multisig redeem script

Parameters

m

is the number of required signatures

pubkeys

are the public keys signatures will be checked against (there should be at least as many public keys as required signatures)