Bitcoin Forum
May 09, 2024, 11:05:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 [157] 158 159 »
  Print  
Author Topic: Slimcoin | First Proof of Burn currency | Decentralized Web  (Read 136746 times)
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
April 30, 2021, 05:38:04 PM
 #3121

dumping and importing all privkeys in fresh wallet show that i have only 6k burning coins instead of 20k really
Can you still access the old wallet file, at least for a short time? So you can get a complete list of your addresses?
I guess your list of imported private keys is incomplete ... which command did you use to see the addresses? The list in the qt wallet or the command listaddressgroupings?
Try listaddressgroupings (in the Debug console or with the slimcoind daemon) and check if there is any address missing where you still have to import the private key into the new wallet. listaddressgroupings (afaik) lists all addresses which were used at least once to send coins, so the addresses to access your burned coins should be definitively there.

listaddressgroupings
Method not found (code -32601)

i just open my wallet.dat in notepad and found all addresses by searching for word "name"


What wallet version are you on?

1715252750
Hero Member
*
Offline Offline

Posts: 1715252750

View Profile Personal Message (Offline)

Ignore
1715252750
Reply with quote  #2

1715252750
Report to moderator
1715252750
Hero Member
*
Offline Offline

Posts: 1715252750

View Profile Personal Message (Offline)

Ignore
1715252750
Reply with quote  #2

1715252750
Report to moderator
1715252750
Hero Member
*
Offline Offline

Posts: 1715252750

View Profile Personal Message (Offline)

Ignore
1715252750
Reply with quote  #2

1715252750
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715252750
Hero Member
*
Offline Offline

Posts: 1715252750

View Profile Personal Message (Offline)

Ignore
1715252750
Reply with quote  #2

1715252750
Report to moderator
1715252750
Hero Member
*
Offline Offline

Posts: 1715252750

View Profile Personal Message (Offline)

Ignore
1715252750
Reply with quote  #2

1715252750
Report to moderator
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
April 30, 2021, 08:15:56 PM
 #3122

listaddressgroupings
Method not found (code -32601)
Oh, you're totally right, sorry! Slimcoin doesn't have this command still ... later Bitcoin/Peercoin versions have, thus I was confused ...

In Slimcoin you would have to do two steps:

Code:
listaccounts
and then for each account:
Code:
getaddressesbyaccount ACCOUNT

Quote
i just open my wallet.dat in notepad and found all addresses by searching for word "name"
I actually never tried this, looks interesting, will try it with a fresh wallet file. However, it would be cool to have a proper wallet management tool like pywallet.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
April 30, 2021, 10:25:46 PM
 #3123

...it would be cool to have a proper wallet management tool like pywallet.

Why not consider it? Especially once we have the PoD token launched.
Where is the code to port?

d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
April 30, 2021, 10:47:40 PM
 #3124

Why not consider it? Especially once we have the PoD token launched.
Where is the code to port?
I think it's this one:

https://github.com/jackjack-jj/pywallet

There's another one which is older and described as the "original". If the update to modern code delays, this could be a better option:

https://github.com/joric/pywallet

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
May 01, 2021, 02:43:19 PM
 #3125

Why not consider it? Especially once we have the PoD token launched.
Where is the code to port?
I think it's this one:

https://github.com/jackjack-jj/pywallet

There's another one which is older and described as the "original". If the update to modern code delays, this could be a better option:

https://github.com/joric/pywallet

We'd need a python dev here, right?

gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1278



View Profile WWW
May 01, 2021, 06:36:23 PM
 #3126

client v6 stucks on win&lin with my old wallet.dat, with size of this over 4mb

Yes, it's an old client and is beginning to struggle when indexing the blockchain and is unresponsive while that is happening. Try leaving it for a day, see if it manages to settle down.

dumping and importing all privkeys in fresh wallet show that i have only 6k burning coins instead of 20k really

Yes, I've experienced temporary misreporting of the burned coins data, I've had to restart the client a couple of times to get accurate reporting in the GUI. Try the console command getburndata, see if that shows the correct burned coins data.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1278



View Profile WWW
May 01, 2021, 07:44:59 PM
Merited by d5000 (1)
 #3127

There's another one which is older and described as the "original". If the update to modern code delays, this could be a better option:

https://github.com/joric/pywallet

