mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
c99988312a
[no changelog]
40 lines
1.0 KiB
Protocol Buffer
40 lines
1.0 KiB
Protocol Buffer
syntax = "proto2";
|
|
package hw.trezor.messages.thp;
|
|
|
|
// Sugar for easier handling in Java
|
|
option java_package = "com.satoshilabs.trezor.lib.protobuf";
|
|
option java_outer_classname = "TrezorMessageThp";
|
|
|
|
option (include_in_bitcoin_only) = true;
|
|
|
|
import "messages.proto";
|
|
|
|
/**
|
|
* Only for internal use.
|
|
* @embed
|
|
*/
|
|
message ThpCredentialMetadata {
|
|
option (internal_only) = true;
|
|
optional string host_name = 1; // Human-readable host name
|
|
}
|
|
|
|
/**
|
|
* Only for internal use.
|
|
* @embed
|
|
*/
|
|
message ThpPairingCredential {
|
|
option (internal_only) = true;
|
|
optional ThpCredentialMetadata cred_metadata = 1; // Credential metadata
|
|
optional bytes mac = 2; // Message authentication code generated by the Trezor
|
|
}
|
|
|
|
/**
|
|
* Only for internal use.
|
|
* @embed
|
|
*/
|
|
message ThpAuthenticatedCredentialData {
|
|
option (internal_only) = true;
|
|
optional bytes host_static_pubkey = 1; // Host's static public key used in the handshake
|
|
optional ThpCredentialMetadata cred_metadata = 2; // Credential metadata
|
|
}
|