Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions willow/proto/willow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ cc_proto_library(
proto_library(
name = "key_proto",
srcs = ["key.proto"],
deps = [
"@protobuf//:timestamp_proto",
],
)

cc_proto_library(
Expand Down
9 changes: 9 additions & 0 deletions willow/proto/willow/key.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ syntax = "proto3";

package secure_aggregation.willow;

import "google/protobuf/timestamp.proto";

option java_multiple_files = true;
option java_outer_classname = "KeyProto";

Expand All @@ -29,4 +31,11 @@ message Key {
// The raw key material. This is the serialized bytes of the key material
// returned by the key generation service.
bytes key_material = 2;

// The timestamp that indicates when the key was produced. This is used to
// distinguish keys in the same series.
google.protobuf.Timestamp timestamp = 3;

// The session_tag from GenerateKeyRequest for diagnostic purposes.
string session_tag = 4;
}