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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to