In client_policy.js we have the function key_weakly_seen_by_quorum(). It takes four parameters: (test_key, results, quorum_size, check_length). But it never uses the quorum_size.
The comments say it's checking that "test_key has been seen by at least 'quorum_size' notaries in the past 'check_length' days". And we loop on the results and check their end dates. But we have a single variable named 'seen' to track if the key has been seen by any notary. Do we want to keep a count of the notaries that have seen and return true if (count_of_sightings >= quorum_size)?
In client_policy.js we have the function key_weakly_seen_by_quorum(). It takes four parameters: (test_key, results, quorum_size, check_length). But it never uses the quorum_size.
The comments say it's checking that "test_key has been seen by at least 'quorum_size' notaries in the past 'check_length' days". And we loop on the results and check their end dates. But we have a single variable named 'seen' to track if the key has been seen by any notary. Do we want to keep a count of the notaries that have seen and return true if (count_of_sightings >= quorum_size)?