From 45792698b66690062e4f130912edb772eb4edd45 Mon Sep 17 00:00:00 2001 From: Andrew McKenzie Date: Thu, 28 Apr 2022 15:42:39 +0100 Subject: [PATCH] include attestion in receipt and witness reports --- src/blockchain_poc_core_v1.proto | 12 +++++++++++- src/service/gateway.proto | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/blockchain_poc_core_v1.proto b/src/blockchain_poc_core_v1.proto index 118a075b..e4a318cf 100644 --- a/src/blockchain_poc_core_v1.proto +++ b/src/blockchain_poc_core_v1.proto @@ -6,6 +6,14 @@ enum origin { radio = 1; } +message attestation { + uint64 height = 1; + uint64 block_time = 2; + uint64 block_age = 3; + bytes address = 4; + bytes signature = 5; +} + message blockchain_poc_receipt_v1 { bytes gateway = 1; uint64 timestamp = 2; @@ -21,6 +29,7 @@ message blockchain_poc_receipt_v1 { // Transmit power at which this packet was transmitted // It is x10, for example: 270 = 27db, 36 = 3.6db etc int32 tx_power = 12; + attestation attestation = 13; } message blockchain_poc_witness_v1 { @@ -33,6 +42,7 @@ message blockchain_poc_witness_v1 { float frequency = 7; int32 channel = 8; string datarate = 9; + attestation attestation = 13; } message blockchain_poc_response_v1 { @@ -46,4 +56,4 @@ message blockchain_poc_path_element_v1 { bytes challengee = 1; blockchain_poc_receipt_v1 receipt = 2; repeated blockchain_poc_witness_v1 witnesses = 3; -} \ No newline at end of file +} diff --git a/src/service/gateway.proto b/src/service/gateway.proto index 10eaeb79..2148e4d5 100644 --- a/src/service/gateway.proto +++ b/src/service/gateway.proto @@ -73,6 +73,7 @@ message gateway_resp_v1 { } uint64 block_time = 10; uint64 block_age = 11; + bytes address = 20; } /* version */