Bitcoin Forum
November 18, 2024, 10:47:49 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Importing a transaction and signing it with an address in your Electrum wallet  (Read 1279 times)
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 27, 2015, 08:27:32 PM
 #1

I was wondering if it is possible to import a transaction that some one else created into your electrum wallet and then sign that transaction with a private key in your Electrum wallet?

I cannot find how to do this.
TheButterZone
Legendary
*
Offline Offline

Activity: 3080
Merit: 1032


RIP Mommy


View Profile WWW
April 28, 2015, 12:21:13 AM
 #2

https://electrum.orain.org/wiki/Cold_storage#Get_your_transaction_signed

Saying that you don't trust someone because of their behavior is completely valid.
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 28, 2015, 04:53:05 AM
 #3


The 'Sign' button does not appear when I load my unsigned transaction. Is this a bug in Electrum?
TheButterZone
Legendary
*
Offline Offline

Activity: 3080
Merit: 1032


RIP Mommy


View Profile WWW
April 28, 2015, 04:57:35 AM
 #4

Did the transaction someone else created have inputs that your private key can sign for?

Saying that you don't trust someone because of their behavior is completely valid.
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 28, 2015, 05:27:37 AM
 #5

How does Electrum do the matching, inside the input there is nothing inside of the Script field. Both addresses reside in the my Electrum wallet (I'm testing this out). I'm using Bitcore's library to construct the transaction with this piece of code:

var tx = new bitcore.Transaction().from(utxos).to(toAddress,amount).lockUntilDate(date).change(toAddress);

However the input has 0 chunks inside the Script field (which from my understanding needs to be filled in by the signatures of the transaction).
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 28, 2015, 05:34:22 AM
 #6

Here is a link to the exact Bitcore method I am calling

http://bitcore.io/api/transaction/transaction.html#Transaction#from
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
April 28, 2015, 06:18:54 AM
 #7


The 'Sign' button does not appear when I load my unsigned transaction. Is this a bug in Electrum?

could you post the unsigned transaction?

Electrum: the convenience of a web wallet, without the risks
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 28, 2015, 06:13:12 PM
 #8

Here is the raw hex

0100000001a6c9ed9fe554a3a6dd43a45b0326a3f35b3723c1a77461feaf306400d40e40f800000 00000ffffffff01f00d8700000000001976a914d5e06dde835a7428d80cd39e91f06350ca3291ad 88ac007c3d55
TheButterZone
Legendary
*
Offline Offline

Activity: 3080
Merit: 1032


RIP Mommy


View Profile WWW
April 28, 2015, 06:59:35 PM
 #9

decoded:

Code:
{
   "lock_time":1430092800,
   "size":85,
   "inputs":[
      {
         "prev_out":{
            "index":0,
            "hash":"f8400ed4006430affe6174a7c123375bf3a326035ba443dda6a354e59fedc9a6"
         },
         "script":""
      }
   ],
   "version":1,
   "vin_sz":1,
   "hash":"b19fe7e32240ddf6dc8bc09421e0578f50f4632448a6a8c0c9b569a57f5df29d",
   "vout_sz":1,
   "out":[
      {
         "script_string":"OP_DUP OP_HASH160 d5e06dde835a7428d80cd39e91f06350ca3291ad OP_EQUALVERIFY OP_CHECKSIG",
         "address":"1LVsnUQHYHoNjfCLY1mjmmFPQSrV1NJTX2",
         "value":8850928,
         "script":"76a914d5e06dde835a7428d80cd39e91f06350ca3291ad88ac"
      }
   ]
}

Saying that you don't trust someone because of their behavior is completely valid.
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
April 29, 2015, 07:37:30 PM
 #10

Bump, am I using the electrum client incorrectly? Is there a bug in Electrum?
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
May 02, 2015, 10:12:21 AM
 #11

Bump, am I using the electrum client incorrectly? Is there a bug in Electrum?

I confirm it is a bug.

Electrum: the convenience of a web wallet, without the risks
Chris_Stewart_5 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
May 13, 2015, 03:06:51 AM
 #12

Is there a timeline for when this gets fixed? Thanks for checking it out ThomasV.
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
August 07, 2015, 03:13:58 PM
 #13

fixed in https://github.com/spesmilo/electrum/commit/6b8725679539a050d718cf7a8ace26607002fff8

Electrum: the convenience of a web wallet, without the risks
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!