Bitcoin Forum
May 03, 2024, 08:29:56 PM *
News: Latest Bitcoin Core release: 27.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 207946 times)
cdnbcguy
Full Member
***
Offline Offline

Activity: 128
Merit: 100


View Profile WWW
April 25, 2013, 08:19:28 PM
Last edit: April 25, 2013, 09:34:57 PM by cdnbcguy
 #221

I imported a private key into my encrypted backed-up wallet using pywallet and now I get 'transaction creation failed' when trying to send - it does add the balance of the paper wallet to my balance.

It did ask for my password when doing the transaction - is it decrypting a non-encrypted private key?


Annona ad! Please keep in mind that there is nothing wrong with Bitcoin itself. All it's scandals are caused by wonky websites and sleazy people exploiting it. The light attracts bugs.

When all this bullshit drys up and blows away, Bitcoin will be stronger than ever.
1714768196
Hero Member
*
Offline Offline

Posts: 1714768196

View Profile Personal Message (Offline)

Ignore
1714768196
Reply with quote  #2

1714768196
Report to moderator
1714768196
Hero Member
*
Offline Offline

Posts: 1714768196

View Profile Personal Message (Offline)

Ignore
1714768196
Reply with quote  #2

1714768196
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
April 25, 2013, 08:36:00 PM
 #222

Did you put your passphrase in the Passphrase tab?

If not:
 - Close Bitcoin
 - Delete the address you added
 - Put your passphrase in the tab
 - Import again


Yes, I know, It should refuse to import if the passphrase isn't correct, but I'm a bit busy currently and as it doesn't corrupt the wallet it's not top priority

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.
cdnbcguy
Full Member
***
Offline Offline

Activity: 128
Merit: 100


View Profile WWW
April 25, 2013, 09:33:39 PM
 #223

Did you put your passphrase in the Passphrase tab?

I did now, no joy.

I also had trouble earlier importing the key as Satoshi left 5 and upper case s in the base58 code - a strange design flaw...

Thanks anyway - I guess I need to find another way to try this.


Annona ad! Please keep in mind that there is nothing wrong with Bitcoin itself. All it's scandals are caused by wonky websites and sleazy people exploiting it. The light attracts bugs.

When all this bullshit drys up and blows away, Bitcoin will be stronger than ever.
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
April 25, 2013, 09:40:15 PM
 #224

I also had trouble earlier importing the key as Satoshi left 5 and upper case s in the base58 code - a strange design flaw...
What do you mean? You mixed 5 and S? I didn't even realize  both were used


Thanks anyway - I guess I need to find another way to try this.
To try what?

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.
cdnbcguy
Full Member
***
Offline Offline

Activity: 128
Merit: 100


View Profile WWW
April 25, 2013, 10:00:42 PM
 #225

I also had trouble earlier importing the key as Satoshi left 5 and upper case s in the base58 code - a strange design flaw...
What do you mean? You mixed 5 and S? I didn't even realize  both were used

code_string = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"

That just caused an error. I fixed that after I figured out what it was.

Thanks anyway - I guess I need to find another way to try this.
To try what?


Try and 1- import a paper wallet private key to my encrypted wallet.dat file, 2 - transfer some BTC from the paper wallet to another account, 3 - then transfer the remaining btc to another paper wallet - stuck at step 2




Annona ad! Please keep in mind that there is nothing wrong with Bitcoin itself. All it's scandals are caused by wonky websites and sleazy people exploiting it. The light attracts bugs.

When all this bullshit drys up and blows away, Bitcoin will be stronger than ever.
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
April 25, 2013, 10:07:37 PM
 #226

So even after you put the correct passphrase in the passphrase tab you can't use your coins?

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.
cdnbcguy
Full Member
***
Offline Offline

Activity: 128
Merit: 100


View Profile WWW
April 25, 2013, 10:41:42 PM
 #227

So even after you put the correct passphrase in the passphrase tab you can't use your coins?

That is correct - I also carefully wrote the phrase out in an editor and cut and pasted it into the tab because the tab will accept anything and does not tell you if you have done it wrong.

