func PemDecodePublicKey(pubKey string) (*ecdsa.PublicKey, error) {
	decoded, _ := pem.Decode([]byte(pubKey))
	keyBytes := decoded.Bytes
	genericPublicKey, err := x509.ParsePKIXPublicKey(keyBytes)
	if err != nil {
		return nil, err
	}
	return genericPublicKey.(*ecdsa.PublicKey), nil
}
// PemDecodePublicKey decodes a Pem formatted string into a ecdsa.PublicKey
PemDecodePublicKey decodes a Pem formatted string into a ecdsa.PublicKey
// PemDecodePublicKey decodes a Pem formatted string into a ecdsa . PublicKey
func PemDecodePublicKey(pubKey string) (*ecdsa.PublicKey, error) {
	decoded, _ := pem.Decode([]byte(pubKey))
	keyBytes := decoded.Bytes
	genericPublicKey, err := x509.ParsePKIXPublicKey(keyBytes)
	if err != nil {
		return nil, err
	}
	return genericPublicKey.(*ecdsa.PublicKey), nil
}
func PemDecodePublicKey ( pubKey string ) ( * ecdsa . PublicKey , error ) { decoded , _ := pem . Decode ( [ ] byte ( pubKey ) ) keyBytes := decoded . Bytes genericPublicKey , err := x509 . ParsePKIXPublicKey ( keyBytes ) if err != nil { return nil , err } return genericPublicKey . ( * ecdsa . PublicKey ) , nil }
PemDecodePublicKey decodes a Pem formatted string into a ecdsa.PublicKey
PemDecodePublicKey decodes a Pem formatted string into a ecdsa . PublicKey