Skip to content

Client Server flow

Nitzan Tomer edited this page Dec 11, 2017 · 1 revision

Init

  1. Client sends init request to server
  2. Server returns location of words file (words file containing only words)
  3. Client downloads file

Report spam

  1. Client sends a report request containing a list of words (sentence, paragraph, whatever)
  2. Server receives said request and updates it's "spam dictionary"

Check whether a message is spammy

  1. Client finds indices for the words in the message
  2. Client then randomly shuffles the order of these indices and adds more random indices and then sends the list of indices
  3. Server returns a vector per index
  4. Client sums up the vector and sends the real value back to the server
  5. Server checks whether or not the value represents a spammy message
Clone this wiki locally