Skip to content

Commit

Permalink
include attestion in receipt and witness reports
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jul 4, 2022
1 parent 3de41dd commit ee4e5b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/blockchain_poc_core_v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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;
}
}
1 change: 1 addition & 0 deletions src/service/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ message gateway_resp_v1 {
}
uint64 block_time = 10;
uint64 block_age = 11;
bytes address = 19;
}

/* version */
Expand Down

0 comments on commit ee4e5b9

Please sign in to comment.