Author

Topic: Bitcoin generation (Read 112 times)

hero member
Activity: 882
Merit: 5818
not your keys, not your coins!
February 15, 2023, 03:28:20 PM
#4
Sure; there are tons of address generators on GitHub [1].
For instance, bitcoinaddress [2] which outputs in the following format.
Code:
from bitcoinaddress import Wallet
wallet = Wallet()
print(wallet)

Private Key HEX: 03902e4f09664bc177fe4e090dcd9906b432b50f15fb6151984475c1c75c35b6
Private Key WIF: 5HqrbgkWPqBy6dvCE7FoUiMuiCfFPRdtRsyi6NuCM2np8qBZxq5
Private Key WIF compressed: KwLdv6T2jmhQbswnYrcL9KZHerTpVyjozp1JNjfP5QuD3GchCwCc
           
Public Key: 04c5389a31ce6149c28ba20d14db8540b2319e5a65000a2919fbf7a6296e7840b53f883a9483fb7f2b43f3eacd857c904d1b70ecc168571b64d8f1ab82b57eea88
Public Key compressed: 02c5389a31ce6149c28ba20d14db8540b2319e5a65000a2919fbf7a6296e7840b5

Public Address 1: 1Bu6YxH64nfvhdDsYNEP8PftoBMqgusdPS   
Public Address 1 compressed: 18i5PtPisxbGiGGEviW7HPcnfNPmcsscwH   
Public Address 3: 38dRrGx5YbrnRWuWcJv5i2XHjYUnHE2wvv 
Public Address bc1 P2WPKH: bc1q2jxe5azr6zmhk3258av7ul6cqtu4eu4mps8f4p   
Public Address bc1 P2WSH: bc1qdveuf0egtfdnd2fnsp0lzfukn2e58czf8323ky6xt8ydew4ecfcqv3ettx 

You can get specific keys and addresses like this.
Code:
from bitcoinaddress import Wallet
wallet = Wallet()

>>> print(wallet.key.hex) # outputs private key as hex
392c91ba6d6f56444348110951ff248469bc0ba1823eda332dc5f98eff3fc8d6

>>> print(wallet.address.mainnet.pubaddrbc1_P2WPKH) #outputs P2WPKH address starting with bc1
bc1q3ucghautezsj5928vgvdmy874495xeddzqdfrj

If you only need the x / y coordinates of the public keys, there is some example Ruby code on the Learnmeabitcoin page about public keys [3].

[1] https://github.com/search?q=bitcoin+address+generator
[2] https://github.com/fortesp/bitcoinaddress
[3] https://learnmeabitcoin.com/technical/public-key
legendary
Activity: 2212
Merit: 5622
Non-custodial BTC Wallet
February 15, 2023, 11:07:53 AM
#3
Hello, is it possible to generate bitcoin addresses very very quickly in this form?

PRIVKEY                                             X                                                                                                                     Y
0x80687e340c49f738b5db81d3dc6f8b      e84402e4b5677ca6a833073abb5ff75d5a5905a048f6dcb075c97230e81c8b0a                  c6f37535f8acf7e8ae56006c851ed6f94f4ff30d3f4df28f56af871a48f8600f

Using your xpub you can generate unlimited addresses very quickly. You don't your private keys to do so.

It you dont have a wallet e, you can just go to iancoleman.io/bip39 and generate as many as you like there.
hero member
Activity: 1414
Merit: 915
🇺🇦 Glory to Ukraine!
February 15, 2023, 11:04:27 AM
#2
If you're looking for a more secure way to manage your Bitcoin keys, you might want to consider using deterministic wallets instead of generating a list of keys. By using a deterministic wallet, you can avoid the need to maintain a long list of keys and instead generate new keys based on a master seed.

To learn more about deterministic wallets and how they work, check out https://en.bitcoin.it/wiki/Deterministic_wallet.
member
Activity: 202
Merit: 16
February 15, 2023, 09:59:27 AM
#1
Hello, is it possible to generate bitcoin addresses very very quickly in this form?

PRIVKEY                                             X                                                                                                                     Y
0x80687e340c49f738b5db81d3dc6f8b      e84402e4b5677ca6a833073abb5ff75d5a5905a048f6dcb075c97230e81c8b0a                  c6f37535f8acf7e8ae56006c851ed6f94f4ff30d3f4df28f56af871a48f8600f
Jump to: