Skip to content

Commit

Permalink
remove fields that are not settled yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Bryce committed Jan 13, 2024
1 parent 1d3689f commit da042e2
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions datatrails-common-api/assets/v2/assets/eventresponse.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,27 @@ message MerklLogEntry {
}
};

// Event trust level commited fields

// versiona and epoch of the tenants log data.
// Tenant log version and log epoch
uint32 log_version = 1;
uint32 log_epoch = 2;
uint64 log_leaf_index = 3; // TBD: this may be redundant.
uint64 log_index = 4; // TBD: this will very likely be included in the trie key

// triekey_committed includes a time ordered sub key for verifiable, roughly
// time aligned, correlation against other indepdendently logged events. Per
// tenant log the id is guaranteed unique. For all practical purposes it is
// system wide unique, but there are operational assumptions to make that
// hold.
bytes triekey_committed = 5 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "256 bit radix 2 merkle trie key for the event. this key includes a unique, time ordered 64 bit, sub key"
read_only: true
}];

// Event trust level commited fields

uint64 log_index = 3;
uint64 log_leaf_index = 4; // TBD: this may be redundant.

// upsert & db query friendly copy of the idtimestamp field from triekey_committed

fixed64 idtimestamp_committed = 6 [
fixed64 idtimestamp_committed = 5 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "unique and time ordered verifiable log entry id"
read_only: true
}];

// TODO: Event trust level confirmed fields

// signature over tenant mmr root

// TODO: Event trust level uniquivocal fields
}

Expand Down Expand Up @@ -204,6 +196,7 @@ message EventResponse {
max_length: 1024
}];

// TODO: rename log_entry -> merkle_log_entry
MerklLogEntry log_entry = 20 [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description:
"verifiable log entry details"
Expand Down

0 comments on commit da042e2

Please sign in to comment.