예제 #1
0
 public static bool CreateMultiSig()
 {
     Console.WriteLine("Starting CreateMultiSig tests...");
     // Note that you can use pubKeys or addresses.
     string[] pubKeys3 = { "mpNT4J4PEpTFab68QvH7tMQ8hYS4JhunFK",
                           "n3ZGGJ1Mhqq39LUaP2umiqnZu7GVpqVh1r",
                           "mtMS6D2y4wbEiKZa6qJuXbibnQ26HdtY7J" };
     Bitcoind.CreateMultiSigResult multiSig1 = Bitcoind.CreateMultiSig(2, pubKeys3);
     if (multiSig1.address.Length != 35)
     {
         return(false);
     }
     if (multiSig1.redeemScript.Length < 40)
     {
         return(false);
     }
     Bitcoind.CreateMultiSigResult multiSig2 = Bitcoind.CreateMultiSig(3, pubKeys3);
     if (multiSig2.address.Length != 35)
     {
         return(false);
     }
     if (multiSig2.redeemScript.Length < 40)
     {
         return(false);
     }
     return(true);
 }