Pages:
Author

Topic: Pywallet 2.2: manage your wallet [Update required] - page 19. (Read 207945 times)

legendary
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
yeah that is basically what i changed, but i thought "private" was the key, not "sec".
thank you!
So it works, right?
full member
Activity: 208
Merit: 106
yeah that is basically what i changed, but i thought "private" was the key, not "sec".
thank you!
legendary
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
Sorry for the bugs

Change
1)
 "if (sys.argv)!=2:" to "if len(sys.argv)!=2:"
2)
"r+=addr+';'+label+'\n'" to "r+=k['sec']+';'+label+'\n'"



Edit: I didn't see your post. And I can't open pastebin on my phone (crazy...).
The file only needs private keys, that's why there's no 1privkey. They start with K, L or 5.
full member
Activity: 208
Merit: 106
so i went to learn some python basics, and i think i fixed the script. http://pastebin.com/H07bPtGw

is the format really supposed to be "1privkey;label"? if so, i still need to concatenate the 1. otherwise that should do the trick, I would just like some confirmation
full member
Activity: 208
Merit: 106
first there is something wrong with the first if expression. it always prints the usage when i input the command you gave me.
i don't know python to fix it, but i removed the if and ran the script. what it did was create a .csv of the public addresses and labels, not the private addresses, which are the ones i require...
legendary
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
ah yes, then that is what happened. I did a full wallet dump to json thinking that i could import it all later. I now realize the "import transactions" option is not what i though. Maybe you could add an option to pywallet to import keys from a full wallet dump? Wink

i'll send you a part of the file in PM. thank you.
Yeah, I'll add that to the new version

I did this, try it out and tell me how it goes
Download it into translate.py, then run
Code:
python translate.py wallet.json
That will make a wallet.json.pywalletexport that will (hopefully) be accepted
full member
Activity: 208
Merit: 106
ah yes, then that is what happened. I did a full wallet dump to json thinking that i could import it all later. I now realize the "import transactions" option is not what i though. Maybe you could add an option to pywallet to import keys from a full wallet dump? Wink

i'll send you a part of the file in PM. thank you.
legendary
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
Hi, i'm having trouble importing my backup keys to my main wallet. I get the following output: http://pastebin.com/ii6SfsWr

Can someone help me please?

Why don't you import using below command which is used commonly instead of using pywallet? Smiley
Code:
importprivkey bitcoinaddressprivatekey
You can only import 1 key at a time. Smiley

kindly,
        MZ

Because I did the backup with pywallet, so I assumed it would be easy to import it back with pywallet :\

I want to get my labels back too, all the info that is on the backup.
Pastebin seems down so I can't see your error messages but I know what you want is possible
I'll look at that as soon as pastebin is up again


Ok Pastebin works again.
It looks like your put the data in the "import transaction" form. Either you made a mistake or there's a big bug in pywallet.

I see that your file is "keys.json" but the key export format of Pywallet is not json so maybe you didn't use the correct method.
You must export your keys with the "Dump your keys" form. That will make a file full of "1privkey;label".
Then you just have to import this file with the "Import keys" form.

If I'm right and that your keys are in json format (probably from a wallet dump), just send me a small part of it with all the private keys modified (deleted/emptied/whatever). I'll make you a script to transform keys.json into a usable file.
hero member
Activity: 672
Merit: 500
*** NULL ***
Hello.

I got a wallet that cannot dump by pywallet.

test wallet(a SHACoin wallet):

https://mega.co.nz/#!tQQiARBA!fvXQ2J0p97LRu1KpVZd9UKTMQYsWSXTq96PA_Z_TCX0

error message:

