Bitcoin Forum
November 17, 2017, 11:54:44 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Help me make a 2-2 wallet please  (Read 329 times)
agorism
Jr. Member
*
Offline Offline

Activity: 45


View Profile
November 23, 2013, 05:35:28 AM
 #1

I can get money into the 2-party address, I just can't get it out.
(using python with jsonrpc library.)

I am trying to follow the example from: https://people.xiph.org/~greg/escrowexample.txt

I was able to create this address using public keys on different computers. Since both computers made the same address, I think that I created the address correctly:
33yXvx5rkWv5k8jUsDhXLCB6BZZPc5kjuC

Next I sent 0.0003 bitcoin to that address, you can see on blockchain.info that this worked: https://blockchain.info/address/33yXvx5rkWv5k8jUsDhXLCB6BZZPc5kjuC

Sending the 0.0003 bitcoin resulted in this txid: 437669db091518a486fda3c9e3d13cee61931a83676eb675b89e9ffe100ae743

running getrawtransaction(437669db091518a486fda3c9e3d13cee61931a83676eb675b89e9ffe100ae743) returns:
{'blockhash': '00000000000000040cb46e77fe6d9397a0d871c7103cd58e9fd41ec7082bcc07', 'vout': [{'scriptPubKey': {'reqSigs': 1, 'hex': '76a91480030587d5eaedfa3b4336aeeefb460c5c2f4cbd88ac', 'addresses': ['1Cfs7Vwgyhk5pKM3YZZDLKpFjNvR7zxDUx'], 'asm': 'OP_DUP OP_HASH160 80030587d5eaedfa3b4336aeeefb460c5c2f4cbd OP_EQUALVERIFY OP_CHECKSIG', 'type': 'pubkeyhash'}, 'value': 0.003, 'n': 0}, {'scriptPubKey': {'reqSigs': 1, 'hex': 'a914190ff49ee63c2d7083c54be9320844acb12aac7687', 'addresses': ['33yXvx5rkWv5k8jUsDhXLCB6BZZPc5kjuC'], 'asm': 'OP_HASH160 190ff49ee63c2d7083c54be9320844acb12aac76 OP_EQUAL', 'type': 'scripthash'}, 'value': 0.0003, 'n': 1}], 'hex': '0100000001f0aabf4e127bf2bd558963b7a468ec7c251d8ba677156246e36ed06c2b5cf06701000 0006b483045022100edb6ab0a663e1f425cbd4f687dff5483c9063f2db8099097a4c06cd15fbd88 35022036af1de0defd7c069e862d584c10e296872466e459a05b46edc775870226bf2801210323b bd5c98ef8ffc67dbb106e750aba1ec89fbe6ee77985c01383d76f48bcd751ffffffff02e0930400 000000001976a91480030587d5eaedfa3b4336aeeefb460c5c2f4cbd88ac307500000000000017a 914190ff49ee63c2d7083c54be9320844acb12aac768700000000', 'vin': [{'sequence': 4294967295, 'scriptSig': {'hex': '483045022100edb6ab0a663e1f425cbd4f687dff5483c9063f2db8099097a4c06cd15fbd8835022 036af1de0defd7c069e862d584c10e296872466e459a05b46edc775870226bf2801210323bbd5c9 8ef8ffc67dbb106e750aba1ec89fbe6ee77985c01383d76f48bcd751', 'asm': '3045022100edb6ab0a663e1f425cbd4f687dff5483c9063f2db8099097a4c06cd15fbd883502203 6af1de0defd7c069e862d584c10e296872466e459a05b46edc775870226bf2801 0323bbd5c98ef8ffc67dbb106e750aba1ec89fbe6ee77985c01383d76f48bcd751'}, 'vout': 1, 'txid': '67f05c2b6cd06ee346621577a68b1d257cec68a4b7638955bdf27b124ebfaaf0'}], 'txid': '437669db091518a486fda3c9e3d13cee61931a83676eb675b89e9ffe100ae743', 'blocktime': 1385083480, 'version': 1, 'confirmations': 206, 'time': 1385083480, 'locktime': 0}


Now I am trying to create a transaction which sends this money back to my normal 1-signature address: 1AobV4JsdLtgvSUPRfVnYtmLM7FmZjA8wo

createrawtransaction [{'vout': 1, 'txid': '437669db091518a486fda3c9e3d13cee61931a83676eb675b89e9ffe100ae743'}]  {'1AobV4JsdLtgvSUPRfVnYtmLM7FmZjA8wo': 0.0001}

The resulting raw transaction looks like this in hex form:
010000000143e70a10fe9f9eb875b66e67831a9361ee3cd1e3c9a3fd86a4181509db69764301000 00000ffffffff0110270000000000001976a9146b890d47a5e0cfa86717e6e92f75e2a40ddbcbed 88ac00000000

It looks like this in JSON form:
{'locktime': 0, 'version': 1, 'vin': [{'sequence': 4294967295, 'scriptSig': {'hex': '', 'asm': ''}, 'vout': 1, 'txid': '437669db091518a486fda3c9e3d13cee61931a83676eb675b89e9ffe100ae743'}], 'vout': [{'scriptPubKey': {'reqSigs': 1, 'hex': '76a9146b890d47a5e0cfa86717e6e92f75e2a40ddbcbed88ac', 'addresses': ['1AobV4JsdLtgvSUPRfVnYtmLM7FmZjA8wo'], 'asm': 'OP_DUP OP_HASH160 6b890d47a5e0cfa86717e6e92f75e2a40ddbcbed OP_EQUALVERIFY OP_CHECKSIG', 'type': 'pubkeyhash'}, 'value': 0.0001, 'n': 0}], 'txid': 'ccd92e8f34f1a1d3e0057cac0fffea544457c4ee509f35257814976ae6aa769a'}

Notice that in JSON form, ["vin"][0]['scriptSig']['hex'] is an empty string. Is that the problem?

I am unable to sign this transaction with either computer. When I try signing, it just spits the same hex back at me:
010000000143e70a10fe9f9eb875b66e67831a9361ee3cd1e3c9a3fd86a4181509db69764301000 00000ffffffff0110270000000000001976a9146b890d47a5e0cfa86717e6e92f75e2a40ddbcbed 88ac00000000

Any and all help is greatly appreciated Smiley
1510962884
Hero Member
*
Offline Offline

Posts: 1510962884

View Profile Personal Message (Offline)

Ignore
1510962884
Reply with quote  #2

1510962884
Report to moderator
1510962884
Hero Member
*
Offline Offline

Posts: 1510962884

View Profile Personal Message (Offline)

Ignore
1510962884
Reply with quote  #2

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

Posts: 1510962884

View Profile Personal Message (Offline)

Ignore
1510962884
Reply with quote  #2

1510962884
Report to moderator
1510962884
Hero Member
*
Offline Offline

Posts: 1510962884

View Profile Personal Message (Offline)

Ignore
1510962884
Reply with quote  #2

1510962884
Report to moderator
agorism
Jr. Member
*
Offline Offline

Activity: 45


View Profile
November 23, 2013, 11:01:08 PM
 #2

I was able to solve this problem all on my own! Smiley

One of the two computers I was making the wallet with had not yet downloaded the blockchain.

Noob mistake.
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!