Commit Graph

130 Commits

Author SHA1 Message Date
Vecna 8ea6940397 Listen for reports
Downgrade hyper, listen for new reports, TODO: test
2024-03-22 23:42:22 -04:00
Vecna 58ab310a40 Switch REQUIRE_BRIDGE_TOKEN back to constant for now 2024-03-15 13:24:00 -04:00
Vecna 5935d3d78c Rename bridge_info::BridgeInfo to disambiguate 2024-03-15 11:32:17 -04:00
Vecna 68137981fc One bridge may be in multiple buckets 2024-03-15 02:24:52 -04:00
Vecna 4f5bec56ad Add distributor enum so we know where to send NRs
For now, I'm not adding this to PRs because PRs are very Lox-specific
2024-03-14 18:09:24 -04:00
Vecna 548c94f834 Add some necessary traits 2024-02-28 16:07:13 -05:00
Vecna 6448537c4b One verify function for positive reports 2024-02-28 16:06:58 -05:00
Vecna 4f88df6171 Create struct for bridge info which must be externally provided 2024-02-28 15:26:22 -05:00
Vecna 495f196107 Use one function for verifying negative reports 2024-02-28 14:10:45 -05:00
Vecna 9412817a66 Remove unused dependencies 2024-02-28 12:01:05 -05:00
Vecna d06542f99c Don't recompute H when verifying positive reports 2024-02-28 11:57:48 -05:00
Vecna c1b058ce4e cargo-fmt 2024-02-26 18:01:07 -05:00
Vecna cc670963c5 Check that date in Lox proof matches date in PR 2024-02-26 18:00:43 -05:00
Vecna 3a6423d2ba Space things out for better readability 2024-02-25 17:42:30 -05:00
Vecna cde22fef67 Use bridge-stats-end if available, refactor db to counts of reports 2024-02-25 17:38:37 -05:00
Vecna cc86baa4b5 Disallow empty country code in negative reports 2024-02-21 15:34:29 -05:00
Vecna 28233ec8a5 Use map for negative reports 2024-02-21 15:15:39 -05:00
Vecna 50ce57765d Add verify functions for NRs 2024-02-21 03:38:55 -05:00
Vecna 98fe935d7a Check bridge token fields when deserializing 2024-02-21 03:09:34 -05:00
Vecna d971e420a2 Add verify function for PRs, doesn't handle Lox proof verification 2024-02-20 17:12:34 -05:00
Vecna e4ee46866a Main method to download and process extra-infos 2024-02-07 18:42:08 -05:00
Vecna 08cfacbf85 Code for processing extra-infos files 2024-02-07 18:36:40 -05:00
Vecna 4a56229c5d Make reports their own files 2024-02-07 18:35:53 -05:00
Vecna 1e44e16bb1 Check fields when deserializing user reports 2024-01-22 23:06:50 -05:00
Vecna 76dd724613 Add Lox proof for positive reports 2024-01-17 18:53:40 -05:00
Vecna 326d7e5560 Clean up enum definitions/shared behavior, add struct creation functions 2023-12-05 19:55:33 -05:00
Vecna 1f21eeeb53 Make bridge tokens optional 2023-12-05 18:05:44 -05:00
Vecna 086e1a6a70 Add hash of bucket as type of proof of bridge knowledge 2023-11-28 17:56:49 -05:00
Vecna e153d58fd2 Define initial data structures 2023-11-28 13:18:08 -05:00
Vecna 7f375eaca8 Initial commit 2023-11-09 12:50:51 -05:00