From 9643884f68c7553f73a5b2de4b8c9ce10874e100 Mon Sep 17 00:00:00 2001 From: Andrew McKenzie Date: Thu, 10 Mar 2022 13:03:05 +0000 Subject: [PATCH] include attestation data in receipt and witness reports --- src/blockchain_poc_core_v1.proto | 13 ++++++++++++- src/service/gateway.proto | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/blockchain_poc_core_v1.proto b/src/blockchain_poc_core_v1.proto index 118a075b..104fd762 100644 --- a/src/blockchain_poc_core_v1.proto +++ b/src/blockchain_poc_core_v1.proto @@ -4,6 +4,15 @@ package helium; enum origin { p2p = 0; radio = 1; + grpc = 2; +} + +message attestation { + uint64 height = 1; + uint64 block_time = 2; + uint64 block_age = 3; + bytes address = 4; + bytes signature = 5; } message blockchain_poc_receipt_v1 { @@ -21,6 +30,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 +43,7 @@ message blockchain_poc_witness_v1 { float frequency = 7; int32 channel = 8; string datarate = 9; + attestation attestation = 10; } message blockchain_poc_response_v1 { @@ -46,4 +57,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 8f29d45a..82d2356f 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 = 19; } /* state channels */