public final class TrezorMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TrezorMessage.Address
Response: Contains address derived from device private seed
@prev GetAddress
|
static interface |
TrezorMessage.AddressOrBuilder |
static class |
TrezorMessage.ApplySettings
Request: change language and/or label of the device
@next Success
@next Failure
@next ButtonRequest
@next PinMatrixRequest
|
static interface |
TrezorMessage.ApplySettingsOrBuilder |
static class |
TrezorMessage.ButtonAck
Request: Computer agrees to wait for HW button press
@prev ButtonRequest
|
static interface |
TrezorMessage.ButtonAckOrBuilder |
static class |
TrezorMessage.ButtonRequest
Response: Device is waiting for HW button press.
|
static interface |
TrezorMessage.ButtonRequestOrBuilder |
static class |
TrezorMessage.Cancel
Request: Abort last operation that required user interaction
@prev ButtonRequest
@prev PinMatrixRequest
@prev PassphraseRequest
|
static interface |
TrezorMessage.CancelOrBuilder |
static class |
TrezorMessage.ChangePin
Request: Starts workflow for setting/changing/removing the PIN
@next ButtonRequest
@next PinMatrixRequest
|
static interface |
TrezorMessage.ChangePinOrBuilder |
static class |
TrezorMessage.CipheredKeyValue
Response: Return ciphered/deciphered value
@prev CipherKeyValue
|
static interface |
TrezorMessage.CipheredKeyValueOrBuilder |
static class |
TrezorMessage.CipherKeyValue
Request: Ask device to encrypt or decrypt value of given key
@next CipheredKeyValue
@next Failure
|
static interface |
TrezorMessage.CipherKeyValueOrBuilder |
static class |
TrezorMessage.ClearSession
Request: clear session (removes cached PIN, passphrase, etc).
|
static interface |
TrezorMessage.ClearSessionOrBuilder |
static class |
TrezorMessage.DebugLinkDecision
Request: "Press" the button on the device
@next Success
|
static interface |
TrezorMessage.DebugLinkDecisionOrBuilder |
static class |
TrezorMessage.DebugLinkFlashErase
Request: Erase block of flash on device.
|
static interface |
TrezorMessage.DebugLinkFlashEraseOrBuilder |
static class |
TrezorMessage.DebugLinkGetState
Request: Computer asks for device state
@next DebugLinkState
|
static interface |
TrezorMessage.DebugLinkGetStateOrBuilder |
static class |
TrezorMessage.DebugLinkLog
Response: Device wants host to log event
|
static interface |
TrezorMessage.DebugLinkLogOrBuilder |
static class |
TrezorMessage.DebugLinkMemory
Response: Device sends memory back
@prev DebugLinkMemoryRead
|
static interface |
TrezorMessage.DebugLinkMemoryOrBuilder |
static class |
TrezorMessage.DebugLinkMemoryRead
Request: Read memory from device
@next DebugLinkMemory
|
static interface |
TrezorMessage.DebugLinkMemoryReadOrBuilder |
static class |
TrezorMessage.DebugLinkMemoryWrite
Request: Write memory to device.
|
static interface |
TrezorMessage.DebugLinkMemoryWriteOrBuilder |
static class |
TrezorMessage.DebugLinkState
Response: Device current state
@prev DebugLinkGetState
|
static interface |
TrezorMessage.DebugLinkStateOrBuilder |
static class |
TrezorMessage.DebugLinkStop
Request: Ask device to restart
|
static interface |
TrezorMessage.DebugLinkStopOrBuilder |
static class |
TrezorMessage.DecryptedMessage
Response: Decrypted message
@prev DecryptedMessage
|
static interface |
TrezorMessage.DecryptedMessageOrBuilder |
static class |
TrezorMessage.DecryptMessage
Request: Ask device to decrypt message
@next Success
@next Failure
|
static interface |
TrezorMessage.DecryptMessageOrBuilder |
static class |
TrezorMessage.ECDHSessionKey
Response: Device provides ECDH session key
@prev GetECDHSessionKey
|
static interface |
TrezorMessage.ECDHSessionKeyOrBuilder |
static class |
TrezorMessage.EncryptedMessage
Response: Encrypted message
@prev EncryptMessage
|
static interface |
TrezorMessage.EncryptedMessageOrBuilder |
static class |
TrezorMessage.EncryptMessage
Request: Ask device to encrypt message
@next EncryptedMessage
@next Failure
|
static interface |
TrezorMessage.EncryptMessageOrBuilder |
static class |
TrezorMessage.Entropy
Response: Reply with random data generated by internal RNG
@prev GetEntropy
|
static class |
TrezorMessage.EntropyAck
Request: Provide additional entropy for seed generation function
@prev EntropyRequest
@next ButtonRequest
|
static interface |
TrezorMessage.EntropyAckOrBuilder |
static interface |
TrezorMessage.EntropyOrBuilder |
static class |
TrezorMessage.EntropyRequest
Response: Ask for additional entropy from host computer
@prev ResetDevice
@next EntropyAck
|
static interface |
TrezorMessage.EntropyRequestOrBuilder |
static class |
TrezorMessage.EstimateTxSize
Request: Estimated size of the transaction
This behaves exactly like SignTx, which means that it can ask using TxRequest
This call is non-blocking (except possible PassphraseRequest to unlock the seed)
@next TxSize
@next Failure
|
static interface |
TrezorMessage.EstimateTxSizeOrBuilder |
static class |
TrezorMessage.EthereumAddress
Response: Contains an Ethereum address derived from device private seed
@prev EthereumGetAddress
|
static interface |
TrezorMessage.EthereumAddressOrBuilder |
static class |
TrezorMessage.EthereumGetAddress
Request: Ask device for Ethereum address corresponding to address_n path
@next PassphraseRequest
@next EthereumAddress
@next Failure
|
static interface |
TrezorMessage.EthereumGetAddressOrBuilder |
static class |
TrezorMessage.EthereumSignTx
Request: Ask device to sign transaction
All fields are optional from the protocol's point of view.
|
static interface |
TrezorMessage.EthereumSignTxOrBuilder |
static class |
TrezorMessage.EthereumTxAck
Request: Transaction payload data.
|
static interface |
TrezorMessage.EthereumTxAckOrBuilder |
static class |
TrezorMessage.EthereumTxRequest
Response: Device asks for more data from transaction payload, or returns the signature.
|
static interface |
TrezorMessage.EthereumTxRequestOrBuilder |
static class |
TrezorMessage.Failure
Response: Failure of the previous request
|
static interface |
TrezorMessage.FailureOrBuilder |
static class |
TrezorMessage.Features
Response: Reports various information about the device
@prev Initialize
@prev GetFeatures
|
static interface |
TrezorMessage.FeaturesOrBuilder |
static class |
TrezorMessage.FirmwareErase
Request: Ask device to erase its firmware
@next Success
@next Failure
|
static interface |
TrezorMessage.FirmwareEraseOrBuilder |
static class |
TrezorMessage.FirmwareUpload
Request: Send firmware in binary form to the device
@next Success
@next Failure
|
static interface |
TrezorMessage.FirmwareUploadOrBuilder |
static class |
TrezorMessage.GetAddress
Request: Ask device for address corresponding to address_n path
@next PassphraseRequest
@next Address
@next Failure
|
static interface |
TrezorMessage.GetAddressOrBuilder |
static class |
TrezorMessage.GetECDHSessionKey
Request: Ask device to generate ECDH session key
@next ECDHSessionKey
@next Failure
|
static interface |
TrezorMessage.GetECDHSessionKeyOrBuilder |
static class |
TrezorMessage.GetEntropy
Request: Request a sample of random data generated by hardware RNG.
|
static interface |
TrezorMessage.GetEntropyOrBuilder |
static class |
TrezorMessage.GetFeatures
Request: Ask for device details (no device reset)
@next Features
|
static interface |
TrezorMessage.GetFeaturesOrBuilder |
static class |
TrezorMessage.GetPublicKey
Request: Ask device for public key corresponding to address_n path
@next PassphraseRequest
@next PublicKey
@next Failure
|
static interface |
TrezorMessage.GetPublicKeyOrBuilder |
static class |
TrezorMessage.Initialize
Request: Reset device to default state and ask for device details
@next Features
|
static interface |
TrezorMessage.InitializeOrBuilder |
static class |
TrezorMessage.LoadDevice
Request: Load seed and related internal settings from the computer
@next ButtonRequest
@next Success
@next Failure
|
static interface |
TrezorMessage.LoadDeviceOrBuilder |
static class |
TrezorMessage.MessageSignature
Response: Signed message
@prev SignMessage
|
static interface |
TrezorMessage.MessageSignatureOrBuilder |
static class |
TrezorMessage.MessageType
Mapping between Trezor wire identifier (uint) and a protobuf message
|
static class |
TrezorMessage.PassphraseAck
Request: Send passphrase back
@prev PassphraseRequest
|
static interface |
TrezorMessage.PassphraseAckOrBuilder |
static class |
TrezorMessage.PassphraseRequest
Response: Device awaits encryption passphrase
@next PassphraseAck
@next Cancel
|
static interface |
TrezorMessage.PassphraseRequestOrBuilder |
static class |
TrezorMessage.Ping
Request: Test if the device is alive, device sends back the message in Success response
@next Success
|
static interface |
TrezorMessage.PingOrBuilder |
static class |
TrezorMessage.PinMatrixAck
Request: Computer responds with encoded PIN
@prev PinMatrixRequest
|
static interface |
TrezorMessage.PinMatrixAckOrBuilder |
static class |
TrezorMessage.PinMatrixRequest
Response: Device is asking computer to show PIN matrix and awaits PIN encoded using this matrix scheme
@next PinMatrixAck
@next Cancel
|
static interface |
TrezorMessage.PinMatrixRequestOrBuilder |
static class |
TrezorMessage.PublicKey
Response: Contains public key derived from device private seed
@prev GetPublicKey
|
static interface |
TrezorMessage.PublicKeyOrBuilder |
static class |
TrezorMessage.RecoveryDevice
Request: Start recovery workflow asking user for specific words of mnemonic
Used to recovery device safely even on untrusted computer.
|
static interface |
TrezorMessage.RecoveryDeviceOrBuilder |
static class |
TrezorMessage.ResetDevice
Request: Ask device to do initialization involving user interaction
@next EntropyRequest
@next Failure
|
static interface |
TrezorMessage.ResetDeviceOrBuilder |
static class |
TrezorMessage.SetU2FCounter
Request: Set U2F counter
@next Success
|
static interface |
TrezorMessage.SetU2FCounterOrBuilder |
static class |
TrezorMessage.SignedIdentity
Response: Device provides signed identity
@prev SignIdentity
|
static interface |
TrezorMessage.SignedIdentityOrBuilder |
static class |
TrezorMessage.SignIdentity
Request: Ask device to sign identity
@next SignedIdentity
@next Failure
|
static interface |
TrezorMessage.SignIdentityOrBuilder |
static class |
TrezorMessage.SignMessage
Request: Ask device to sign message
@next MessageSignature
@next Failure
|
static interface |
TrezorMessage.SignMessageOrBuilder |
static class |
TrezorMessage.SignTx
Request: Ask device to sign transaction
@next PassphraseRequest
@next PinMatrixRequest
@next TxRequest
@next Failure
|
static interface |
TrezorMessage.SignTxOrBuilder |
static class |
TrezorMessage.SimpleSignTx
Request: Simplified transaction signing
This method doesn't support streaming, so there are hardware limits in number of inputs and outputs.
|
static interface |
TrezorMessage.SimpleSignTxOrBuilder |
static class |
TrezorMessage.Success
Response: Success of the previous request
|
static interface |
TrezorMessage.SuccessOrBuilder |
static class |
TrezorMessage.TxAck
Request: Reported transaction data
@prev TxRequest
@next TxRequest
|
static interface |
TrezorMessage.TxAckOrBuilder |
static class |
TrezorMessage.TxRequest
Response: Device asks for information for signing transaction or returns the last result
If request_index is set, device awaits TxAck message (with fields filled in according to request_type)
If signature_index is set, 'signature' contains signed input of signature_index's input
@prev SignTx
@prev SimpleSignTx
@prev TxAck
|
static interface |
TrezorMessage.TxRequestOrBuilder |
static class |
TrezorMessage.TxSize
Response: Estimated size of the transaction
@prev EstimateTxSize
|
static interface |
TrezorMessage.TxSizeOrBuilder |
static class |
TrezorMessage.VerifyMessage
Request: Ask device to verify message
@next Success
@next Failure
|
static interface |
TrezorMessage.VerifyMessageOrBuilder |
static class |
TrezorMessage.WipeDevice
Request: Request device to wipe all sensitive data and settings
@next ButtonRequest
|
static interface |
TrezorMessage.WipeDeviceOrBuilder |
static class |
TrezorMessage.WordAck
Request: Computer replies with word from the mnemonic
@prev WordRequest
@next WordRequest
@next Success
@next Failure
|
static interface |
TrezorMessage.WordAckOrBuilder |
static class |
TrezorMessage.WordRequest
Response: Device is waiting for user to enter word of the mnemonic
Its position is shown only on device's internal display.
|
static interface |
TrezorMessage.WordRequestOrBuilder |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.FileDescriptor |
getDescriptor() |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) |
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
Copyright © 2013–2017 Bitcoin Solutions Ltd. All rights reserved.