1// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8
9option java_package = "sync_pb";
10package sync_pb;
11
12message SharedKey {
13  optional int32 epoch = 1;
14  optional bytes wrapped_key = 2;
15  optional bytes member_proof = 3;
16}
17
18message SecurityDomain {
19  optional string name = 1;
20
21  message Member {
22    optional bytes public_key = 1;
23    repeated SharedKey keys = 2;
24  }
25
26  repeated Member members = 2;
27}
28
29message JoinSecurityDomainsRequest {
30  repeated SecurityDomain security_domains = 1;
31}
32