trezor / python-trezor

:snake: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU Lesser General Public License v3.0
201 stars 194 forks source link

Sign Bitcoin TX #293

Closed sszaharovd closed 6 years ago

sszaharovd commented 6 years ago

Hi. I have a Tresor T model and I try to sign a Bitcoin transaction through the library python-trezor. However, the documentation for signing the Bitcoin transaction is obsolete and is not relevant. As an example import trezorlib.types_pb2 - this import is already missing. Could you explain how you can use your library to sign a bitcoin transaction?

prusnak commented 6 years ago

Look at the unit tests here to get the idea: https://github.com/trezor/python-trezor/blob/master/trezorlib/tests/device_tests/test_msg_signtx.py

Also fixes to documentation are more than welcome!

sszaharovd commented 6 years ago

Thanks for the quick response. I've dealt with the imports with your link.