2014-03-25 18:20:36 +00:00
|
|
|
/**
|
|
|
|
* Configuration format for TREZOR plugin
|
|
|
|
*
|
|
|
|
* @author Marek Palatinus <slush@satoshilabs.com>
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
2014-03-10 18:24:33 +00:00
|
|
|
|
2016-12-21 20:17:12 +00:00
|
|
|
// Sugar for easier handling in Java
|
|
|
|
option java_package = "com.satoshilabs.trezor.protobuf";
|
|
|
|
option java_outer_classname = "TrezorConfig";
|
|
|
|
|
2014-03-10 18:24:33 +00:00
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
|
2014-03-25 18:20:36 +00:00
|
|
|
/**
|
|
|
|
* Device Descriptor used in Configuration
|
|
|
|
*/
|
2014-03-10 18:24:33 +00:00
|
|
|
message DeviceDescriptor {
|
2014-03-25 18:20:36 +00:00
|
|
|
optional uint32 vendor_id = 1; // USB vendor ID
|
|
|
|
optional uint32 product_id = 2; // USB product ID
|
|
|
|
optional string serial_number = 3; // USB serial number
|
|
|
|
optional string path = 4; // USB device path
|
2014-03-10 18:24:33 +00:00
|
|
|
}
|
|
|
|
|
2014-03-25 18:20:36 +00:00
|
|
|
/**
|
|
|
|
* Plugin Configuration
|
|
|
|
*/
|
2014-03-10 18:24:33 +00:00
|
|
|
message Configuration {
|
2014-03-25 18:20:36 +00:00
|
|
|
repeated string whitelist_urls = 1; // allowed URLs for plugin
|
|
|
|
repeated string blacklist_urls = 2; // forbidden URLs for plugin
|
|
|
|
required google.protobuf.FileDescriptorSet wire_protocol = 3; // compiled specification of write protocol (serialized using "protoc -o")
|
|
|
|
repeated DeviceDescriptor known_devices = 4; // descriptors of allowed devices
|
|
|
|
optional uint32 valid_until = 5; // expiration timestamp
|
2014-03-10 18:24:33 +00:00
|
|
|
}
|