- Authors: @anthonyra
- Start Date: 10/01/2020
- Category: Technical
- Initial HIP PR: #47
- Tracking Issue: #50
The current Proof-of-Coverage (PoC) - Onion Packet method has the following issues that this proposal is meant to resolve:
- The data used to validate coverage can be easily modified or spoofed
- RF - RSSI, SNR
- GPS
- Assert Location
- Current rewards associated to PoC is heavily favored in areas with high Hotspot density
(over-coverage)
- Modesto, CA
- New York City, NY
- Port Huron, MI
- The selection process even though based on randomness can be selective due to the nature of the witness list. Since a group of Hotspots can be engineered or placed to only witness themselves this approach allows for isolated groups. This makes it easy to build Virtual Machine (VM) or RF based Hotspot farms. This issue will be resolved with how the Ripple Effect functions
With a new day comes a new way "bad actors" attempt to profit from the current system. To fully understand this proposal you first need to grasp the basics of the current PoC system.
- A challenger selects a target Hotspot.
- Once selected the challenger creates a PoC proof
- Starting with the target Hotspot the challenger selects the next Hotspot in the PoC path based on witness list and hex location (how the 300m limit is enforced).
- The challenger repeats the above step (2.i) but starts with the Hotspot selected to be the next hop.
- The PoC path is created containing 2 - 5 Hotspots (hops)
- The initial challengee receives the PoC proof via the p2p network and decrypts the packet (envelope) it signs it and then returns it to the challenger
- The Hotspot then broadcasts the new envelope that is now one layer less than the previous one via Radio Frequency (LoRa / RF).
- This signal is then picked up by neighboring Hotspots. The receiving Hotspots have two options.
- The Hotspot is the next hop in the PoC proof so it's able to decrypt another layer of the envelope and perform steps (4-5.i).
- The Hotspot isn't the next hop so it signs the envelope and returns to sender (challenger) via p2p.
- Steps 4 - 5 continue until the end of the PoC proof is reached resulting in a PoC receipt. This PoC receipt is then sent from the challenger to the Consensus Group to be validated.
For more details go to: PoC Documentation
- If this HIP is implemented it will effect everyone who owns a Hotspot due to reward changes based on the new PoC method.
- Feedback will be received via the Github
Issues
discussion and on Discord #hips
Island
- A hex-cluster that is created by the island construction method below which visualizes the coverage of an area.Island Hex
- The hex used to create the island ( h3 resolution 8 hex: ~0.45km2 [110 acres] )Hotspot Hex
- The hex associate with Hotspot location currently in the blockchainIsland Rating
- The overall rating of an island based on total # of chains received and longest chain in metersChallenger
- The Hotspot that selects theIsland
to be targeted and thePebble
Hotspots for the challengePebble (challengee)
- Selected by the challenger to start the ripple. There are two types of pebbles, theinitial
andopposite
. The initial pebble receives the packet from challenger and the opposite pebble is the target for that packet. Each must be in a differentIsland Hex
Accpeted Chain
- A chain that starts with aPebble
and ends with aPebble
Hotspot with all Hotspots signatures for each hop
Accepted Chains |
---|
pHi => pHo |
pHi => iH => pHi |
pHi => iH1 ... iHn => pHo |
pHi (blue) = Initial Pebble Hotspot pHo (orange) = Opposite Pebble Hotspot iH (green) = Island Hotspot |
Witness List
- Will be generated from thepHi => iH => pHi
chains. This list won't incorporate Hotspots within the sameIsland Hex
but is included in the PoC due to the island constructionCave
- A cluster of Hotspots that are isolated from the rest of the island
The network will be seperated into islands that are based on the geolocation of Hotspots and their
associated witness lists initially. Once the network is divided into Islands any new Hotspots will
just be added to existing Island
. If the Hotspot is added to a location without a
current Island
or the Island
is less than 7 hexs in size. The original founder (Hotspot) for
that Island
will expand the Island
based on it's witness list.
- The oldest Hotspot based on block age will start the first island
- The witnesses of that Hotspot will be ranked based on block age
- The oldest witness with a different
Island Hex
will select the nextIsland Hex
for the island - Steps 2 - 3 will repeat until the max
Island
size of 7 is reached or no more witnesses exist - The next oldest Hotspot is then selected and either added to an existing island or creates a new one repeating steps 2 - 4 above.
- This is performed until all Hotspots have an associated
Island
andIsland Hex
- The
Challenger
selects theIsland
to be challenged - Then it selects the
Pebble
Hotspots within thatIsland
- Once the
Pebble
Hotspots are selected, theChallenger
will initiate theripple
. The packet being sent will have the challenger information and the expected hexs that packet will pass through to reach maximum chain length. Only the oppositePebble
of the pair can decrypt the packet received to then send back to challenger or Consensus Group - The
Pebble
Hotspots receive the packet- They sign the packet in the spot for their
Island Hex
and broadcast it via RF (LoRa)
- They sign the packet in the spot for their
- There are two options for the Hotspots that receive this broadcasted packet
- If, the receiving Hotspot is the opposite
Pebble
Hotspot, in this case the envelope will be able to be decrypted and sent back to the challenger - If, the receiving Hotspot is not the opposite
Pebble
Hotspot it will perform step (4.i) above
- If, the receiving Hotspot is the opposite
- This "ripple" occurs for a set timeframe or when the
Challenger
receives the expected number of chains from thePebble
Hotspots
To simplify the process and lower the packets (envelopes) "broadcast storm" that the island
experiences due to the ripple
the following limitation will be set.
- Based on the island there will be only
N
number of hexs that the packet can travel. Because of this the packet will haveN
number of segments that can only be signed by a Hotspot that is found in thatIsland Hex
. - If the packet is received by a Hotspot in a hex, where the hex has already been signed for by a different Hotspot the packet would be dropped.
- The Hotspot records all the chains that it's seen. If the Hotspot receives a packet from a chain it's already has seen it drops that packet.
An example for limitation 3 above, if the Hotspot has seen and signed a packet with the following
chain pHo => iH1
it will then drop all following packets that have that same chain. Since it's
possible for multiple Hotspots to reside in the same hex. This limitation is meant to limit the size
of the "broadcast storm" but if it's determined that it wouldn't be that constraining this could be
removed.
- Only the challenger will know which
Pebble
Hotspots were selected - Based on the island size constraint and the fact that the chain is terminated based on the above
Chain Limitations
results in a max number of possibleAccepted Chains
with a specific max chain length - Since it's assumed that all Hotspots within an
Island
are able to communicate due to the size of theIsland Hex
and associated witness lists. Any seperation in theripple
andideal ripple
will indicate the presense of an isolated Hotspot(s) aCave
.
The validation comes from the fact that the Pebble
Hotspots will create the same number of chains
and lengths as each other. The difference how ever is that the chains will be mirror copies of each
other.
This is of course based on ideal conditions and an ideal Island
, in fact there will be differences
between the ideal and real results. Because of these difference an Island Rating
will be
implemented. The closer the ripple
of a challenge gets to the ideal ripple
the higher the
rating.
Island Rating
Factors:
- Did the
ripple
create the max number of chains - What's the longest chain received based on geolocation distance and not hop number
(# of chains received / Max # of Chains) + (Longest Chain / Longest Chain That Block) = 2
Therefore, to receive the max rating the Island
needs to be spread out far enough in attempt to be
the longest chain per that block. When this occurs it increases the chances of Hotspots that
originally weren't in the selected Hotspots witness list to be incorporated in the PoC of the
island.
The Island
than needs to ensure the max number of chains is received by the Target
Hotspot with
all hops signed by the associated Hotspot.
To be accepted the Pebble
Hotspots chains need to match (but will be mirrored)
Figure 1-1 - Initial pebble hop
Figure 1-1 - Example of a Longest Chain, which results in a total of 6 accepted chains
pH (blue) = pebble Hotspot
iH (green) = island Hotspot
tH (orange) = target Hotspot
iHx (grey) = island hex
Max Number of Chains = # of pH * (# of iHx - # of pH)! => 2 * (7-2)! => 2 * 5! = 240
Longest Chain (length) = (# of iHx - # of pH) => (7 - 2) = 5
Max Number of Longest Chain = # of iH = 5
With the above equations, you can calculate the max number of chains and associated lengths. For a 7
hex island the resulting ripple
would have 240 different chains that are 5 hex's in length.
Hotspot: big-corduroy-jaguar
Location: 8c2a32a0e5669ff
Figure 2-1 - The current network view of the target Hotspot (big-corduroy-jaguar)
Figure 2-2 - The island that the target Hotspot occupies
The island that big-corduroy-jaguar resides in contains 16 different Hotspots.
- Max Number of Accepted Chains = 240
- Longest Chain = 5
- Max Number of Longest Chain = 14
With the drastic change in PoC design the reward system would need to be altered as well. For my initial proposal the following reward scheme should be implemented.
- The Reward Pool divided by the sum of all island ratings.
- The Island Reward would be divided by the # of Hotspots in all of the accepted chain(s).
- Each Hotspot in each chain would receive 1 Hotspot reward
1. Island Rewards = ( Reward Pool Size ) / ( Sum of Island Ratings ) * Island Rating
2. Hotspot Reward = Island Rewards / # of Hotspots in all accepted chain(s)
Reward Pool = 10 HNT
Islands contain 7 hexs = 240 possible chains
big-corduroy-jaguar Island Rating = (240 / 240) + ( 14000m / 14000m ) = 2
1. ( 10 HNT ) / ( 2 ) * 2 = 10 HNT
2. (10 HNT) / ( 240 ) = 0.42 HNT per Hotspot
-------------------------------------------------------------------------
big-corduroy-jaguar Island Rating = (240 / 240) + ( 14000m / 14000m ) = 2
Small Island Rating = (240 / 240) + ( 100m / 14000m ) = 1.007142857142857
1. big-corduroy-jaguar Island Rewards = ( 10 HNT ) / ( 3.0071... ) * 2 = 6.6508... HNT
2. (6.6508 HNT) / ( 240 ) = 0.027 HNT per Hotspot
1. Small Island Rewards = ( 10 HNT ) / ( 3.0071... ) * 1.0071... = 3.3491... HNT
2. (3.3491 HNT) / ( 240 ) = 0.014 HNT per Hotspot
With the rewards structured to payout to the Island
you're able to provide the ability for
external sources to added additional funds to that Island
to incentives it's growth.
- It will require a lot of time coding the new model
- This could create new ways to game the system
- Current dense islands will not be rewarded as much
This is a drastic change to the current Proof-of-Coverage model. It will require extensive review and testing.
HIP15 combined with HIP17 are alternatives to this proposal keeping to a lot of the same mechinisms that are in place.
- Currently None
This will impact everyone and turn all current documentations on end.
What metrics can be used to measure the success of this design?
-
Ability to limit
Cave
participation and rewards -
Overall performance of this compared to current PoC model
-
Number of possible "gaming" scenarios are limited
-
Penalize "bad actors" more than highly dense "good actors"