lox/crates/lox-library/README.md

51 lines
1.8 KiB
Markdown
Raw Normal View History

2022-04-03 01:54:53 -04:00
# Lox
Lox is a reputation-based bridge distribution system that provides privacy protection to users and their social graph and is open to all users.
Lox is written in rust and requires `cargo` to test. [Install Rust](https://www.rust-lang.org/tools/install)
2022-08-17 10:20:12 -04:00
### To use the docker environment to build the package:
```
./build-lox.sh
./run-lox.sh
```
### To run the tests used for our experimental results run:
2022-04-03 01:54:53 -04:00
```
cargo test --release -- --nocapture TESTNAME
2022-04-03 01:54:53 -04:00
```
2022-04-06 22:37:21 -04:00
Where `TESTNAME` is one of:
2022-04-03 01:54:53 -04:00
2022-04-06 22:33:36 -04:00
```
stats_test_trust_levels
stats_test_invitations
stats_test_percent_blockage_migration_05
stats_test_percent_blockage_migration_010
stats_test_percent_blockage_migration_15
stats_test_percent_blockage_migration_20
stats_test_percent_blockage_migration_25
stats_test_percent_blockage_migration_30
stats_test_percent_blockage_migration_35
stats_test_percent_blockage_migration_40
stats_test_percent_blockage_migration_45
stats_test_percent_blockage_migration_50
stats_test_percent_blockage_migration_55
stats_test_percent_blockage_migration_60
stats_test_percent_blockage_migration_65
stats_test_percent_blockage_migration_70
stats_test_percent_blockage_migration_75
stats_test_percent_blockage_migration_80
stats_test_percent_blockage_migration_85
stats_test_percent_blockage_migration_90
stats_test_percent_blockage_migration_95
stats_test_percent_blockage_migration_100
```
2022-04-06 18:29:11 -04:00
2022-04-06 22:33:36 -04:00
Each test takes approximately 20-30 hours to run.
Note that: our implementation is coded such that the reachability certificate expires at 00:00 UTC. A workaround has been included in each test to pause if it is too close to this time so the request won't fail. In reality, if the bucket is still reachable, a user could simply request a new reachability token if their request fails for this reason (a new certificate should be available prior to the outdated certificate expiring).
2022-04-06 18:29:11 -04:00