Is the G in elliptical curve same for bitcoin and ethereum? If yes then why can't we send bitcoin and ethereum to same public address? If no then what's the reason behind implementing like that? if they use the same method then one can send both the coin to same public address right?
Is the G in elliptical curve same for bitcoin and ethereum?
Yes Ethereum also uses the secp256k1 curve that is defined using the generator point:
Gx = 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798 Gy = 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8
If yes then why can't we send bitcoin and ethereum to same public address?
For a number of reasons. Firstly, Bitcoin and Ethereum define addresses differently. Bitcoin uses the bech32 format starting
bc1 and Ethereum uses a hexadecimal string starting
0x. Secondly, Bitcoin addresses contain a checksum at the end of the address (to flag incorrectly typed addresses) whilst Ethereum addresses don't. Thirdly, Ethereum only encodes the last 20 bytes of the public key into the address. Fourthly it is not just a raw public key that is encoded in a Bitcoin address. Bitcoin uses a scripting language "Script" that it uses to outline the conditions needed for the coins to move which generally includes requiring at least one signature associated with a particular public key. These conditions are baked into the address.
So yes don't try sending Bitcoin and Ethereum to the same address, you will lose your coins.
2The most important reason is that they are simply separate unconnected systems. Even if they used the same addresses, and the same scripting system, separate systems can't interact. They're just different currencies, protected by similar cryptography. Jul 26, 2022 at 12:14
The way I understood the question was he wanted to send Bitcoin and Ether to the same address so the Bitcoin system told him his Bitcoin "balance" on that address and the Ethereum system told him is Ether "balance" on that address. That is theoretically possible (assuming addresses were defined exactly the same on both systems) if the Bitcoin system wasn't aware of the Ethereum system and vice versa? Jul 26, 2022 at 12:22
1Ah, that's fair. I had interpreted the question as "why can't I send my BTC to my ETH wallet, or vice verse, if they use the same cryptography?", but your interpretation may make more sense. We'll need to wait for OP. Jul 26, 2022 at 12:25