state.rs 710 B

1234567891011121314151617181920
  1. use lox_cli::{networking::*, *};
  2. use lox_library::IssuerPubKey;
  3. use std::collections::HashMap;
  4. use x25519_dalek::PublicKey;
  5. pub struct State {
  6. pub la_pubkeys: Vec<IssuerPubKey>,
  7. pub net: HyperNet,
  8. pub net_test: HyperNet,
  9. pub net_tp: HyperNet,
  10. // Probability that if Alice invites Bob, Alice and Bob are in the same
  11. // country. This is in *addition* to the regular probability that Bob is in
  12. // that country by random selection.
  13. pub prob_friend_in_same_country: f64,
  14. pub prob_user_invites_friend: f64,
  15. pub prob_user_is_censor: f64,
  16. pub prob_user_submits_reports: f64,
  17. pub probs_user_in_country: Vec<(String, f64)>,
  18. pub tp_pubkeys: HashMap<u32, PublicKey>,
  19. }