Bitcoin Forum
July 16, 2024, 05:58:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating BTC and ETH Wallet from the same private key.  (Read 59 times)
krashfire (OP)
Member
**
Offline Offline

Activity: 122
Merit: 11

Life aint interesting without any cuts and bruises


View Profile
Today at 05:59:28 AM
Last edit: Today at 06:22:56 AM by krashfire
 #1

An update from this previous post

https://bitcointalk.org/index.php?topic=5500340.0

where i have added taproot addr among others.

The result will be,

Code:

----------------------------------------
--------- Crypto Address Set 9 ---------

  Private Key (Hexadecimal): 46731fe2aaf7d392d8c835d700e218ce530f07bceecfbe7bdda563bccb9fe27d
  Private Key (Decimal): 31865306878367898143325753650603785580817010066944666973741921704127557001853

  Bitcoin P2PKH (Legacy) Address:
  - Uncompressed: 19rVJHyPAeqGwEe2Y88ScEokNpJyXNYg9h
  - Compressed: 1HfFPCkBPeM9n8oMdJsRBkLv5TsKqpS6eZ

  Bitcoin P2SH-Segwit Address:
  - Bitcoin Address: 3MavunaQnxHH64VhkQCs9eGEsKwfWwRxMg

  Bitcoin Bech32 (Native Segwit v0) Address:
  - Bitcoin Address: bc1qk67axs6mkuuku4ru4mslkt6plzc9jlvul6luk7

  Bitcoin Bech32m (Native Segwit v1) Address:
  - Bitcoin Address: bc1pmuy35pudravslw3v48tnmxnjtav9k9l3nxneqvktnw546pvnt38skhtp6u

  Bitcoin P2TR (Taproot) Address:
  - Bitcoin Address: bc1pqvnugwfratfw7yyg8y3yn9qmyrs8m95ws75ss7wn6cps2yucugckj855g5k

  Ethereum Address:
  - Ethereum Address: 0x050b637ee56b253057d65e2a27072d983795d1d5

  WIF Private Keys:
  - Uncompressed: 5JMK8BffyoRt2ujpW7vV9kvyTAq75VcyNA2LczMcSuromQTg57Q
  - Compressed: Kyaezi5h3hvpFRmzfXZ5FeuEAWPKpqKmnNpubr9yTNJqQieCd3co

  Public Keys:
  - Uncompressed: 0427c43923ead2ef1088392249941b20e07d968e87a90879d3d603051398e2316952725d204255a3b3afc316f394a6605ee5be3b9a13bb084b618be451e5a21d9b
  - Compressed: 0327c43923ead2ef1088392249941b20e07d968e87a90879d3d603051398e23169

----------------------------------------
--------- Crypto Address Set 10 ---------

  Private Key (Hexadecimal): 1e718fbcc43ef27c65aaec995a39fdbce7809075755002897e075785deb2d440
  Private Key (Decimal): 13770031214682617702920419222185887662192733509350067534825001918611160486976

  Bitcoin P2PKH (Legacy) Address:
  - Uncompressed: 1DprDrZavpEvGpxf4m3kfkTb6dvWmFRsss
  - Compressed: 1F2Ytqn4a88wVc8soysByc1Xnf26X4JKkF

  Bitcoin P2SH-Segwit Address:
  - Bitcoin Address: 3Q4Yqp33nxWmXjMBTKK2bS6JjyVpbKUH4t

  Bitcoin Bech32 (Native Segwit v0) Address:
  - Bitcoin Address: bc1qn8wveuy7pram7m9h5zycs7y7yfygyjjja9ylma

  Bitcoin Bech32m (Native Segwit v1) Address:
  - Bitcoin Address: bc1p6cvs38kr6fzkcn5gknq3dvyc52x0vl49pe56wdwjw2p27np6jh4q02lymp

  Bitcoin P2TR (Taproot) Address:
  - Bitcoin Address: bc1pq2m299eh4ny80sqzvwnttspgqq76ymjfek5rg3kffxyhm6x47qp37zx0kl9

  Ethereum Address:
  - Ethereum Address: 0x0893bc713b611733f9fa196f8dfc771e4f5cb2c0

  WIF Private Keys:
  - Uncompressed: 5J3hDrQNzVhgqmnViyR3UCjzV6Tw6dscmHbzE961ntPTdVH43jn
  - Compressed: KxEtXj4C4mgarGfonG17u4pkj17smskQrUHRazh8VXp8XuJDj4Cg

  Public Keys:
  - Uncompressed: 04b6a29737acc877c00263a6b5c028003da26e49cda83446c949897de8d5f0031f5ac4cb48ca44b39439ca43069f4b8899d5c5a0a516b47e0caf06f1912359df56
  - Compressed: 02b6a29737acc877c00263a6b5c028003da26e49cda83446c949897de8d5f0031f



