diff --git a/src/blockchain_poc_core_v1.proto b/src/blockchain_poc_core_v1.proto index 118a075b..5e904f40 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 = 13; } 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 f6fe9322..8ccf4896 100644 --- a/src/service/gateway.proto +++ b/src/service/gateway.proto @@ -69,6 +69,7 @@ message gateway_resp_v1 { } uint64 block_time = 10; uint64 block_age = 11; + bytes address = 19; } /* state channels */