Skip to content

Commit ba336b1

Browse files
[proto] add registry record proto message
This message will serve as the input to the various downstream SKU-owner registry service(s). Signed-off-by: Tim Trippel <[email protected]>
1 parent 3608d8f commit ba336b1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/proto/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ go_test(
4646
embed = [":validators"],
4747
deps = [":device_testdata"],
4848
)
49+
50+
proto_library(
51+
name = "registry_record_proto",
52+
srcs = ["registry_record.proto"],
53+
)

src/proto/registry_record.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright lowRISC contributors (OpenTitan project).
2+
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
syntax = "proto3";
6+
7+
package ot_registry_record;
8+
9+
option go_package = "registry_record_go_pb";
10+
11+
// OpenTitan Registry Record sent to a registry service.
12+
//
13+
// This will get sent to one (or many) registry service(s).
14+
message RegistryRecord {
15+
// Device ID encoded as a hex string.
16+
string device_id = 1;
17+
// Verion number indicating version of device data field below.
18+
sfixed32 version = 2;
19+
// Device data encoded as a variable length bytes payload.
20+
bytes data = 3;
21+
}

0 commit comments

Comments
 (0)