Bitcoin Forum
May 03, 2024, 08:56:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to test restore  (Read 753 times)
waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 10, 2013, 09:34:08 AM
 #1

How can I check that restoring from the seed would work, without disrupting my currently existing wallet? Assuming I only have one computer to work with (although of course I have USB drives available).
Sorry if it's a stupid question, but I couldn't find a direct reference to it anywhere.

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
1714726580
Hero Member
*
Offline Offline

Posts: 1714726580

View Profile Personal Message (Offline)

Ignore
1714726580
Reply with quote  #2

1714726580
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714726580
Hero Member
*
Offline Offline

Posts: 1714726580

View Profile Personal Message (Offline)

Ignore
1714726580
Reply with quote  #2

1714726580
Report to moderator
1714726580
Hero Member
*
Offline Offline

Posts: 1714726580

View Profile Personal Message (Offline)

Ignore
1714726580
Reply with quote  #2

1714726580
Report to moderator
1714726580
Hero Member
*
Offline Offline

Posts: 1714726580

View Profile Personal Message (Offline)

Ignore
1714726580
Reply with quote  #2

1714726580
Report to moderator
Tuxavant
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000

Bitcoin Mayor of Las Vegas


View Profile WWW
May 10, 2013, 01:57:06 PM
 #2

Overview:

sign a message with your existing copy of your wallet. keep this text file handy.
restore your wallet to a new wallet file.
using the restored wallet, verify the message signature.

If you're using linux, I can provide you a script.

Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
May 13, 2013, 10:32:03 AM
 #3

You can restore the same seed in a different wallet by using the -w flag. On linux: electrum -w ~/.electrum/newwallet.dat

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 14, 2013, 05:29:56 PM
 #4

Thanks for the suggestions. I will try it out tonight.

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 14, 2013, 05:56:21 PM
 #5

Finding it difficult..
In the GUI I can see a list of commands on the console (using help()), but I can't find any documentation on how to use those commands. So for example I see a command signmessage, but I have no idea what its arguments should be (apparently there should be 3).

Also I'm not sure how to get a command line version of Electrum to work on my Windows machine. If I cd to the electrum exe it just opens the GUI or fails silently when I try to pass it arguments.

Should I just go to the source on github to look for documentation? The main website seems to just have a few brief descriptions of certain actions.

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
Tuxavant
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000

Bitcoin Mayor of Las Vegas


View Profile WWW
May 14, 2013, 06:02:22 PM
 #6

I just recently updated the help output with more details on the usage. It has not yet been pushed to a new release, so you'll have to pull down the current master to make use of it.

waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 14, 2013, 06:07:02 PM
 #7

OK thanks. Just quick question though, what address should I use as the first argument to signmessage?

Edit: it's OK I figured out how sign and verify works by looking at the source Smiley

Now on to the next bit..

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
Tuxavant
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000

Bitcoin Mayor of Las Vegas


View Profile WWW
May 14, 2013, 06:08:26 PM
 #8

Code:
$ ./electrum help signmessage
Sign a message with a key
Syntax: signmessage <address> <message>
If you want to lead or end a message with spaces, or want double spaces inside the message make sure you quote the string. I.e. " Hello  This is a weird String "

waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 14, 2013, 06:28:44 PM
 #9

Right, thanks. In the console (the console inside the GUI, not the command line) I find the restore command doesn't work - it's not recognised even though it's listed under help().

I'm trying to create a new wallet from seed. I'll try the -w flag recommended above.

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
waxwing (OP)
Sr. Member
****
Offline Offline

Activity: 469
Merit: 253


View Profile
May 14, 2013, 06:34:43 PM
 #10

Yes, using electrum -w newwallet.dat worked well.
Thanks to both of you - I feel a bit safer and I also learned something Smiley

PGP fingerprint 2B6FC204D9BF332D062B 461A141001A1AF77F20B (use email to contact)
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!