Bitcoin Forum
November 07, 2024, 10:57:41 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
  Print  
Author Topic: Pywallet 2.2: manage your wallet [Update required]  (Read 208210 times)
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 06, 2014, 06:16:19 PM
 #441

I'm glad it worked
Actually I should make a message about that

Tell me how it goes Smiley

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
September 06, 2014, 08:02:25 PM
 #442

hello, I have a problem with a wallet deleted by mistake.
I recovered with recuva but after copying it to a flash drive formatted and after applying the pywallet says " 0 wallets recovered , 0 recovered private keys" so I assume that this wallet is totally corrupt.
Now I installed windows7 on a new hard disk (installed python27, pywallet, setuptools 4.1b1, bsbbd 3-6.0.1, pycrypto2.6, Twisted 14.0.0, python ecdsa) and the old record is not system disk. Now I'm trying this:
... <clip> ...

Now seems like a good time to bug you (jackjack I mean, not tevayo) to consider this pull request. With PyCrypto installed, I don't think Pywallet will create a usable wallet.dat file without this patch...
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 06, 2014, 11:36:56 PM
 #443

I rarely look at my github account and when I do it's in a hurry.
Thanks a lot for bringing that to my attention. I'll apply it by Monday.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 07, 2014, 07:35:23 PM
 #444

I'm glad it worked
Actually I should make a message about that

Tell me how it goes Smiley

Hi jack,
recover after running the 2728 I got that overturned privatekeys a txt file.
privatekeys one of those 2728 matches the address to which I sent the coins, but can not get the client-QT import.

It gives me an error message: "invalid private key (code -5), to make sure it is not that the private key is incorrect I have tried many of the other import privatekeys 2728 with the same error.

I write the syntax in the client console-QT is importprivkey xxxxxxxxxxxxxxxxxxxxxxxx

For that matter please tell me if the PrivateKey have to enter with or without quotation marks (of course I've tried every possible way, but it'll be safe and next time).

I have also tried to import them pywallet:
pywallet \ pywallet.py --datadir c: \ users \ jesus \ appdata \ roaming \ whitecoin --namecoin importprivkey xxxxxxxxxxxxxxxxxxxxxxxxxxxx
It gives me the following error: 'ecdsa' package is not installed
I have reinstalled python, pycrypto, bsddb, zope, twisted and finally setuptools4.1

Not know what I'm doing wrong, I really appreciate your help.
greetings
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 07, 2014, 09:52:08 PM
 #445

Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 07, 2014, 11:54:40 PM
Last edit: September 08, 2014, 01:39:35 AM by tevayo
 #446

Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

As you indicated me I made a dumpprivkey created and removed for the occasion wallet and this is what it returns me:

WnPrHA434nWat8CL131TTsZ3w2GYXm15ConQfcMjpNg2zwiG2kJB

I have taken other privatekeys and let you know that all start with W

It does not look anything like the PrivateKey to recover remanded me, 52 characters instead of 64 characters.

Let me know if you can do something about it.
greetings
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 08, 2014, 08:45:23 AM
 #447

Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

As you indicated me I made a dumpprivkey created and removed for the occasion wallet and this is what it returns me:

WnPrHA434nWat8CL131TTsZ3w2GYXm15ConQfcMjpNg2zwiG2kJB

I have taken other privatekeys and let you know that all start with W

It does not look anything like the PrivateKey to recover remanded me, 52 characters instead of 64 characters.

Let me know if you can do something about it.
greetings

Great!

I changed pywallet a bit to make a script for you
I just added those lines (do a diff before running it if you want):
Code:
	if len(sys.argv[1])==64:
print EncodeBase58Check(chr(201)+(sys.argv[1]).decode('hex')+'\x01')
else:
print 'bad private key length (%d)'%len(sys.argv[1])
exit()
The result is here: http://pastebin.com/raw.php?i=VYJkFfMc
Just save it to privkey.py then
Code:
python privkey.py 2a5b4c4e1d5f...(64 hexadecimal characters)

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 08, 2014, 02:02:54 PM
 #448

hello, I have a problem with a wallet deleted by mistake.
I recovered with recuva but after copying it to a flash drive formatted and after applying the pywallet says " 0 wallets recovered , 0 recovered private keys" so I assume that this wallet is totally corrupt.
Now I installed windows7 on a new hard disk (installed python27, pywallet, setuptools 4.1b1, bsbbd 3-6.0.1, pycrypto2.6, Twisted 14.0.0, python ecdsa) and the old record is not system disk. Now I'm trying this:
... <clip> ...

Now seems like a good time to bug you (jackjack I mean, not tevayo) to consider this pull request. With PyCrypto installed, I don't think Pywallet will create a usable wallet.dat file without this patch...
Github can't automatically merge it, so I'll apply the patch as soon as I have my dev computer with me (within 2-3 days)

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 08, 2014, 05:54:21 PM
 #449

Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

