Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: crofrihosl on September 09, 2019, 03:53:58 PM



Title: the relation with private keys and pubic keys?
Post by: crofrihosl on September 09, 2019, 03:53:58 PM
for example

i have this address:

1crof2axcuUxNc6aBkNM9aoawoJxpf8vg

containing charterers : 1crof2axuUN6BkM9wJp8vg [22 charterers ]


is it possible to generate some addresses somehow using only this  [22 charterers ]

base22




 


Title: Re: the relation with private keys and pubic keys?
Post by: bitmover on September 09, 2019, 04:39:47 PM
You are looking for a vanity generator.

You want more 1crof addresses, right?
Those programs work like this.  You specify that you want 1crof in your address.

So this program will bruteforce thousands of privatekeys and see if any of them matches 1cfofs in their public addresses. It is a long a slow process. The longest is the phrase you want, the longest will be your waiting time until the program finds the privatekey for that address.

There is this guide dome by 1miau
https://bitcointalk.org/index.php?topic=5096373.0


Title: Re: the relation with private keys and pubic keys?
Post by: crofrihosl on September 09, 2019, 08:08:50 PM
You are looking for a vanity generator.

You want more 1crof addresses, right?
Those programs work like this.  You specify that you want 1crof in your address.

So this program will bruteforce thousands of privatekeys and see if any of them matches 1cfofs in their public addresses. It is a long a slow process. The longest is the phrase you want, the longest will be your waiting time until the program finds the privatekey for that address.

There is this guide dome by 1miau
https://bitcointalk.org/index.php?topic=5096373.0

vanity almost old like bitcoin :P

1crof2axcuUxNc6aBkNM9aoawoJxpf8vg
5JFJnRWLYgPV8vrhzmox8rHru42ACUnM8Y44eG7QtFqPUCyHdRP

not bruteforce generating and comparing ;D totally offline no public database needed  ;D

i am looking for some codes that only use a specific characters not all base58 ?


Title: Re: the relation with private keys and pubic keys?
Post by: Thirdspace on September 09, 2019, 08:47:12 PM
not bruteforce generating and comparing ;D totally offline no public database needed  ;D
there's no other way to do that, and you can do it offline
finding/generating specific public address can only be done
by randomly generating private key and checking the corresponding public address

i am looking for some codes that only use a specific characters not all base58 ?
by adding the -r regex (regular expression) option to the vanitygen
you can set it to find addresses contain only those 22 alphabets
I'm not sure this right but for example, regex ^1crof[0-9].*$
it will find addresses that start with 1crof and followed only by numbers


Title: Re: the relation with private keys and pubic keys?
Post by: khaled0111 on September 09, 2019, 08:57:49 PM
i am looking for some codes that only use a specific characters not all base58 ?
No, unfortunately this is not possible.
The only way to go is like this: private key -> public key -> address.

If  you change one bit in the private key, you will get a completely different address.

You have to use a vanity address generator then remove the generated addresses that doesn't meet the criteria.

Also, finding such an address will take longer than you think.



Title: Re: the relation with private keys and pubic keys?
Post by: crofrihosl on September 09, 2019, 09:51:19 PM
not bruteforce generating and comparing ;D totally offline no public database needed  ;D
there's no other way to do that, and you can do it offline
finding/generating specific public address can only be done
by randomly generating private key and checking the corresponding public address

i am looking for some codes that only use a specific characters not all base58 ?
by adding the -r regex (regular expression) option to the vanitygen
you can set it to find addresses contain only those 22 alphabets
I'm not sure this right but for example, regex ^1crof[0-9].*$
it will find addresses that start with 1crof and followed only by numbers

this is what i was looking for ;)


Title: Re: the relation with private keys and pubic keys?
Post by: bitmover on September 09, 2019, 09:52:28 PM
i am looking for some codes that only use a specific characters not all base58 ?
No, unfortunately this is not possible.
The only way to go is like this: private key -> public key -> address.

It is not possible because you are not generating public addresses , but privatekeys.

You are thinking that you need a public address of just a few characters, but that's not what you need. You need the private keys of that address. Understand the difference?


Edit: I am agreeing with you Khaled001. Just complementing


Title: Re: the relation with private keys and pubic keys?
Post by: crofrihosl on September 09, 2019, 09:58:59 PM
Also, finding such an address will take longer than you think.

you can't
your chance few trillions of trillions lighting years


Title: Re: the relation with private keys and pubic keys?
Post by: crofrihosl on September 09, 2019, 10:05:57 PM
i am looking for some codes that only use a specific characters not all base58 ?
No, unfortunately this is not possible.
The only way to go is like this: private key -> public key -> address.

It is not possible because you are not generating public addresses , but privatekeys.

You are thinking that you need a public address of just a few characters, but that's not what you need. You need the private keys of that address. Understand the difference?

is it possible to get p2pkh bitcoin addresses throw a passphrase or seed?


Title: Re: the relation with private keys and pubic keys?
Post by: khaled0111 on September 09, 2019, 11:04:12 PM
It is not possible because you are not generating public addresses , but privatekeys.

You are thinking that you need a public address of just a few characters, but that's not what you need. You need the private keys of that address. Understand the difference?
I think you misunderstood what I said  :)
I will refolmulate. I said that it is impossible because he has to start from a private key to generate a public address (one way functions), and every private key will generate a completely different address.


Title: Re: the relation with private keys and pubic keys?
Post by: odolvlobo on September 10, 2019, 09:49:02 PM
I don't know if your question has been answered, but I'll summarize.

Currently, the only known way to generate addresses with a specific criteria (such as 1crof..., or using only 22 of the 58 possible characters) is to repeatedly generate private keys until one is generated that has an address that meets your criteria.

That is exactly what vanitygen does. From the docs:

Quote
Vanitygen can search for exact prefixes or regular expression matches.  When searching for exact prefixes, vanitygen will ensure that the
prefix is possible, will provide a difficulty estimate, and will run about 30% faster.  Exact prefixes are case-sensitive by default, but may be searched case-insensitively using the "-i" option.  Regular expression patterns follow the Perl-compatible regular expression language.

Github repo: https://github.com/samr7/vanitygen