def get_identity_pubkey(self, identity, curve, key_type, index=0):
        """
        RPC call to fetch a pubkey for the given identity (slip13/slip17).
        NOTE: this api returns an uncompressed public key

        Parameters
        ----------
        identity : str
            Identity string to format and sign. For example ssh://satoshi@bitcoin.org

        curve : str
            Name of curve to use - currently only 'nist256p1' is supported

        key_type : str
            Key derivation type - must be either 'slip-0013' for an identity pubkey, or 'slip-0017'
            for an ecdh pubkey.

        index : int, optional
            Index number (if require multiple keys/sigs per identity)
            Defaults to 0

        Returns
        -------
        65-bytes
            Uncompressed public key for the given identity and index.
            Consistent with 'sign_identity' or 'get_identity_shared_key', depending on the
            'key_type'.

        """
        params = {'identity': identity, 'curve': curve, 'type': key_type, 'index': index}
        return self._jadeRpc('get_identity_pubkey', params)

        RPC call to fetch a pubkey for the given identity (slip13/slip17).
        NOTE: this api returns an uncompressed public key

        Parameters
        ----------
        identity : str
            Identity string to format and sign. For example ssh://satoshi@bitcoin.org

        curve : str
            Name of curve to use - currently only 'nist256p1' is supported

        key_type : str
            Key derivation type - must be either 'slip-0013' for an identity pubkey, or 'slip-0017'
            for an ecdh pubkey.

        index : int, optional
            Index number (if require multiple keys/sigs per identity)
            Defaults to 0

        Returns
        -------
        65-bytes
            Uncompressed public key for the given identity and index.
            Consistent with 'sign_identity' or 'get_identity_shared_key', depending on the
            'key_type'.

        
electrum/plugins/jade/jadepy/jade.py