Crate demo

source ·
Expand description

Demo. Imports functions directly from the server and the client bypassing all the HTTP stuff. Runs a demo/benchmark described step-by-step with the Alice/Bob/Mallory roles.

Constants§

  • ALI_N 🔒
    Number of blips detected only by Alice. They are previously unknown to the system so this is essentially noise.
  • BOB_ALI_N 🔒
    Number of blips uploaded by Bob and detected by Alice
  • BOB_N 🔒
    Number of blips uploaded by Bob
  • Number of blips to generate around the planet

Functions§

  • Generates random blips around Bob’s position simulating datapoints from somebody’s home and surroundings
  • Generates random blips around the world with a fixed PRNG seed. The distribution is not meant to be realistic in any way.
  • Calculate distance in meters between two locations using Haversine’s formula
  • main 🔒
  • store 🔒
  • t 🔒
    Logs elapsed time