Code:
Traceback (most recent call last):
  File "./pywallet.py", line 2061, in parse_wallet
    d['txIn'].append(parse_TxIn(vds))
  File "./pywallet.py", line 2028, in parse_TxIn
    d['prevout_n'] = vds.read_uint32()
  File "./pywallet.py", line 1944, in read_uint32
    def read_uint32(self): return self._read_num('  File "./pywallet.py", line 1983, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes
test@ubuntu:~/pywallet$

please help, thx.

Found 141 possible unencrypted keys
Keys are extracting now.

sounds good. so your pywallet works? or you use other method?
i can use it dump btc wallet and find keys, but shacoin cannot. it stopped with those errors.
can you show me how to find those keys with a shacoin wallet? thx.
full member
Activity: 208
Merit: 106
Hi, i'm having trouble importing my backup keys to my main wallet. I get the following output: http://pastebin.com/ii6SfsWr

Can someone help me please?

Why don't you import using below command which is used commonly instead of using pywallet? Smiley
Code:
importprivkey bitcoinaddressprivatekey
You can only import 1 key at a time. Smiley

kindly,
        MZ

Because I did the backup with pywallet, so I assumed it would be easy to import it back with pywallet :\

I want to get my labels back too, all the info that is on the backup.
legendary
Activity: 2674
Merit: 1030
Yes I am a pirate, 300 years too late!
Hello.

I got a wallet that cannot dump by pywallet.

test wallet(a SHACoin wallet):

https://mega.co.nz/#!tQQiARBA!fvXQ2J0p97LRu1KpVZd9UKTMQYsWSXTq96PA_Z_TCX0

error message:

Code:
Traceback (most recent call last):
  File "./pywallet.py", line 2061, in parse_wallet
    d['txIn'].append(parse_TxIn(vds))
  File "./pywallet.py", line 2028, in parse_TxIn
    d['prevout_n'] = vds.read_uint32()
  File "./pywallet.py", line 1944, in read_uint32
    def read_uint32(self): return self._read_num('  File "./pywallet.py", line 1983, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes
test@ubuntu:~/pywallet$

please help, thx.

Found 141 possible unencrypted keys
Keys are extracting now.
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
Hi, i'm having trouble importing my backup keys to my main wallet. I get the following output: http://pastebin.com/ii6SfsWr

Can someone help me please?

Why don't you import using below command which is used commonly instead of using pywallet? Smiley
Code:
importprivkey bitcoinaddressprivatekey
You can only import 1 key at a time. Smiley

kindly,
        MZ
hero member
Activity: 672
Merit: 500
*** NULL ***
Hello.

I got a wallet that cannot dump by pywallet.

test wallet(a SHACoin wallet):

https://mega.co.nz/#!tQQiARBA!fvXQ2J0p97LRu1KpVZd9UKTMQYsWSXTq96PA_Z_TCX0

error message:

Code:
Traceback (most recent call last):
  File "./pywallet.py", line 2061, in parse_wallet
    d['txIn'].append(parse_TxIn(vds))
  File "./pywallet.py", line 2028, in parse_TxIn
    d['prevout_n'] = vds.read_uint32()
  File "./pywallet.py", line 1944, in read_uint32
    def read_uint32(self): return self._read_num('  File "./pywallet.py", line 1983, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes
test@ubuntu:~/pywallet$

please help, thx.
full member
Activity: 208
Merit: 106
Hi, i'm having trouble importing my backup keys to my main wallet. I get the following output: http://pastebin.com/ii6SfsWr

Can someone help me please?
legendary
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
Hi everybody
Even though I think most posts are now moot I'll answer them ASAP. It may help other people later.

For people noticing bugs: I still have a new version about to be released (2 weeks? 2 months? I don't know)
Also you'll be able to fill out bug reports soon.
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
Hello Jack Jack! This Pywallet is great. I really like it. Thanks for making it.
Kindly,
       Muhammed Zakhir
full member
Activity: 154
Merit: 100
Can someone please help me out, I got Ubuntu on a virtual machine installed and I got pywallet setup and it's working. I got my wallet.dat file and pywallet.py wallet on the desktop of the virtual machine and nothing else, what command do I need to run in order for it to display the priv key? This wallet is from shibecoin
hero member
Activity: 938
Merit: 500
https://youengine.io/
question about "hexsec" and "secret"

consider this dump of an unencrypted wallet: (don't worry, I won't store bitcoins at these keys, I'm just experimenting)

Code:
    {
        "addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
        "compressed": false,
        "hexsec": "c703063648fd19d64de086064692dd17",
        "private": "308201130201010420c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23a081a53081a2020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101a1440342000400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
        "pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
        "reserve": 1,
        "sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
        "secret": "c703063648fd19d64de086064692dd17"
    }

Why are "secret" and "hexsec" only 16 bytes?


This is the same key after loading the wallet with bitcoin 0.9 and encrypting it (and decrypting again with pywallet)

Code:
    {
        "addr": "1EJP1Q1JEQdWtR5PEopCRZdE1F8dgk9Wwp",
        "compressed": false,
        "encrypted_privkey": "cb9f081748ed5d42d010b10baa84748535e5588908e6cc70a28c44c550277ecdcaaf0d5e36cc9f919a0cf3471d2832d8",
        "hexsec": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23",
        "pubkey": "0400481a16f118b4efe54b4783f857a9d45c8b5aec6cf03f7bc177ecc1d2faea443d4e94475ac9312cdfde1a30b4e953356c7e93312eabd92ddb070cdcfb981ee5",
        "reserve": 1,
        "sec": "5KKw55iWFRmy614626Fo6ckzS7vxNcfhZJHvvo84W3cAzwfRjVo",
        "secret": "c703063648fd19d64de086064692dd17bd31ef4ebc8b8caa043d1fc7347d6a23"
    }

It almost looks like the first version was just cut off in the middle.

Another question: Is there any documentation about the various elements of the json that is produced with pywallet?

* For example what is the meaning of the "pool" array, its repeating all the addresses but without their keys but seems to contain additional info, what is the rationale behind structuring it that way and not just put all info about a key into one object?
* what is the empty ckey array at the beginning of the dump?
newbie
Activity: 7
Merit: 0
In Bitcoin Qt > File > Receiving addresses I have an extra address that I never used and that I don't want to use, and since I can't remove it with the GUI I'm trying to do that with Pywallet.

This is what I tried:

  • Copied the Bitcoin address in question
  • Closed Bitcoin Qt
  • Went to Pywallet > Delete, put the address in the field Keys and selected the "Bitcoin address" option
  • Clicked "Delete"

I obtained the following message from Pywallet:

Quote
key:CENSORED has been successfully deleted from /home/fturco/.bitcoin/wallet.dat, resulting in 0 deleted item

Please notice "0 deleted item". In fact when I restart Bitcoin-Qt the address in question is still there. What can I do?
newbie
Activity: 37
Merit: 0
PM'd you.
Pages:
Jump to: