Return an M-of-N [Multisig]module:multisig.MULTISIG
object by specifying the total number of signers (M) and the public
keys (N total).
Important: Public keys are used in the order passed. For sortedmulti
compatibility (required by most hardware wallets and standard in descriptors),
sort public keys lexicographically before calling this function:
Parameters
network: any
addressType: any
requiredSigners: any
...publicKeys: any[]
Returns null|Payment
Example
constsortedPubkeys = [...publicKeys].sort(); constmultisig = generateMultisigFromPublicKeys(network, addressType, m, ...sortedPubkeys);
Return an M-of-N [
Multisig]module:multisig.MULTISIG object by specifying the total number of signers (M) and the public keys (N total).Important: Public keys are used in the order passed. For
sortedmulticompatibility (required by most hardware wallets and standard in descriptors), sort public keys lexicographically before calling this function: