# Path: trezorlib/btc.py
# def get_public_node(
#     client,
#     n,
#     ecdsa_curve_name=None,
#     show_display=False,
#     coin_name=None,
#     script_type=messages.InputScriptType.SPENDADDRESS,
# ):
# def get_address(
#     client,
#     coin_name,
#     n,
#     show_display=False,
#     multisig=None,
#     script_type=messages.InputScriptType.SPENDADDRESS,
# ):
# def sign_message(
#     client, coin_name, n, message, script_type=messages.InputScriptType.SPENDADDRESS
# ):
# def verify_message(client, coin_name, address, signature, message):
# def sign_tx(client, coin_name, inputs, outputs, details=None, prev_txes=None):
#     def copy_tx_meta(tx):
#     R = messages.RequestType


import base64
from trezorlib import btc
from trezorlib.tools import parse_path
from .common import TrezorTest
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.





class TestMsgSignmessage(TrezorTest):
    def test_sign(self):
        self.setup_mnemonic_nopin_nopassphrase()

# Path: trezorlib/btc.py
# def get_public_node(
#     client,
#     n,
#     ecdsa_curve_name=None,
#     show_display=False,
#     coin_name=None,
#     script_type=messages.InputScriptType.SPENDADDRESS,
# ):
# def get_address(
#     client,
#     coin_name,
#     n,
#     show_display=False,
#     multisig=None,
#     script_type=messages.InputScriptType.SPENDADDRESS,
# ):
# def sign_message(
#     client, coin_name, n, message, script_type=messages.InputScriptType.SPENDADDRESS
# ):
# def verify_message(client, coin_name, address, signature, message):
# def sign_tx(client, coin_name, inputs, outputs, details=None, prev_txes=None):
#     def copy_tx_meta(tx):
#     R = messages.RequestType


# Path: trezorlib/tests/device_tests/test_msg_signmessage.py
import base64
from trezorlib import btc
from trezorlib.tools import parse_path
from .common import TrezorTest

# This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.





class TestMsgSignmessage(TrezorTest):
    def test_sign(self):
        self.setup_mnemonic_nopin_nopassphrase()

        sig = btc.sign_message(