As you indicated me I made a dumpprivkey created and removed for the occasion wallet and this is what it returns me:

WnPrHA434nWat8CL131TTsZ3w2GYXm15ConQfcMjpNg2zwiG2kJB

I have taken other privatekeys and let you know that all start with W

It does not look anything like the PrivateKey to recover remanded me, 52 characters instead of 64 characters.

Let me know if you can do something about it.
greetings

Great!

I changed pywallet a bit to make a script for you
I just added those lines (do a diff before running it if you want):
Code:
	if len(sys.argv[1])==64:
print EncodeBase58Check(chr(201)+(sys.argv[1]).decode('hex')+'\x01')
else:
print 'bad private key length (%d)'%len(sys.argv[1])
exit()
The result is here: http://pastebin.com/raw.php?i=VYJkFfMc
Just save it to privkey.py then
Code:
python privkey.py 2a5b4c4e1d5f...(64 hexadecimal characters)

Hi Jack,
I will make the process has returned to recover and bounce back and the new dump.txt the address where I sent coins or any other address Whitecoin not appear.
The addresses are all BTC me back (all start with "1") when the last time found many WC, plus all PrivateKeys are 64 characters (hexadecimal) instead of 52 (base58).

Of course I keep the previous dump.txt with the correct address and associated PrivateKey.

Is there any way (calculator, converter ...) that can convert the PrivateKey that I have associated hexadecimal to base58?

Thanks again
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 08, 2014, 06:24:07 PM
 #450

The tool I sent you transforms hexadecimal privkey to base58. Then you can import with the command line in the GUI client.


By the way, did you try using the recovered wallet (from pywallet --recover) directly as wallet.dat?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 08, 2014, 06:28:35 PM
 #451

The tool I sent you transforms hexadecimal privkey to base58. Then you can import with the command line in the GUI client.


By the way, did you try using the recovered wallet (from pywallet --recover) directly as wallet.dat?

This last wallet I have not tested on the client-qt (now I try).
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 08, 2014, 06:52:32 PM
 #452

The tool I sent you transforms hexadecimal privkey to base58. Then you can import with the command line in the GUI client.


By the way, did you try using the recovered wallet (from pywallet --recover) directly as wallet.dat?

This last wallet I have not tested on the client-qt (now I try).

error: generated but not accepted

You can not start keypol

GUI gives me this other error:

