Bitcoin Forum
May 28, 2024, 11:16:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Offline signing and change addresses  (Read 691 times)
Sauderite (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 09, 2015, 06:23:45 AM
 #1

Hello all,
I am working on a secure way of storing some bitcoins with electrum though I do spend them from time to time. My question is on change addresses and in particular how one can verify them on the signing machine.

My setup so far is two electrum machines. A watch-only wallet connected to the net (A) and the machine with the full wallet that has never been connected to the net (B). On machine A, I do my electrum mktx, move the file over to B and verify the file using electrum decoderawtransaction. Sign the hex and move the signature back to A for sending to the network. In analyzing possible methods of attack, one thing an attacker could do if A were hacked is modify the electrum on A to send the change from a transaction to an address he controls. Since change addresses are unique per transaction, I can't verify them obviously with a decoderawtransaction. I see one address in the outputs I recognize and one I do not which I assume to be change. With a sendmany, I see several I recognize and one change address unless I have spent all of the inputs.

So, how do folks here verify the change address does in fact belong to the sending wallet? If the solution is not obvious, I wonder how the hardware signing devices are doing this...
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
January 09, 2015, 09:38:03 AM
 #2

sign.

verify on online pc before sending.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004


Core dev leaves me neg feedback #abuse #political


View Profile
January 10, 2015, 06:24:44 AM
 #3

you should see the address in your list of change addresses.
if you dont see it, set the gap limit higher.

dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
January 10, 2015, 12:59:41 PM
 #4

you should see the address in your list of change addresses.
if you dont see it, set the gap limit higher.

Dear OP:

This quote has your solution.

Go into console tab > type the following to generate more addresses without a connection.

Code:
>> wallet.storage.put('gap_limit', 50)

Then type this to generate more change addresses.

Code:
>> wallet.gap_limit_for_change = 50

If you computer is slow, 50 addresses might take a while to generate. maybe just 10 or something.

Once you input the above two commands... it might not show up on the GUI... if it's not showing up:

Click File > Open Wallet and select the wallet you currently have open and click "open" (this forces a reloading of addresses from the file that will refresh the UI with your new addresses.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Sauderite (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 11, 2015, 07:39:09 PM
 #5

Hi, this is definitely the answer. Thank you for that.
Entering those commands doesn't seem to generate new change addresses on a BIP32 wallet (seed v11) I even tried to call wallet.synchronize() though that may need the network. I am trying to figure out what to execute to get electrum to generate new BIP32 change addresses while offline.
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!