We'd need a python dev here, right?
Not really. Use this version from the repos. Save the page as pywallet.py, change addrtype = 0 to addrtype = 63, create a subdirectory datadir, copy your wallet.dat into it and you should be able to get a JSON dump of the wallet keys with:

python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet

(note, Python 2 required).

Cheers

Graham

johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
May 01, 2021, 09:09:12 PM
 #3128

There's another one which is older and described as the "original". If the update to modern code delays, this could be a better option:

https://github.com/joric/pywallet

We'd need a python dev here, right?
Not really. Use this version from the repos. Save the page as pywallet.py, change addrtype = 0 to addrtype = 63, create a subdirectory datadir, copy your wallet.dat into it and you should be able to get a JSON dump of the wallet keys with:

python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet

(note, Python 2 required).

Cheers

Graham


Wow! So we basically can use it right away?

gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1278



View Profile WWW
May 01, 2021, 09:21:44 PM
 #3129

you should be able to get a JSON dump of the wallet keys with:

python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet
Wow! So we basically can use it right away?
Worked for me.

Cheers

Graham
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
May 01, 2021, 10:01:19 PM
Last edit: May 05, 2021, 10:20:07 PM by d5000
 #3130

Thanks gjhiggins, that's awesome! I tried it out and it seems to have worked. I guess "sec" are the private keys (in WIF format probably), right? (So the list printed by this program should definitively not be shared here Wink ).

We could simply fork this version into the slimcoin-project repo and change the datadir and addresstype parameters.

However, one question remains: Is it safe to use also for the
Code:
--importprivkey
(edited) option? This one seems to write on the wallet file, so it should be used carefully (only with a backup of the wallet).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1278



View Profile WWW
May 01, 2021, 10:56:35 PM
 #3131

Thanks gjhiggins, that's awesome! I tried it out and it seems to have worked. I guess "sec" are the private keys (in WIF format probably), right? (So the list printed by this program should definitively not be shared here Wink ).

We could simply fork this version into the slimcoin-project repo and change the datadir and addresstype parameters.

However, one question remains: Is it safe to use also for the
Code:
--importwallet
option? This one seems to write on the wallet file, so it should be used carefully (only with a backup of the wallet).
?? That option isn't supported in the committed version that I used:
Code:
Usage: pywallet.py [options]

Options:
  --version            show program's version number and exit
  -h, --help           show this help message and exit
  --dumpwallet         dump wallet in json format
  --importprivkey=KEY  import private key from vanitygen
  --datadir=DATADIR    wallet directory (defaults to bitcoin default)
  --testnet            use testnet subdirectory and address type
  --password=PASSWORD  password for the encrypted wallet
The importprivkey succeeded for me.

I was focused on the original task, dumping privkeys from the wallet.db file, didn't explore further.

Cheers

Graham
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
May 02, 2021, 02:08:45 AM
 #3132

Oh, you're right, I meant importprivkey of course. Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
May 05, 2021, 09:28:57 PM
 #3133

dumping and importing all privkeys in fresh wallet show that i have only 6k burning coins instead of 20k really
Can you still access the old wallet file, at least for a short time? So you can get a complete list of your addresses?
I guess your list of imported private keys is incomplete ... which command did you use to see the addresses? The list in the qt wallet or the command listaddressgroupings?
Try listaddressgroupings (in the Debug console or with the slimcoind daemon) and check if there is any address missing where you still have to import the private key into the new wallet. listaddressgroupings (afaik) lists all addresses which were used at least once to send coins, so the addresses to access your burned coins should be definitively there.

listaddressgroupings
Method not found (code -32601)

i just open my wallet.dat in notepad and found all addresses by searching for word "name"


Were you able to solve your issue?

casper77
Legendary
*
Offline Offline

Activity: 2884
Merit: 1035


View Profile
May 07, 2021, 12:24:42 PM
 #3134

Were you able to solve your issue?

still no
i finally moved away from windows and am looking for solutions for linux
it turns out my clients were version 0.5.0
i have two computers, one for mining with a fresh wallet, the other more precious with a lot of burned coins, but very freezy
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
May 07, 2021, 03:17:46 PM
 #3135

Were you able to solve your issue?

