Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/blockchain_poc_core_v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ enum origin {
radio = 1;
}

message attestation {
uint64 height = 1;
uint64 block_time = 2;
uint64 block_age = 3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is block_age being used here?

bytes address = 4;
bytes signature = 5;
}

message blockchain_poc_receipt_v1 {
bytes gateway = 1;
uint64 timestamp = 2;
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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;
}
}
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 = 20;
}

/* version */
Expand Down