I tried my best to make the code as "readable" as possible.  Do check out the code and give me your opinion. you may clone here if you like it. https://github.com/KrashKrash/btc-addr-generator


KRASH
witcher_sense
Legendary
*
Offline Offline

Activity: 2408
Merit: 4373


🔐BitcoinMessage.Tools🔑


View Profile WWW
Today at 07:38:27 AM
 #2

What is the Segwit v1 and Taproot in your example? How do they generated exactly? I put one of the WIF private keys here https://gugger.guru/cryptography-toolkit/#!/ecc and it shows that not all addresses match your generated info.

Particularly, for private key Kyaezi5h3hvpFRmzfXZ5FeuEAWPKpqKmnNpubr9yTNJqQieCd3co
the corresonding Taproot address is bc1p8a0d52uwlw0c4mhnu3alev6dhctaxw56hm3rwytmswt8ty9zsucse8g3xs
and not bc1pqvnugwfratfw7yyg8y3yn9qmyrs8m95ws75ss7wn6cps2yucugckj855g5k

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
krashfire (OP)
Member
**
Offline Offline

Activity: 122
Merit: 11

Life aint interesting without any cuts and bruises


View Profile
Today at 08:54:27 AM
 #3

What is the Segwit v1 and Taproot in your example? How do they generated exactly? I put one of the WIF private keys here https://gugger.guru/cryptography-toolkit/#!/ecc and it shows that not all addresses match your generated info.

Particularly, for private key Kyaezi5h3hvpFRmzfXZ5FeuEAWPKpqKmnNpubr9yTNJqQieCd3co
the corresonding Taproot address is bc1p8a0d52uwlw0c4mhnu3alev6dhctaxw56hm3rwytmswt8ty9zsucse8g3xs
and not bc1pqvnugwfratfw7yyg8y3yn9qmyrs8m95ws75ss7wn6cps2yucugckj855g5k

oh.. thanks for the info. i shall correct it now.

KRASH
SquirrelJulietGarden
Hero Member
*****
Offline Offline

Activity: 1386
Merit: 754



View Profile
Today at 10:27:29 AM
 #4

I will create two different wallets, one for Bitcoin, and one for Ethereum or any token.

With Ethereum, interaction through smart contracts is risky and I can not be sure that interact with them will not let my money stolen. What if I will lose not only tokens, ETH and also Bitcoin?

Use one wallet for all is convenient but the point here is simple and vital, creating one more wallet is not like a burden in our life so don't let convenience to bring more risk on our money.

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
krashfire (OP)
Member
**
Offline Offline

Activity: 122
Merit: 11

Life aint interesting without any cuts and bruises


View Profile
Today at 10:39:18 AM
 #5

I will create two different wallets, one for Bitcoin, and one for Ethereum or any token.

With Ethereum, interaction through smart contracts is risky and I can not be sure that interact with them will not let my money stolen. What if I will lose not only tokens, ETH and also Bitcoin?

Use one wallet for all is convenient but the point here is simple and vital, creating one more wallet is not like a burden in our life so don't let convenience to bring more risk on our money.
you make a very good point.

KRASH
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!