func NewWalletFromPrivateKey(key string) *Wallet {
	privateKey, err := crypto.HexToECDSA(key)
	if err != nil {
		fmt.Printf("Error: %v", err)
	}

	return &Wallet{
		Address:    crypto.PubkeyToAddress(privateKey.PublicKey),
		PrivateKey: privateKey,
	}
}
// NewWalletFromPrivateKey returns a new wallet object corresponding
// to a given private key
NewWalletFromPrivateKey returns a new wallet object corresponding
to a given private key
// NewWalletFromPrivateKey returns a new wallet object corresponding // to a given private key
func NewWalletFromPrivateKey(key string) *Wallet {
	privateKey, err := crypto.HexToECDSA(key)
	if err != nil {
		fmt.Printf("Error: %v", err)
	}
	return &Wallet{
		Address:    crypto.PubkeyToAddress(privateKey.PublicKey),
		PrivateKey: privateKey,
	}
}
func NewWalletFromPrivateKey ( key string ) * Wallet { privateKey , err := crypto . HexToECDSA ( key ) if err != nil { fmt . Printf ( " " , err ) } return & Wallet { Address : crypto . PubkeyToAddress ( privateKey . PublicKey ) , PrivateKey : privateKey , } }
NewWalletFromPrivateKey returns a new wallet object corresponding
to a given private key
NewWalletFromPrivateKey returns a new wallet object corresponding to a given private key