I recommend that the wallet software check for encryption first thing after the user clicks localhost:8989 and demands a correct pass-phrase before proceeding.


Annona ad! Please keep in mind that there is nothing wrong with Bitcoin itself. All it's scandals are caused by wonky websites and sleazy people exploiting it. The light attracts bugs.

When all this bullshit drys up and blows away, Bitcoin will be stronger than ever.
ssateneth
Legendary
*
Offline Offline

Activity: 1344
Merit: 1004



View Profile
May 17, 2013, 12:30:03 AM
 #228

Doesn't work. I did the install.bat and hit yes/next/i agree on everything. i run pywallet.bat and I get an error.

C:\Users\Ssateneth>D:\pywallet\pywallet.py --web --port=8989
A mandatory option is missing

Usage: pywallet.py [options]
(it spams all the options after)

what am i doing wrong?

jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
May 17, 2013, 06:49:25 AM
 #229

Doesn't work. I did the install.bat and hit yes/next/i agree on everything. i run pywallet.bat and I get an error.

C:\Users\Ssateneth>D:\pywallet\pywallet.py --web --port=8989
A mandatory option is missing

Usage: pywallet.py [options]
(it spams all the options after)

what am i doing wrong?
There is install.bat in the same directory, run it
If it doesn't work, try running update.bat then install.bat
Then report results

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.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
May 17, 2013, 07:42:15 PM
 #230

finally i gave the csv import a try, unfortunately i couldnt enjoy the result:
Code:
2013-05-17 21:39:29+0200 [HTTPChannel,1,127.0.0.1] Hexadecimal private keys must be 64 or 66 characters long (specified one is 51 characters long)
they start with a 5, so its a uncompressed one. i can send you some unused keys per PM if you want.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 17, 2013, 08:27:52 PM
 #231

Code:
2013-05-17 21:39:29+0200 [HTTPChannel,1,127.0.0.1] Hexadecimal private keys must be 64 or 66 characters long (specified one is 51 characters long)
they start with a 5, so its a uncompressed one. i can send you some unused keys per PM if you want.

Given that error message, I'd try to convert your WIF privkey into hexadecimal, by using e.g. bitaddress, then feed the result to pywallet.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
May 17, 2013, 08:36:28 PM
 #232

Code:
2013-05-17 21:39:29+0200 [HTTPChannel,1,127.0.0.1] Hexadecimal private keys must be 64 or 66 characters long (specified one is 51 characters long)
they start with a 5, so its a uncompressed one. i can send you some unused keys per PM if you want.

Given that error message, I'd try to convert your WIF privkey into hexadecimal, by using e.g. bitaddress, then feed the result to pywallet.
i know, still it should be able to handle normal ones Wink also the list is too big to convert it into hexadeicaml by hand.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
May 18, 2013, 08:56:20 AM
Last edit: May 20, 2013, 04:34:23 PM by jackjack
 #233

Yeah I procrastinated a lot about importing base58 private keys from a CSV file... I don't even know why because it's a letter of less than ten lines... And eventually I forgot about it.
I don't have my computer with me right now, I'll change this asap, ie tomorrow evening (or maybe a bit later...)

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.
BRules
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


View Profile
May 20, 2013, 03:37:48 AM
 #234

I was doing some stress test with my bitcoin on testnet and created about 200000 transactions and 70000 addresses, now my wallet file has about 240MB, now I only can open my bitcoind to manipulate my bitcoins, and bitcoind are using about 400MB of memory because of that.

My question: if I start a business that will use bitcoind to manipulate the bitcoins, Is it ok to use pywallet to remove old spent transactions from the wallet (obviously making a backup before)?

if ok, is there a way use the command line to remove the transactions or i'm only able to do this through the web interface?

tks in advance

jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
May 20, 2013, 04:37:40 PM
 #235

I was doing some stress test with my bitcoin on testnet and created about 200000 transactions and 70000 addresses, now my wallet file has about 240MB, now I only can open my bitcoind to manipulate my bitcoins, and bitcoind are using about 400MB of memory because of that.

My question: if I start a business that will use bitcoind to manipulate the bitcoins, Is it ok to use pywallet to remove old spent transactions from the wallet (obviously making a backup before)?

if ok, is there a way use the command line to remove the transactions or i'm only able to do this through the web interface?

tks in advance
Yes you can but Bitcoin won't be able to use those transactions when you create a new payment and won't show them (obviously)
And no, no command line for this yet but if you need it I can add it

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.
BRules
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


View Profile
May 20, 2013, 07:52:57 PM
 #236

Yes you can but Bitcoin won't be able to use those transactions when you create a new payment and won't show them (obviously)
And no, no command line for this yet but if you need it I can add it

I will only delete old spent transactions, so, I won't need them anymore, I was worried that the bitcoind could stop working for some reason.

no need for command line as I already has the complete URL to delete the transactions and my program is already using it.

the only problem I'm seeing is that with my wallet of 200000 transactions, it's takin about 11 seconds to remove one transaction. I made a program to remove the transactions and in 3,5 hours it has deleted 1107 transactions. Do you know which part of the delete is causing this delay? Is there a way to remove a batch of transactions at once instead of one by one?

jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
May 20, 2013, 08:15:40 PM
 #237

I will only delete old spent transactions, so, I won't need them anymore, I was worried that the bitcoind could stop working for some reason.
bitcoind will still work correctly

the only problem I'm seeing is that with my wallet of 200000 transactions, it's takin about 11 seconds to remove one transaction. I made a program to remove the transactions and in 3,5 hours it has deleted 1107 transactions. Do you know which part of the delete is causing this delay? Is there a way to remove a batch of transactions at once instead of one by one?
Can you delete all transactions or do you have some you want to keep?
The problem is that pywallet opens, reads, then writes into a new wallet the remaining data, for each deletion
If you need to keep some transactions, I'll write something q&d to read a file containing hashes and delete all the corresponding transactions inside it

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.
BRules
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


View Profile
May 20, 2013, 08:48:32 PM
 #238


Can you delete all transactions or do you have some you want to keep?
The problem is that pywallet opens, reads, then writes into a new wallet the remaining data, for each deletion
If you need to keep some transactions, I'll write something q&d to read a file containing hashes and delete all the corresponding transactions inside it

I will need to keep unspent transactions and transactions made within an year. That would be great to have a way to fill a file with transactions to delete.

Tks in advance

BRules
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


View Profile
May 20, 2013, 11:20:40 PM
 #239

I just created another testnet wallet and sent my bitcoins to it, after 2 confirmations I deleted all my transactions from my wallet using the keyword "all", it took less than 20 seconds to remove all transactions from my wallet, and it is usable again in the bitcoin-qt. So, reading a file with the transactions to remove should be enough to solve my problem. Looking foward for this feature.

Keep up the good work.
Tks again

jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
May 21, 2013, 09:44:25 PM
Last edit: May 22, 2013, 10:41:46 PM by jackjack
 #240

Hey guys
The fix for the bug that K1773R found and the BRules' request have been pushed to v2.0.7


CSV files import bug
Actually when I coded the CSV import, I did take into account the WIF keys. The bug came from the fact that False!=None....
When trying things, I also noticed that for the keys to be displayed correctly inside bitcoin-qt, you need to use the proper address version.
So the CSV files must now have this format:
Code:
5KkEy5BZxKi4ZN5n4MUGx1ABSsiGbtNz5hYLBuyaU8dV8iHkBur;label for the key;111

Note1: 111 is for testnet. 0 for Bitcoin. 52 for Namecoin. Etc...
Note2: if there is only two columns, version 0 (ie Bitcoin addresses) is implied, so it is backward compatible


Multiple deletions at once
In the 'key' (renamed 'keys') form, enter:
  • '1address1' to delete that only address (again, backward compatibility)
  • '1address1-1address2-1address3-etc...' to delete a list of addresses divided by '-'


BRules, please confirm whether this is faster

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.
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!