Bitcoin Forum
June 19, 2025, 12:00:34 PM *
News: Pizza day contest voting
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Multisignature  (Read 903 times)
Blackwave (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 21, 2014, 09:09:59 AM
 #1

Hi guys .
I'm trying to integrate multisignature on my site , but I encountered a problem.

What am I doing ?

I create multisig address:
Code:
bitcoind createmultisig 2 '["pubkey1", "pubkey2", "pubkey3"]'

Then I transfer funds generated address. It begins with the number 3

Next, I create a raw transaction:
Code:
bitcoind createrawtransaction '[{"txid": " transfer transaction id here ", "vout": 0} ]' ' { ' address for withdrawal " : 0.1 } '

Then I try to sign the transaction :
Code:
bitcoind signrawtransaction <createrawtranscation result> '[{"txid": " transfer transaction id here ", "vout": 0 , "scriptPubKey": " I ​​took out decoderawtransaction"}]' '["privkey1", "privkey2"]'
But the answer comes - complete: False

What should I do ?

In this case, a bunch of keys (private / public ) is taken from one wallet.


And one more question . If I use the public keys of different wallets, may I sign a transaction private keys on a wallet? I need to import private keys ? But where?

Sorry for my bad English.
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 295


View Profile
February 06, 2014, 03:02:27 PM
 #2

You need to call addmultisigaddress() with n, and an array containing the public keys. This adds it to the wallet, which is needed when signing the transactions.

If you're giving transactions to users to sign they'll need to do this before they can sign. Have a look at https://coinb.in/multisig, it'll help you a lot when signing.

Bitwasp Developer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!