def sign_message(self, message, keypath): self._check_unlocked() path = tools.parse_path(keypath) result = btc.sign_message(self.client, self.coin_name, path, message) return { "signature": base64.b64encode(result.signature).decode("utf-8") }
def sign_message(self, message: Union[str, bytes], keypath: str) -> str: self._check_unlocked() path = parse_path(keypath) result = btc.sign_message(self.client, self.coin_name, path, message) return base64.b64encode(result.signature).decode("utf-8")