still no
i finally moved away from windows and am looking for solutions for linux
it turns out my clients were version 0.5.0
i have two computers, one for mining with a fresh wallet, the other more precious with a lot of burned coins, but very freezy

Have you tried to extract your keys with the tools mentioned above?

casper77
Legendary
*
Offline Offline

Activity: 2884
Merit: 1035


View Profile
May 08, 2021, 06:25:43 AM
 #3136

Not really. Use this version from the repos. Save the page as pywallet.py, change addrtype = 0 to addrtype = 63, create a subdirectory datadir, copy your wallet.dat into it and you should be able to get a JSON dump of the wallet keys with:
python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet
(note, Python 2 required).

it works, but too much addresses, maybe 400 or 500
it is impossible to dump privkeys of them all
johnwhitestar
Sr. Member
****
Offline Offline

Activity: 697
Merit: 262


Slimcoin - the Proof of Donation inventors!


View Profile
May 08, 2021, 08:25:37 AM
 #3137

Not really. Use this version from the repos. Save the page as pywallet.py, change addrtype = 0 to addrtype = 63, create a subdirectory datadir, copy your wallet.dat into it and you should be able to get a JSON dump of the wallet keys with:
python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet
(note, Python 2 required).

it works, but too much addresses, maybe 400 or 500
it is impossible to dump privkeys of them all

Hmm...

Do you mean it's too much work to recover 20k?
Or you mean that once you've transferred all of those addresses to your new wallet it may become slow again?

d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
May 08, 2021, 08:51:51 AM
Last edit: May 08, 2021, 11:34:51 AM by d5000
Merited by johnwhitestar (1)
 #3138

@casper77: I've coded a small script to do a lookup at block explorer Cryptoid so you can filter out all addresses which have 1) no coins on it and 2) from where you did not burn any coins. Will upload it to Github together with an adapted version of pywallet. Just a moment Smiley

Edit: Uploaded it. It is here:

https://github.com/slimcoin-project/slm-pywallet/

I also included a pywallet.py file with Graham's changes.

To run the lookup script, clone the Git repository and run:

Code:
cryptoidlookup.py PYWALLET_DUMP_FILENAME

(you must have saved the pywallet dump to a text file before)

It will lookup all addresses in the file, and print out those who were used for transactions (including burn transactions). The empty addresses are ignored.

Note: One little oddity is that pywallet uses Python 2 and the cryptoidlookup script Python 3, maybe this can be later changed.


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
casper77
Legendary
*
Offline Offline

Activity: 2884
Merit: 1035


View Profile
May 08, 2021, 11:35:03 AM
 #3139

@casper77: I've coded a small script to do a lookup at block explorer Cryptoid so you can filter out all addresses which have 1) no coins on it and 2) from where you did not burn any coins. Will upload it to Github together with an adapted version of pywallet. Just a moment Smiley
Edit: Uploaded it. It is here:
https://github.com/slimcoin-project/slm-pywallet/
I also included a pywallet.py file with Graham's changes.
To run the lookup script, clone the Git repository and run:
Code:
cryptoidlookup.py PYWALLET_DUMP_FILENAME
(you must have saved the pywallet dump to a text file before)
It will lookup all addresses in the file, and print out those who were used for transactions (including burn transactions). The empty addresses are ignored.

python3 cryptoidlookup.py 2.txt

Traceback (most recent call last):
  File "cryptoidlookup.py", line 80, in <module>
    main(sys.argv)
  File "cryptoidlookup.py", line 52, in main
    wdump = getdump(args[1])
  File "cryptoidlookup.py", line 44, in getdump
    walletdump = json.load(f)
  File "/usr/lib/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1129 column 1 (char 40918)
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6218


Decentralization Maximalist


View Profile
May 08, 2021, 12:04:43 PM
Merited by casper77 (2)
 #3140

Can't reproduce your error, on my computer it works fine. I guess your text file where the dump was saved has an error, there seems to be a comma missing. Maybe you saved it manually from the terminal output?

Try to dump again with pywallet:

Code:
python2 pywallet.py --datadir=`pwd`/datadir --dumpwallet > walletdump.json

Code:
python3 cryptoidlookup.py walletdump.json

PS: The command can take some time, there is an intentional 15 sec pause between addresses to avoid the server rejects your requests. So simply leave it alone for a while.


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: « 1 ... 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 [157] 158 159 »
  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!