nl_tokens: / * Given a list of public keys create a M - of - N redeemscript
pl_tokens: function mkMultiSigRedeemScript ( pubKeys , M , N ) { // https://github.com/ZencashOfficial/zen/blob/b7a7c4c4199f5e9f49868631fe5f2f6de6ba4f9a/src/script/standard.cpp#L411 if ( M > N && M <= 1 ) throw new Error ( 'Invalid Multi Sig Type' ) ; var OP_1 = Buffer . from ( zopcodes . OP_1 , 'hex' ) ; var OP_START = ( OP_1 . readInt8 ( 0 ) + ( M - 1 ) ) . toString ( 16 ) ; var OP_END = ( OP_1 . readInt8 ( 0 ) + ( N - 1 ) ) . toString ( 16 ) ; return OP_START + pubKeys . map ( function ( x ) { return zbufferutils . getPushDataLength ( x ) + x ; } ) . <mask> ( '' ) + OP_END + zopcodes . OP_CHECKMULTISIG ; }