Documentation ¶
Overview ¶
Package trezor implements a Trezor PIN entry UI.
Unlocking a Trezor requires entering a PIN. The Trezor device itself shows a scrambled PIN entry pad on the screen, and the client software (eg this library) is responsible for providing a blank PIN entry pad for the user to input their PIN with. The user treats that blank entry pad as if it was labeled with numbers in the same order as the scramble they see on their Trezor screen. But the client software (this library) does not know the scramble, so it reports to Trezor the PIN entered by the user as if the entry pad had been a normal 1-9 grid.
This is easier to understand if you have gone through the process yourself. You can do so by using a physical Trezor and the official Trezor wallet software.
This library implements a full-screen terminal-based UI for PIN entry. It is used in [poke](https://github.com/reserve-protocol/poke).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUserCancelledInput = errors.New("user cancelled PIN entry")
Functions ¶
Types ¶
This section is empty.