Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Kostelooscoin on October 07, 2021, 12:33:05 PM



Title: Public key prefix
Post by: Kostelooscoin on October 07, 2021, 12:33:05 PM
Hello, would it be possible to modify this code : https://github.com/albertobsd/keyhunt (https://github.com/albertobsd/keyhunt) to search only on public key prefix ?


Title: Re: Public key prefix
Post by: BlackHatCoiner on October 07, 2021, 02:14:37 PM
What do you mean to search only on public key prefix?

Based on the github page, you can search in both compressed and uncompressed public keys. What beyond this do you want?


Title: Re: Public key prefix
Post by: BitMaxz on October 07, 2021, 03:11:39 PM
If you are talking about public key then the prefixes start with "1" and "3" for legacy wallet then bc1 for segwit there is also segwit that start with "3".

If you are looking for more prefixes related to bitcoin you can check this https://en.bitcoin.it/wiki/List_of_address_prefixes



The post below is right but if you are looking for public key prefixes I think a public key that start with xPub is what you looking for or a public key in a hex that start with 0?

Can you try to use this tool https://iancoleman.io/bip39/ and generate a sample mnemonic and it will show all address and keys as your reference because we don't have a list of prefixes for public key.


Title: Re: Public key prefix
Post by: DannyHamilton on October 07, 2021, 03:36:03 PM
If you are talking about public key then the prefixes start with "1" and "3" for legacy wallet then bc1 for segwit there is also segwit that start with "3".

Those are address prefixes, not public key prefixes.


Title: Re: Public key prefix
Post by: NotATether on October 08, 2021, 07:17:47 AM
The README says that it only supports legacy "1" addresses so you either mean a) you want someone to add "3" and "bc1" support as well - in which case you should open a Github issue or just write to albertobsd on this forum, or b) you really do want to search by public key prefix which is already possible if you pass "-m xpoint" on the command line with a file full of public keys.