Thank you!!! 2018년 5월 15일 화요일 오후 8시 0분 53초 UTC+9, matan navon 님의 말: > > I guess you want to create a P2SH Wallet which is type of a multisig > wallet. > If P2SH is a term that is new to you you better read about it. > > What you have to do is first create a married wallet. you can read about > it here: > https://bitcoinj.github.io/working-with-the-wallet#marriedmulti-signature-wallets-and-pluggable-signers > . > > Then you need to sign your transaction inputs with the keys that linked to > the married wallet you can read about it here: > https://bitcoinj.github.io/working-with-contracts > > pay attention that in the example of the working-with-contracts page > they refer to methods that is used with a multisig wallet. if you want a > P2SH wallet you need the same methods only for a P2SH wallet. > > > > > > > > On Tue, May 15, 2018 at 6:31 AM, 지우중 <[email protected] <javascript:>> > wrote: > >> Yes how to create multisig??? >> >> 2018년 5월 15일 화요일 오전 3시 11분 5초 UTC+9, guillermo yanez 님의 말: >>> >>> Que es multisig ???? >>> >>> 2018-05-14 8:06 GMT-04:00 지우중 <[email protected]>: >>> >>>> I am making a bitcoin wallet using the bitcoinj library. >>>> >>>> >>>> My bitcoinj wallet code looks like below. >>>> >>>> >>>> How can I do multisig in this code? >>>> >>>> >>>> import com.google.common.collect.ImmutableList; >>>> import com.google.common.util.concurrent.FutureCallback; >>>> import com.google.common.util.concurrent.Futures; >>>> import com.google.common.util.concurrent.ListenableFuture; >>>> import org.bitcoinj.core.NetworkParameters; >>>> import org.bitcoinj.kits.WalletAppKit; >>>> import org.bitcoinj.params.TestNet3Params; >>>> import java.io.File; >>>> import java.io.IOException; >>>> import org.bitcoinj.core.*; >>>> import org.bitcoinj.script.Script; >>>> import org.bitcoinj.script.ScriptBuilder; >>>> import org.bitcoinj.wallet.SendRequest; >>>> import org.bitcoinj.wallet.Wallet; >>>> >>>> import java.util.Arrays; >>>> import java.util.List; >>>> import java.util.concurrent.ExecutionException; >>>> >>>> >>>> public class Main { >>>> >>>> >>>> public static void main(String[] args) throws IOException { >>>> >>>> >>>> >>>> NetworkParameters params = TestNet3Params.get(); >>>> >>>> WalletAppKit kit1 = new WalletAppKit(params, new File("."), >>>> "test1"); >>>> kit1.startAsync(); >>>> kit1.awaitRunning(); >>>> >>>> >>>> List<Address> list1 = kit1.wallet().getWatchedAddresses(); >>>> System.out.println("You have " + list1.size() + " addresses!"); >>>> >>>> for (Address a: list1) >>>> System.out.println("Test1 Address: "+a.toString()); >>>> >>>> >>>> String balance1 = kit1.wallet().getBalance().toFriendlyString(); >>>> System.out.println("Test1 Bitcoin Balance: " + balance1); >>>> >>>> System.out.println(kit1.wallet().getWalletTransactions()); >>>> >>>> >>>> >>>> >>>> } >>>> >>>> >>>> >>>> } >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "bitcoinj" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "bitcoinj" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
