-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: forestrie event message additions
* Add the confirmation states representing the forestrie trust levels as described here: https://github.com/datatrails/\ epic-8120-scalable-proof-mechanisms/blob/main/event-trust-levels.md * Add the provisional extra details we need in the event for the MERKLE_LOG proof mechanism * Use a single oneof per proof mech details fix: the include paths for openapiv2 build: simplify the include path discovery build: export the proto dependencies under proto-include This means consumers do not need to replicate the tricky go list based include path discovery ci: add a job to check the dockerall task works But note this is disabled due to acr permissions issues For people who can't or wont install protoc and go AB#8859 remove fields that are not settled yet use oneof for proof_details
- Loading branch information
Robin Bryce
committed
Jan 15, 2024
1 parent
c7be1e4
commit db8ea99
Showing
12 changed files
with
206 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Developer Workflow Tests | ||
|
||
on: | ||
# we ony run these on pull request as they significantly hinder developer feed | ||
# back if they are triggered on push | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
docker-all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup go-task | ||
uses: arduino/setup-task@v1 | ||
with: | ||
version: 3.x | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: docker all | ||
run: | | ||
echo "TODO: permissions on accessing our acr prevent this from working" | ||
exit 0 | ||
# task dockerall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go.work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
datatrails-common-api/assets/v2/assets/merklelogentry.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Maintainers, please refer to the style guide here: | ||
// https://developers.google.com/protocol-buffers/docs/style | ||
syntax = "proto3"; | ||
package archivist.v2; | ||
option go_package="github.com/datatrails/go-datatrails-common-api-gen/assets/v2/assets;assets"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
// MerkeLogCommit provides the log entry details for a single mmr leaf. | ||
message MerkleLogCommit { | ||
/* The mmr index */ | ||
uint64 index = 3; | ||
/* The mmr *leaf* index */ | ||
uint64 leaf_index = 4; // TBD: this may be redundant. | ||
/* time ordered and strictly unique per tenant. system wide | ||
* unique with very reasonable operational assumptions. */ | ||
fixed64 idtimestamp = 5; | ||
} | ||
|
||
// The message sent from forestrie to avid notifying that the corresponding | ||
// event is commited to the tenants log. | ||
message MerkleLogCommitMessage { | ||
|
||
// The tenant identity and the event identity for the committed event. | ||
string tenant_identity = 1; | ||
string event_identity = 2; | ||
/* The time portion of idtimestamp that contributed to the hash of the event | ||
* (the idtimestamp is _also_ included. | ||
* This must be copied into event.timestamp_committed when the saas db is updated */ | ||
google.protobuf.Timestamp timestamp = 6; | ||
|
||
uint32 log_version = 3; | ||
uint32 log_epoch = 4; | ||
MerkleLogCommit committed = 5; | ||
} | ||
|
||
|
||
|
||
// The details stored in the SaaS db for a proof mech MERKLE_LOG commitment | ||
message MerklLogEntry { | ||
|
||
// The tenant log version and epoch when the log entry was created. | ||
uint32 log_version = 1; | ||
uint32 log_epoch = 2; | ||
|
||
// Event trust level commited fields | ||
MerkleLogCommit committed = 3; | ||
|
||
// TODO: Event trust level confirmed fields | ||
|
||
// signature over tenant mmr root | ||
|
||
// TODO: Event trust level uniquivocal fields | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.