Get desktop application:
View/edit binary Protocol Buffers messages
* Request: set flags of the device @start @next Success @next Failure
bitmask, can only set bits, not unset
* Request: change language and/or label of the device @start @next Success @next Failure
in degrees from North
* Structure representing passphrase source
Used in:
* Request: Perform backup of the device seed if not backed up using ResetDevice @start @next Success
(message has no fields)
* Request: Abort last operation that required user interaction @start @next Failure
(message has no fields)
* Request: Starts workflow for setting/changing/removing the PIN @start @next Success @next Failure
is PIN removal requested?
* Request: clear session (removes cached PIN, passphrase, etc). @start @next Success
(message has no fields)
* Response: Reply with random data generated by internal RNG @end
chunk of random generated bytes
* Request: Provide additional entropy for seed generation function @next Success
256 bits (32 bytes) of random data
* Response: Ask for additional entropy from host computer @next EntropyAck
(message has no fields)
* Response: Reports various information about the device @end
name of the manufacturer, e.g. "trezor.io"
major version of the firmware/bootloader, e.g. 1
minor version of the firmware/bootloader, e.g. 0
patch version of the firmware/bootloader, e.g. 0
is device in bootloader mode?
device's unique identifier
is device protected by PIN?
is node/mnemonic encrypted using passphrase?
device language
device description label
does device contain seed?
SCM revision of firmware
hash of the bootloader
was storage imported from an external source?
is PIN already cached in session?
is passphrase already cached in session?
is valid firmware loaded?
does storage need backup? (equals to Storage.needs_backup)
device flags (equals to Storage.flags)
device hardware model
reported firmware version if in bootloader mode
reported firmware version if in bootloader mode
reported firmware version if in bootloader mode
reported firmware vendor if in bootloader mode
reported firmware vendor keys (their hash)
report unfinished backup (equals to Storage.unfinished_backup)
report no backup (equals to Storage.no_backup)
* Request: Request a sample of random data generated by hardware RNG. May be used for testing. @start @next Entropy @next Failure
size of requested entropy
* Request: Ask for device details (no device reset) @start @next Features
(message has no fields)
* Request: Reset device to default state and ask for device details @start @next Features
assumed device state, clear session if set and different
this session should always assume empty passphrase
* Request: Load seed and related internal settings from the computer @start @next Success @next Failure
seed encoded as BIP-39 mnemonic (12, 18 or 24 words)
BIP-32 node
set PIN protection
enable master node encryption using passphrase
device language
device label
do not test mnemonic for valid BIP-39 checksum
U2F counter
* Request: Test if the device is alive, device sends back the message in Success response @start @next Success
message to send back in Success message
ask for button press
ask for PIN if set in device
ask for passphrase if set in device
* Request: Start recovery workflow asking user for specific words of mnemonic Used to recovery device safely even on untrusted computer. @start @next WordRequest
number of words in BIP-39 mnemonic
enable master node encryption using passphrase
enable PIN protection
device language
device label
enforce BIP-39 wordlist during the process
7 reserved for unused recovery method
supported recovery type
U2F counter
perform dry-run recovery workflow (for safe mnemonic validation)
* Type of recovery procedure. These should be used as bitmask, e.g., `RecoveryDeviceType_ScrambledWords | RecoveryDeviceType_Matrix` listing every method supported by the host computer. Note that ScrambledWords must be supported by every implementation for backward compatibility; there is no way to not support it.
Used in:
use powers of two when extending this field
words in scrambled order
matrix recovery type
* Request: Ask device to do initialization involving user interaction @start @next EntropyRequest @next Failure
display entropy generated by the device before asking for additional entropy
strength of seed in bits
enable master node encryption using passphrase
enable PIN protection
device language
device label
U2F counter
postpone seed backup to BackupDevice workflow
indicate that no backup is going to be made
* Request: Set U2F counter @start @next Success
counter
* Request: Request device to wipe all sensitive data and settings @start @next Success @next Failure
(message has no fields)
* Request: Computer replies with word from the mnemonic @next WordRequest @next Success @next Failure
one word of mnemonic on asked position
* Response: Device is waiting for user to enter word of the mnemonic Its position is shown only on device's internal display. @next WordAck
* Type of Recovery Word request
Used in: