Skip to content

Commit

Permalink
support invalid details for invalid beacons and witnesses (#366)
Browse files Browse the repository at this point in the history
* support invalid details for invalid beacons and witnesses
  • Loading branch information
andymck committed Aug 17, 2023
1 parent 7d85f19 commit 39c9f23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/service/poc_lora.proto
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ message lora_valid_witness_report_v1 {
uint32 reward_unit = 5;
}

message invalid_details {
oneof data { string denylist_tag = 1; }
}

// tagged invalid beacon report produced by the verifier
message lora_invalid_beacon_report_v1 {
// Timestamp at ingest in millis since unix epoch
Expand All @@ -160,6 +164,9 @@ message lora_invalid_beacon_report_v1 {
/// The asserted elevation of the gateway in AGL ( above ground level)
/// derived from gateway metadata
int32 elevation = 6;
// provides any additional context for invalid reason
// for example the deny list version used as part of the deny list check
invalid_details invalid_details = 7;
}

// tagged invalid witness report produced by the verifier
Expand All @@ -171,6 +178,9 @@ message lora_invalid_witness_report_v1 {
// the participant to which the reason applies,
// which rendered the report as invalid
invalid_participant_side participant_side = 4;
// provides any additional context for invalid reason
// for example the deny list version used as part of the deny list check
invalid_details invalid_details = 5;
}

// tagged verified witness report produced by the verifier
Expand All @@ -196,6 +206,9 @@ message lora_verified_witness_report_v1 {
/// The asserted elevation of the gateway in AGL ( above ground level)
/// derived from gateway metadata
int32 elevation = 10;
// provides any additional context for invalid reason
// for example the deny list version used as part of the deny list check
invalid_details invalid_details = 11;
}

// POC report produced by the verifier
Expand Down

0 comments on commit 39c9f23

Please sign in to comment.