Coder Social home page Coder Social logo

Comments (6)

aussiehash avatar aussiehash commented on June 9, 2024

Entering the correct PIN at the command line gives the following error

Traceback (most recent call last):
  File "./cmdtr.py", line 400, in <module>
    main()
  File "./cmdtr.py", line 392, in main
    res = args.func(cmds, args)
  File "./cmdtr.py", line 147, in sign_message
    ret = self.client.sign_message(args.coin, address_n, args.message)
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 72, in wrapped_f
    ret = f(*args, **kwargs)
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 414, in sign_message
    return self.call(proto.SignMessage(coin_name=coin_name, address_n=n, message=message))
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 119, in call
    resp = self.call(msg)
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 119, in call
    resp = self.call(msg)
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 115, in call
    msg = handler(resp)
  File "/Users/redacted/Downloads/trezor/python-trezor/trezorlib/client.py", line 129, in callback_Failure
    raise PinException(msg.code, msg.message)
trezorlib.client.PinException: (7, u'Invalid PIN')

from python-trezor.

aussiehash avatar aussiehash commented on June 9, 2024

A PinExeception error also occurs with

./cmdtr.py sign_message -n "44'/0'/0'/0/0" "testing 123"

If the session has been cleared.
However if I enter my PIN via mytrezor.com, then close that browser window,

./cmdtr.py sign_message -n "44'/0'/0'/0/0" "testing 123"

Is successful, skipping the PIN entry step

from python-trezor.

prusnak avatar prusnak commented on June 9, 2024

You have to enter "scrambled PIN". That means you are not entering the PIN itself but its positions in the pinmatrix. 7 is top-left, 3 is bottom right (like on numeric keypad).

from python-trezor.

aussiehash avatar aussiehash commented on June 9, 2024

Thank you, I'll try it out. Works perfectly.
Is there supposed/planned to be a pin matrix GUI window ?
https://github.com/trezor/python-trezor/blob/master/cmdtr.py#L314

from python-trezor.

prusnak avatar prusnak commented on June 9, 2024

cmdtr.py does not use GUI elements (for now). it's a commandline app only

from python-trezor.

aussiehash avatar aussiehash commented on June 9, 2024

Using 1password to intercept passwords, I can see the mytrezor.com pinmatrix has the ? mapped to a numeric keypad layout also.

from python-trezor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.