parser error: <4e4: String> [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId: BadNumericConstant
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
September 08, 2014, 06:55:48 PM
 #453

Now seems like a good time to bug you (jackjack I mean, not tevayo) to consider this pull request. With PyCrypto installed, I don't think Pywallet will create a usable wallet.dat file without this patch...
Github can't automatically merge it, so I'll apply the patch as soon as I have my dev computer with me (within 2-3 days)

I rebased the pull request, it should be OK to merge now (it was just a conflict in the version number which I shouldn't have touched to begin with...)

Thanks
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 08, 2014, 08:18:55 PM
 #454

GUI gives me this other error:
 
Constant Numerica Incorrect: 4e4.
Line: 1 Character: 38


parser error: <4e4: String> [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId: BadNumericConstant
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 08, 2014, 09:25:45 PM
 #455

GUI gives me this other error:
 
Constant Numerica Incorrect: 4e4.
Line: 1 Character: 38


parser error: <4e4: String> [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId: BadNumericConstant
I'm not familiar with these errors, would you mind sending me a screenshot? Check there's no visible private key beforehand.

Now seems like a good time to bug you (jackjack I mean, not tevayo) to consider this pull request. With PyCrypto installed, I don't think Pywallet will create a usable wallet.dat file without this patch...
Github can't automatically merge it, so I'll apply the patch as soon as I have my dev computer with me (within 2-3 days)

I rebased the pull request, it should be OK to merge now (it was just a conflict in the version number which I shouldn't have touched to begin with...)

Thanks
Done
Thanks again for your interest and for sending pull requests

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
tevayo
Hero Member
*****
Offline Offline

Activity: 620
Merit: 500



View Profile
September 08, 2014, 11:01:35 PM
 #456




    "addr": "WX4ym8VT5UdBVjwLHoU8RZH7czCq3MGDgP",
            "compressed": true,
            "encrypted_privkey": "364b78121c64b0b5a259ef598d65d507fdbd68e431d10e7709a7b353cadeb34e",
            "pubkey": "02009671ba6842ecb26f6c01596deb1bce974f47390cd84c606d00fdef8c54072a",
            "reserve": 1
        },
        {
            "addr": "WeTWSh8sm5P7udNQvjUaLBg8j9RkNyxb8p",
            "compressed": true,
            "encrypted_privkey": "79c0da3eea56c10d884307b73f3bb161e6db334ff9d7cd91ce94d56ad9eb5d55",
            "pubkey": "02009edaa5203f33b079f2d813850bf2f84bfcde2a60034c41e039a48d88481770",
            "reserve": 1
        },
        {
            "addr": "WQhQibwwxDBsCXeVzzJYjd1kgffd8fqxv4",
            "compressed": true,
            "encrypted_privkey": "c5008c3c2c9ff673620396fe411b480327d59b782b4fd0bfe35a2155274bbbd9",
            "pubkey": "0200c2c3c087e3b83b767aeefa47be7244128c96a8b893b4b61e383355a1774cc1",
            "reserve": 1
        },
        {
            "addr": "Wk2RUci9hayr2oNpRBKo3hqPVCeMRprj2U",
            "compressed": true,
            "encrypted_privkey": "30be2c08f15332ed3ded01ebd263cc363a42471b3c496d36723ff2dd79da56c9",
            "pubkey": "0200c6c02eabd66a884a7167a9e9e22d78cdb2c59a9729dcdcf70daeec850f01f6",
            "reserve": 1
        },
        {
            "addr": "WYgi8xY7fWC8q5dUYAaD5WEmcK6quPTNs7",
            "compressed": true,
            "encrypted_privkey": "7258740357872c98c1060a0031348a536fac0b5441cd6741a76fd3b90214254f",
            "pubkey": "0200f00b0494608a365cb3436903fe6bce15810903ae401832be6dbbbadff98b12",
            "reserve": 1
        },

Jack, I send you what you ask and capture several privatekeys (no value), if you are helpful.
Thank you
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 09, 2014, 06:53:52 AM
Last edit: September 09, 2014, 10:10:05 AM by jackjack
 #457

Oh I'm sorry, the characters I put were only examples
The command is
Code:
python privkey.py 64-character-private-key
without any bracket, period or anything.
For example:
Code:
python privkey.py 0123456789abcdefaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

The private key is the hexsec entry of dumpwallet. The hexsec entry only exists when you provide the passphrase (which is not the case in you previous post).

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
allcrypt
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile WWW
September 12, 2014, 02:04:32 AM
 #458

Found this thread looking for some pywallet help and figure since it's still active I may as well ask.

I'm a developer with AllCrypt.com, a crypto exchange. We've been using the internal accounting on most wallets as a secondary/backup failsafe (user hacks site, starts withdrawing coins the hacked/corrupted/overwritten database says is there, but the wallet stops the send as it knows, internally, that the user does not have enough coins). We're moving away from that as MANY altcoins have horrendous internal accounting, and larger coins like BTC and DOGE are now taking a performance hit because of the bloat. We're implementing a new system that handles the accounting in a second layer, to free that load off the wallets themselves. (Plus as a dandy little bonus, we implemented a frontend to the wallet's RPC calls, thus extending the calls, or creating new ones as need be. Pre-caching the address keypool so no waiting for an address? Hallelujah! Who else hates walletpassphrase throwing an exception just because the wallet is already unlocked? Can I get an A-men?!)

Anyway (Sorry, it's late, I'm exhausted) We were going to just export and reimport all private keys into a new wallet, but, then we lose all transaction info (we can no longer do a gettransaction to get details of an older deposit, for instance).

Is there a way, with pywallet, to export all transactions, let us clean up the list (remove all "moves" to/from internal accounts) and re-import them into a clean wallet without any accounting?

I see on the import page the ability to import a single transaction, but it wants a "Txk" and "Txv"? Key and... value? That seems like it's missing info it would need. I assume to mass import them I'd need to script it?

Just wondering if there is a simple answer before starting to mess directly with the software. Thanks all.

AllCrypt.com - Your new CryptoCurrency Exchange Now Open! www.AllCrypt.com
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
September 12, 2014, 07:43:34 AM
 #459

Yes I implemented the transactions export. As you noticed the import is one tx each time.

For the time being you'll have to do it one by one. IIRC txk is \x02 + the tx id "endian-reversed". txv is indeed the value: it's the tx itself plus something I never really investigated.

I think I can easily add multi-tx import from a file. I can't give you an ETA though, 1 or 2 weeks maybe.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
allcrypt
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile WWW
September 12, 2014, 01:28:08 PM
 #460

Is the import accessable through the command line? I took a closer look last night and it doesn't appear to be. Thats all I need, I can script the rest.

Anyone have any reference online on the format for all that? I'd prefer to read up and learn as opposed to spending hours breaking a wallet and learning. One is much more efficient Wink

Thanks for all your hard work by the way jack. PM me a donation address I'll throw some BTC your way. Before I started allcrypt I used pywallet to recover keys lost on a personal wallet when I had a hard drive crash, and it's an invaluable tool with our site. So many times we need to remove a 0 confirmation transaction to recover a withdrawal from a wallet that was too stupid to set it's own fee correctly. Would be nigh impossible without pywallet.

AllCrypt.com - Your new CryptoCurrency Exchange Now Open! www.AllCrypt.com
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
  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!