From 39c9f23f420bce305197788d2984fd8ffec8f385 Mon Sep 17 00:00:00 2001 From: andymck Date: Thu, 17 Aug 2023 17:14:04 +0100 Subject: [PATCH] support invalid details for invalid beacons and witnesses (#366) * support invalid details for invalid beacons and witnesses --- src/service/poc_lora.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/service/poc_lora.proto b/src/service/poc_lora.proto index 7b9374b5..f2005ce2 100644 --- a/src/service/poc_lora.proto +++ b/src/service/poc_lora.proto @@ -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 @@ -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 @@ -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 @@ -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