def register_descriptor(self, network, descriptor_name, descriptor_script, datavalues=None):
        """
        RPC call to register a new descriptor wallet, which must contain the hw signer.
        A registration name is provided - if it already exists that record is overwritten.

        Parameters
        ----------
        network : string
            Network to which the descriptor should apply - eg. 'mainnet', 'liquid', 'testnet', etc.

        descriptor_name : string
            Name to use to identify this descriptor wallet registration record.
            If a registration record exists with the name given, that record is overwritten.

        Returns
        -------
        bool
            True on success, implying the descriptor wallet can now be used.
        """
        params = {'network': network, 'descriptor_name': descriptor_name,
                  'descriptor': descriptor_script, 'datavalues': datavalues}
        return self._jadeRpc('register_descriptor', params)

        RPC call to register a new descriptor wallet, which must contain the hw signer.
        A registration name is provided - if it already exists that record is overwritten.

        Parameters
        ----------
        network : string
            Network to which the descriptor should apply - eg. 'mainnet', 'liquid', 'testnet', etc.

        descriptor_name : string
            Name to use to identify this descriptor wallet registration record.
            If a registration record exists with the name given, that record is overwritten.

        Returns
        -------
        bool
            True on success, implying the descriptor wallet can now be used.
        
electrum/plugins/jade/jadepy/jade.py