public function testP2SHMultisig()
 {
     $j = 0;
     for ($i = 0; $i < 5; $i++) {
         $n = rand(1, 20);
         $m = rand(1, $n);
         $k = [];
         $pk_list = [];
         for ($i = 0; $i < $n; $i++) {
             $k[$i] = BitcoinLib::get_new_key_set(null, (bool) ($j++ % 2));
             $pk_list[] = $k[$i]['pubKey'];
         }
         $multisig = RawTransaction::create_multisig($m, $pk_list);
         $real = $this->client->createmultisig($m, $pk_list);
         $this->assertEquals($real['address'], $multisig['address']);
         $this->assertEquals($real['redeemScript'], $multisig['redeemScript']);
     }
 }