I created a new wallet (using go-ethereum) to use on polygon Mumbai (testnet) and end up to have found same address (hence same private Key) on etherscan that was active 6 years ago and stop being Active 3 years ago. And also Active on binance 110 days ago... I'm still puzzled if i hit a (worthless) impossible jackpot or computer random Is weakiest than i thought. Also i notice It cause my wallet was emptied evry time (on Mumbai, so no value) by someone else (i Hope the owner of the other 2 activities on BnB and eth).
import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "golang.org/x/crypto/sha3" ) privateKey, err := crypto.GenerateKey() if err != nil { return fmt.Errorf("%d Cannot generate crypto key: %v", err) } privateKeyBytes := crypto.FromECDSA(privateKey) privateKeyString := hexutil.Encode(privateKeyBytes)[2:] publicKeyECDSA := privateKey.PublicKey publicKeyBytes := crypto.FromECDSAPub(&publicKeyECDSA) publicKeyString := hexutil.Encode(publicKeyBytes)[4:] hash := sha3.NewLegacyKeccak256() hash.Write(publicKeyBytes[1:]) addressClean := crypto.PubkeyToAddress(publicKeyECDSA)
FYI generateKey call
return ecdsa.GenerateKey(S256(), rand.Reader)
that use
randutil.MaybeReadByte(rand)
imported from
"crypto/internal/randutil"
edit: added the code for everyone to see
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments