Bitcoin Forum
June 20, 2018, 12:54:30 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [Bug?] 2-of-3 multisig address behaves as 3-of-3  (Read 556 times)
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
July 07, 2012, 03:55:15 PM
 #1

Hello everyone!

Since I am still locked at the newbies section, that's where I post this (suspected) bug.
I have been trying the multisig BIP 16 using the latest 0.6.3 client on Ubuntu 64 bit.
I was trying to create 2 from 3 sig address, but it behaves like 3 out of 3 sig address.

$ bitcoind addmultisigaddress 2 '["04d4f81d9c28413d3019a202e63a828c884dcaffa094a9e66fb8dec623a1445d3fe099ca7c3087c 13ac6b62ad7f547eff25df552e94e12f6fbfc4535c1c2b4b78a","0420c41cb722082943e7da602557b2e28a84ebad90bdfbae8499d9ae77a3752570d711649b2e54f 87b9064b7dc72f5f96203a782e82cfc08a5ac576d933ca92de1","04eb3fbbd85992aeb3ef8d752f733661349fcbfce2683200b90009c8b4e713ffd93da9fc7f840e2 2cca18ed6d66ed51cdca729586f0c5b17f9f4f3c493ba7cdab7"]'
3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
$
$ bitcoind validateaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
{
"isvalid" : true,
"address" : "3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4",
"isscript" : true,
"ismine" : false,
"script" : "multisig",
"addresses" : [
"12tbLXQkERTB6Sq99EHptWuWJJgXqkZb4z",
"18pu5kF3kf9N8Ft5xuTGD2v3EdB9Hahwgh",
"19ARwmH1H1QMFSjmB14fyA4QrZigiM8sNV"
],
"sigsrequired" : 2,
"account" : ""
}

I have sent 0.1 BTC to the 3G... address directly from instawallet: 3dd40692d5594ee1302c3a6fce4c9086af3324dfadabf97150c8c5ea7ff78f1a
as well as the following:
$ bitcoind sendtoaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4 0.05
6c2f5a608fb3ef3e64e728ad430f60bbd6857de662b152dc2ef55eb25fdf2e93

I have made a backup of wallet.dat before importing.
Then I imported the keys #1, #2, #3
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind getbalance
0.36700000
Also in a different order (#3, #2, #1) the result is the same:
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.36700000

And also when I try to import #1, #3, #2  – same.

Did I miss something?
If there is a need, I could give the private keys (well, at least 2 of them, and to someone I trust ;-))

Grazcoin.

The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1529456070
Hero Member
*
Offline Offline

Posts: 1529456070

View Profile Personal Message (Offline)

Ignore
1529456070
Reply with quote  #2

1529456070
Report to moderator
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1232
Merit: 1066


Will read PM's. Have more time lately


View Profile
July 07, 2012, 04:13:54 PM
 #2

Whitelisted. Please post at the correct thread.

My BTC Tip Jar: 1Pgvfy19uwtYe5o9dg3zZsAjgCPt3XZqz9 , GPG ID: B3AAEEB0 ,OTC ID: johnthedong
Escrow service is available on a case by case basis! (PM Me to verify I'm the escrow!)

Luke-Jr
Legendary
*
Offline Offline

Activity: 2366
Merit: 1001



View Profile
July 08, 2012, 01:07:10 AM
 #3

Bugs should be reported on GitHub, but I don't think this is a bug. Bitcoin-Qt and bitcoind don't support N-of-M multisig transactions yet except for the one case where 1) it has all the keys; 2) it is explicitly told about the multisig address before the coins are sent (-rescan probably works too).

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!