Jump to content
Sign in to follow this  
buzzkillb

Multisig - QT Wallet

Recommended Posts

267

420 posts
24 BF$

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

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites
267

420 posts
24 BF$

The neat thing is you could send D into this same lower d address again, and use the same signers for another output. The QT makes this unbelievably easy to set this up compared to doing this using raw transactions from a command line.

  • Like 1

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...