Bitcoin Forum
May 11, 2024, 10:23:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need Specific Change Addresses to Move BCash Coins from Offline Wallet  (Read 233 times)
btcbot (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 105



View Profile
August 10, 2017, 06:56:25 AM
 #1

I've been trying to generate specific change addresses that I see in my watch-only offline wallet so that I can sweep their private keys to get my BCC tokens.

I've tried create_new_address (with a 200 for loop) and I've yet to generate this address.  I've tried typing in the public address and it seems to not recognize it.

Any help would be appreciated!


Don't tip me... tip the Riseup folks who protect activists around the world.
1715466228
Hero Member
*
Offline Offline

Posts: 1715466228

View Profile Personal Message (Offline)

Ignore
1715466228
Reply with quote  #2

1715466228
Report to moderator
1715466228
Hero Member
*
Offline Offline

Posts: 1715466228

View Profile Personal Message (Offline)

Ignore
1715466228
Reply with quote  #2

1715466228
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715466228
Hero Member
*
Offline Offline

Posts: 1715466228

View Profile Personal Message (Offline)

Ignore
1715466228
Reply with quote  #2

1715466228
Report to moderator
btcbot (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 105



View Profile
August 10, 2017, 07:37:23 AM
 #2

Sorry to respond to my own question, but why can't I type in a public address and get the privkey?  Shouldn't I cryptographically verify it? 

Don't tip me... tip the Riseup folks who protect activists around the world.
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4179



View Profile
August 10, 2017, 07:49:54 AM
 #3

I've been trying to generate specific change addresses that I see in my watch-only offline wallet so that I can sweep their private keys to get my BCC tokens.

I've tried create_new_address (with a 200 for loop) and I've yet to generate this address.  I've tried typing in the public address and it seems to not recognize it.

Any help would be appreciated!
Are you using the xpub?

Try increasing the gap limit
Code:
wallet.storage.put('gap_limit',20)
.

It will generate addresses till it sees the one with balance and generate 20 extra from that point. That is if you have no other coins in any other address.
Sorry to respond to my own question, but why can't I type in a public address and get the privkey?  Shouldn't I cryptographically verify it? 
Then everyone would have access to every single address in the world. The public address is known by everyone once you spend an input from an address. You can get the public key from the private key but not the other way round.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
btcbot (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 105



View Profile
August 10, 2017, 08:08:02 AM
 #4

Thanks for your response... 

I've got a watch-only wallet which shows me the addresses with coins on Windows so I know which ones I need to sweep.  (I took a photograph with an old camera to record those). 

Then I'm going offline, on Linux, generating my wallet from seed. 

First thing I did was increase the gap limit to 200 and that does not add new change addresses to my address list, only regular addresses.  Offline, there is no record of usage or coins at each address, of course. 

As I posted, I've also used create_new_address, but it's yet to create those few change addresses I need.  I generated about 200 already and am searching for the address with a text editor. 

Sorry to confuse, I meant to ask, in the second question, why I couldn't type a public address from within the console to getprivatekeys().  Does Electrum really need to 'generate' them to see if they're mine and that I have authority to see the private key?

Thanks again for your help...

Don't tip me... tip the Riseup folks who protect activists around the world.
btcbot (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 105



View Profile
August 10, 2017, 08:50:54 AM
 #5

A little more research and I found a solution:

From console:

wallet.storage.put('gap_limit', 100)

wallet.gap_limit_for_change = 100

All of my change addresses showed up (in red, but I could access the private keys to sweep them).

 Grin Grin Grin

Don't tip me... tip the Riseup folks who protect activists around the world.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 10, 2017, 08:52:51 AM
 #6

Did you use create_new_address(False) or create_new_address(True)?

False creates "Receive" addresses
True creates "Change" addresses

Also, unless your watch only wallet was created with the Master Public Key from your seed... generating new change addresses may not be generating change addresses that are related to your seed.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
btcbot (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 105



View Profile
August 10, 2017, 09:01:59 AM
 #7

I used '0' so that must have been why it didn't work.

Thanks!

Don't tip me... tip the Riseup folks who protect activists around the world.
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!