Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Andymck/subscriber mapping support #410

Closed
wants to merge 5 commits into from
Closed
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
24 changes: 24 additions & 0 deletions src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,27 @@ message verified_invalidated_radio_threshold_ingest_report_v1 {
uint64 timestamp = 3;
}

message verified_subscriber_mapping_event_req_v1 {
// The id of the discovery mapping enabled subscriber
bytes subscriber_id = 1;
// the accumulated mapping points the subscriber has earned this epoch
uint64 total_reward_points = 2;
// Unix timestamp in seconds of when the mapping event was generated
uint64 timestamp = 3;
// pubkey of the carrier identity service
bytes carrier_pub_key = 4;
// signed payload of the carrier identity service
bytes signature = 5;
}

message verified_subscriber_mapping_event_resp_v1 { string id = 1; }

message verified_subscriber_mapping_event_ingest_report_v1 {
// Timestamp in milliseconds since unix epoch
uint64 received_timestamp = 1;
verified_subscriber_mapping_event_req_v1 report = 2;
}

enum signal_level {
NONE = 0;
LOW = 1;
Expand Down Expand Up @@ -289,6 +310,9 @@ service poc_mobile {
rpc submit_sp_boosted_rewards_banned_radio(
service_provider_boosted_rewards_banned_radio_req_v1)
returns (service_provider_boosted_rewards_banned_radio_resp_v1);
rpc submit_verified_subscriber_mapping_event(
verified_subscriber_mapping_event_req_v1)
returns (verified_subscriber_mapping_event_resp_v1);
}

message file_info {
Expand Down
Loading