Jump to content

Multisig - QT Wallet


buzzkillb
 Share

Recommended Posts

Example shows between a QT Wallet in Ubuntu and a QT Wallet in Windows and we are going to use a 1/2 multisig so you can easily test this yourself. What this means is both wallets will create the multisig address from the same addresses to sign, someone sends some D to that new lowercase d address, and then either wallet can sign and spend to wherever they want. This becomes more clear the first time you try this and see what's going on.

For Windows go to File -> Multisig

image.thumb.png.4abfb92d5bfa84794493477375791135.png 

What we want is to fill in an address from our own wallet, you can create a new address. This will automatically fill in the Public Key.

On your other wallet you want to create a new address as well and get the Public Key.

To get the public key in debug console type

validateaddress DFNyeYsVswPiZz6ud8utaCFrC3s6i9Dmtu

and you will see your pubkey like here

{
"isvalid" : true,
"address" : "DFNyeYsVswPiZz6ud8utaCFrC3s6i9Dmtu",
"ismine" : true,
"watchonly" : false,
"isscript" : false,
"pubkey" : "034d872b90fb12ed851a007430b47d02f70727058a2fcff70c3e8f517ce969c51f",
"iscompressed" : true,
"account" : "multisig-signer"
}

keep this private, but I assume you trust your 2nd party being able to sign off and spend your D.

Paste the pubkey into your Windows wallet into the Public Key and that address will pop up.

Then we want to select Required Signature 1/2 because we want to test how signing works.

Click Create Multisig address, this is your new address to send D to from somewhere, also find this address on a block explorer so you can quickly find the txid. I clicked Save redeem script and Add address to wallet. I don't see why you wouldn't do this.

Now do the same on your other wallet, I used Ubuntu in a VM. Notice the multisig address is the same address on both wallets. After you sent 0.01 D as a test to that lower case d address lets spend it. Now pick a wallet to sign from and click Spend Funds in the multisig box.

image.thumb.png.e4629d9e0c7427502dd39fe571f967a9.png

In here put the txid into the Transaction id box. This will pop up the outputs, select your output amount you sent into the lower case d address. After selecting that the redeemscript should show up. If this doesn't make sure you do the above create address on both wallets.

Now select a Pay To address, probably in your own wallet you are signing from because they all want the D. Subtract your output amount and the txfee. An easy way to do this is for a 0.01 output I typed into google 

0.01 - 0.00001 =

and it gave me the Amount to put into the Amount box. Click Create transaction, then click Sign Transaction, and then click Send transaction. You have signed and spent your first multisig address on Denarius.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...