Commit Graph

249 Commits

Author SHA1 Message Date
Renovate Bot 4e64c8b144 Update Rust crate serde_with to 3.6.0 2024-01-31 23:42:01 +00:00
Renovate Bot 6a10e4e748 Update Rust crate serde_with to 3.5.1 2024-01-23 20:53:03 +00:00
Renovate Bot 60a47c962f Update Rust crate serde_with to 3.5.0 2024-01-22 16:23:32 +00:00
onyinyang 33e24ef5b6 Fix bug in bridge_replace fn, test 2024-01-18 03:34:22 +00:00
Vecna 3f309c9da3 Ensure H is not identity 2024-01-17 18:12:27 -05:00
Vecna 1dbc14d5f1 Uncomment level and bucket checks 2024-01-17 17:41:53 -05:00
Vecna a20300ab62 Fix error causing proof verification failure 2024-01-17 17:37:15 -05:00
Vecna 4240fa3377 Comment out level, bucket proofs to help debug 2024-01-17 16:59:33 -05:00
onyinyang 6afc557ad5 Fix length of bridge bytes and rdsys request interval 2024-01-17 16:43:39 +00:00
Vecna 9cd9e3fab7 Add proof of level 3 or 4, bucket. (Still needs to be debugged.) 2024-01-16 20:22:56 -05:00
Vecna a6c5d789e7 Begin work on LV3+ proof for Troll patrol positive reports 2024-01-15 19:22:59 -05:00
Renovate Bot fb8a5e89a2 Update Rust crate serde to 1.0.195 2024-01-08 16:12:22 +00:00
Renovate Bot 46ba68e1b5 Update Rust crate thiserror to 1.0.56 2024-01-08 16:04:30 +00:00
onyinyang 075d51b088 Add better serde error handling to wasm functions 2023-12-21 17:00:49 +00:00
Cecylia Bocovich 39449cabe8
Respond with error when open invitation buckets are empty
Expand the error type returns by invite() to include a new error for
when there are no available bridges for open invitation users. This
fixes a bug that previously caused a panic when we have no bridges to
distribute.

