def register_otp(self, otp_name, otp_uri):
        """
        RPC call to register a new OTP record on the hw device.

        Parameters
        ----------
        otp_name : str
            An identifying name for this OTP record

        otp_uri : str
            The uri of this OTP record - must begin 'otpauth://'

        Returns
        -------
        bool
            True if the OTP uri was validated and persisted on the hw
        """
        params = {'name': otp_name, 'uri': otp_uri}
        return self._jadeRpc('register_otp', params)

        RPC call to register a new OTP record on the hw device.

        Parameters
        ----------
        otp_name : str
            An identifying name for this OTP record

        otp_uri : str
            The uri of this OTP record - must begin 'otpauth://'

        Returns
        -------
        bool
            True if the OTP uri was validated and persisted on the hw
        
electrum/plugins/jade/jadepy/jade.py