2024-10-08 21:23:56 +00:00
|
|
|
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";
|
|
|
|
|
2024-10-15 15:52:37 +00:00
|
|
|
import "options.proto";
|
2024-10-08 21:23:56 +00:00
|
|
|
|
2024-10-15 15:52:37 +00:00
|
|
|
option (include_in_bitcoin_only) = true;
|
2024-10-08 21:23:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
}
|