See https://gitlab.torproject.org/tpo/anti-censorship/lox/-/issues/43
2023-12-20 13:52:42 -05:00
onyinyang c8b6bb9fdd Formatting and clippy changes 2023-12-19 20:02:12 +00:00
Renovate Bot 918a5555b8 Update Rust crate time to 0.3.31 2023-12-19 10:06:55 +00:00
onyinyang 9294fb9fd1
Fixup keywords in all Cargo.toml files 2023-11-23 12:04:00 -05:00
onyinyang 472445a9a5
Add README for rdsys-backend-api, lox-utils and switch to lox-zkp crate 2023-11-23 11:44:05 -05:00
onyinyang a27df0b6c6
Update Cargo.tomls to point to correct README location 2023-11-22 14:49:09 -05:00
onyinyang fdde186c92
Add lox-wasm and lox-utils READMEs and other fmt fixes 2023-11-21 12:57:00 -05:00
Renovate Bot 02df29a249 Update Rust crate serde to 1.0.193 2023-11-21 02:07:04 +00:00
Renovate Bot ec15d0f229 Update Rust crate thiserror to 1.0.50 2023-11-20 16:06:32 +00:00
onyinyang 66f560eb08 Remove unneeded fields from bridgeline and reduce BRIDGE_BYTES 2023-11-14 17:30:45 +00:00
onyinyang cb159405a3 Add watched_blockages to config file and improve naming 2023-11-14 17:30:45 +00:00
Renovate Bot 517faf7576 Update Rust crate serde to 1.0.192 2023-11-09 03:35:30 +00:00
onyinyang e356034dae
Fixup and add comments, README to Lox Library 2023-11-07 18:44:25 -05:00
onyinyang ea37984da6
Update Cargo.toml for each crate for crates.io 2023-11-07 00:12:18 -05:00
onyinyang ba70b1b4d4
Add a MAX_DAILY_BRIDGES to limit invites per day 2023-10-30 15:17:08 -04:00
Renovate Bot 683595abbc Update Rust crate serde to 1.0.190 2023-10-26 04:06:18 +00:00
onyinyang 96a03f1a27
Remove non-implicit invremain attribute fields 2023-10-23 17:11:15 -04:00
onyinyang 3b2ee73bab
Remove backend options 2023-10-23 15:22:14 -04:00
onyinyang ed72b05347
Add changes for bug fix in zkp crate 2023-10-23 15:22:11 -04:00
onyinyang 794f80ab11
Fix bug in DupFilter that breaks serialize/deserialize 2023-10-23 13:55:19 -04:00
onyinyang 2d9febaf14
Update zkp crate dependency address 2023-10-23 13:44:45 -04:00
Renovate Bot 4e436e006b Update Rust crate time to 0.3.30 2023-10-19 15:35:04 +00:00
onyinyang f7f7a36812
Change address of zkp library 2023-10-19 10:58:52 -04:00
onyinyang 8bf938c81b
Update Cargo to point to public github zkp for now 2023-10-19 10:58:32 -04:00
onyinyang 68b5a9c18e
Upgrading several dalek dependencies and rand 2023-10-19 10:58:09 -04:00
onyinyang 4f7b96a603
Fix up some minor issues + fix bug in context sync 2023-10-18 12:09:46 -04:00
onyinyang 89fb0fbf4b
Add handling for unaccounted for bridges 2023-10-18 12:08:15 -04:00
onyinyang 25add69c4d
Add syncing functionality 2023-10-18 12:08:15 -04:00
onyinyang be0d026fe8
Cleanup and add syncing of resources 2023-10-18 12:08:15 -04:00
Renovate Bot ee4f53dbd4 Update Rust crate serde_with to 3.4.0 2023-10-17 17:35:10 +00:00
Renovate Bot f0e97504ca Update Rust crate serde to 1.0.189 2023-10-13 03:04:23 +00:00
Renovate Bot faa127862b Update Rust crate thiserror to 1.0.49 2023-09-28 21:22:10 +00:00
Renovate Bot 72e2ab154a Update Rust crate time to 0.3.29 2023-09-24 06:03:54 +00:00
onyinyang 7cc133236c Add additional required changes for crate aes-gcm update to 0.1.0 2023-09-19 13:43:59 +00:00
Renovate Bot 464faaca5a Update Rust crate aes-gcm to 0.10 2023-09-19 13:43:59 +00:00
onyinyang f85878c89a Change base64 generator to match updates 2023-09-14 15:30:10 +00:00
Renovate Bot 212105ca4d Update Rust crate base64 to v0.21.4 2023-09-14 15:30:10 +00:00
Renovate Bot 8ec1f6237d Update Rust crate subtle to 2.5 2023-09-11 17:35:00 +00:00
Renovate Bot 20f5da98e3 Update Rust crate serde_with to 3.3.0 2023-09-07 17:30:48 +00:00
Renovate Bot 003be57c1a Update Rust crate time to 0.3.28 2023-09-07 15:30:33 +00:00
Renovate Bot e17af05fa0 Update Rust crate thiserror to 1.0.48 2023-09-06 17:34:36 +00:00
Renovate Bot 26d0f4ad40 Update Rust crate serde to 1.0.188 2023-08-30 17:33:09 +00:00
onyinyang 7647564c1e
Add test for k-invites 2023-08-02 17:21:03 -04:00
onyinyang faf40caf3a
Change open invite logic to distribute to k users 2023-08-02 10:34:39 -04:00
onyinyang 35f62ed213
Cleanup 2023-08-02 10:20:40 -04:00
onyinyang 572928a271
Fixed Basic Serialization/Deserialization to json 2023-08-02 10:15:11 -04:00
onyinyang f52c6f515a
Add EXPIRY_DATE constant and fixup cloned vectors 2023-08-02 10:11:47 -04:00
onyinyang 93ce3e41b7
Add ExhausedIndexError for no available bucket ids 2023-08-02 10:11:46 -04:00
onyinyang 471cb8c8c4
Add test for find_next_available_key 2023-08-02 10:11:46 -04:00
onyinyang 6191970d9a
Fixed clean up blocked test 2023-08-02 10:11:46 -04:00
onyinyang 9c2b7703a8
Added open inv cleanup test 2023-08-02 10:11:46 -04:00
onyinyang a62b537aa6
Add testing for blocked bucket cleanup 2023-08-02 10:11:46 -04:00
onyinyang 3c88f4471b
Fix up convoluted function 2023-08-02 10:11:46 -04:00
onyinyang d2d09bccc1
Add more comprehensive logic for tidying unneeded buckets 2023-08-02 10:11:46 -04:00
onyinyang 40f1e88a31
Add find_next_available_key function to prevent overwriting buckets 2023-08-02 10:11:46 -04:00
onyinyang 48cdb97a9f
Fix licensing for lox-rs 2023-07-27 16:30:29 -04:00
onyinyang d98ae40879
Fix formatting 2023-07-19 10:30:35 -04:00
onyinyang 607466b949
Clean up clippy fixes 2023-06-23 13:04:15 -04:00
onyinyang 369d830bca
All tests passing for HashMap implementation 2023-06-23 08:30:14 -04:00
onyinyang 69e4579450
Change encbuckets to HashMap with EncryptedBucket 2023-06-23 08:30:14 -04:00
onyinyang 610a579731
Fix up bridge_unreachable 2023-06-23 08:24:28 -04:00
onyinyang 0ede04164b
Fix up replace function, remove recyclable 2023-06-23 08:24:28 -04:00
onyinyang 607ecd89c7
Converting bridgetable vectors to HashMaps 2023-06-23 08:24:28 -04:00
onyinyang 73c3ef8728
Change lox package to lox-library for consistency 2023-06-23 08:22:15 -04:00
onyinyang 221f490d26
Update lox-distributor to handle gone resources more correctly 2023-06-16 17:18:19 -04:00
Cecylia Bocovich 67639e2f11
Remove needless range loops 2023-06-16 15:59:11 -04:00
onyinyang 003d9c886b Add pipeline 2023-06-08 16:58:22 +00:00
onyinyang 5ac0fc7bef
Fixup cargo imports to address stdweb issue 2023-06-07 16:02:02 -04:00
onyinyang 16ced3c5e0
Add other cargo fmt changes 2023-06-06 19:58:35 -04:00
onyinyang 5ac8e703cf
Update lox-library Cargo.toml for workspace 2023-06-05 14:39:10 -04:00
onyinyang 607e1a425d
Remove performance statistics tests for pipeline 2023-05-15 20:18:20 -04:00
onyinyang a9d5f31870
Add test pipeline 2023-05-15 20:17:53 -04:00
onyinyang 8d0f570627
Adds test and fixes for allocate bridges 2023-05-15 18:57:23 -04:00
onyinyang 45bb5756df
Minor fixes 2023-05-15 12:53:32 -04:00
onyinyang 6bff64f283
Adds replace_bridge test and fixes bugs in the function 2023-05-15 12:32:22 -04:00
onyinyang 0d317cea8c
Fix replace bridge to align with changes to lox-distributor 2023-05-11 17:02:33 -04:00
onyinyang 508eaf3bdd
Add functions to recycle and allocate extra bridges 2023-05-09 13:00:40 -04:00
onyinyang 83c7916805
Added bridge replacement 2023-05-08 12:31:36 -04:00
onyinyang 11d4678be8
Update fingerprint to match UID from rdsys 2023-04-04 18:39:28 -04:00
onyinyang a3a693d45a
Revise bridge bytes size to 300 2023-04-03 12:06:20 -04:00
onyinyang 362996c4f7
Add fingerprint field to Bridgeline 2023-04-03 11:47:11 -04:00
onyinyang a206917e92
Add update bridge function 2023-03-27 12:36:57 -04:00
onyinyang e257a05c99
Add bridge update 2023-03-23 13:21:04 -04:00
onyinyang f08520de84
Update function definition for bridge update 2023-03-23 11:00:10 -04:00
onyinyang 366111e28f
Add bridge_update stub 2023-03-20 12:33:26 -04:00
onyinyang 42f5c0e764
Increase bridge info size 2023-03-10 12:02:45 -05:00