Commit Graph

48 Commits

Author SHA1 Message Date
onyinyang 0e28602812
Update wasm for base64 encoded invite 2024-04-17 17:38:38 -04:00
onyinyang 5f34f49d17
Formatting changes from cargo fmt 2024-04-16 16:05:49 -04:00
onyinyang ae1420a5ea
Fix bug in blockage migration date, variable naming 2024-01-23 09:59:43 -05:00
onyinyang a8be1a8043
Ensure calculations return correct unlock times 2024-01-22 13:30:58 -05:00
onyinyang 3b1de79309
Return reasonable values for unlock function 2024-01-22 13:30:58 -05:00
onyinyang 849fcb3541
Added part of next unlock function 2024-01-22 13:30:58 -05:00
onyinyang 050e628ae7
Add endpoint to return server constants 2024-01-22 11:09:31 -05:00
Cecylia Bocovich 5ead4c4d9d Attempt to deserialize open invitation as lox_utls::Invite 2024-01-17 22:49:36 +00:00
Cecylia Bocovich 1702027cb9
Export invitation_is_trusted for wasm_bindgen 2024-01-16 14:26:29 -05:00
onyinyang 075d51b088 Add better serde error handling to wasm functions 2023-12-21 17:00:49 +00:00
onyinyang 9d4a293ee9 Add invitation_is_trusted function, fixup error handling 2023-12-20 20:19:51 +00:00
onyinyang 364b55dc4c Make wasm getter functions return Result 2023-12-19 20:02:12 +00:00
onyinyang 711a34cc2d Add bridgeline getters to wasm and Lox system info 2023-12-19 20:02:12 +00:00
onyinyang aeddbb5d71
Add error handling and Invitation expiry getter for wasm 2023-12-17 23:43:16 -05:00
onyinyang 6757702662
Add getter functions for wasm Lox credential attributes 2023-12-15 11:27:33 -05:00
onyinyang 88a865d04c
Remove time manipulation and other fmt fixes 2023-11-21 18:41:53 -05:00
onyinyang fdde186c92
Add lox-wasm and lox-utils READMEs and other fmt fixes 2023-11-21 12:57:00 -05:00
onyinyang 73c3ef8728
Change lox package to lox-library for consistency 2023-06-23 08:22:15 -04:00
Cecylia Bocovich 3136a8ba85
Remove unsafe blocks that aren't needed 2023-06-16 15:59:11 -04:00
onyinyang 54c5a837ad
Add more common functions to lox_utils, clean up lox_wasm 2023-06-09 18:31:35 -04:00
onyinyang c7c5f57864
Move validate function to lox_utils 2023-06-08 12:26:37 -04:00
onyinyang b016bc9742
Move credential helpers out of lox-wasm 2023-06-07 16:10:37 -04:00
onyinyang 16ced3c5e0
Add other cargo fmt changes 2023-06-06 19:58:35 -04:00
onyinyang b0038720e0
Make all requests POST requests to match server and browser handling 2023-03-24 13:02:42 -04:00
onyinyang a9de52a266
Blockage Migration tested and fixed up 2023-02-28 12:57:57 -05:00
onyinyang dd00f99958
Add blockage migration (untested) 2023-02-27 16:58:06 -05:00
onyinyang 1bac11f1d0
Refactor Lox Credential, Add check blockage 2023-02-27 16:46:01 -05:00
onyinyang 8faf4fc273
Add redeem invite 2023-02-27 14:17:26 -05:00
onyinyang 944cbb77e4
Add issue invitation 2023-02-24 19:11:44 -05:00
onyinyang 66f7ae4c0d
Add up to level up 4 2023-02-23 22:16:45 -05:00
onyinyang 01a6cb37e1
Add working reachability cred, test credential aging needs work 2023-02-23 13:18:11 -05:00
onyinyang d8cdf3ccab
Logic for level up, reachability credential unimplemented 2023-02-14 17:08:09 -05:00
onyinyang 944c3634ca
Add Trust migration protocol 2023-02-13 23:58:07 -05:00
onyinyang 56bc148db1
Update date to 1 past threshold for upgrade 2023-02-13 16:29:34 -05:00
onyinyang 0a29265c1f
Solve time issue, add time for testing 2023-02-10 16:18:54 -05:00
onyinyang 080d5879b1
Adds trust promo logic, time issue 2023-02-07 00:45:54 -05:00
onyinyang 745b6673cb
Clean up messages, full first credential handling 2023-02-06 13:58:24 -05:00
onyinyang 8cc9d3d5d3
Change pubkey passing, handling credentials still broken 2023-02-01 00:42:49 -05:00
onyinyang dfa2ae4c6f
Handle open invite credential 2023-01-30 18:13:17 -05:00
onyinyang 832a252318
Fix serialization of request/state 2023-01-30 16:03:12 -05:00
onyinyang 03008449fa
Handle request and state more reasonably 2023-01-26 14:16:41 -05:00
onyinyang dd1b971914
Fix javascript to handle values properly 2023-01-26 00:17:14 -05:00
onyinyang 235eb90d6e
Change calls to match server 2023-01-25 15:02:53 -05:00
onyinyang d473b53745
Add wasm_bindgen for handling new lox credential 2023-01-25 15:02:39 -05:00
onyinyang 5d60807a42
Updates open_invite to return request and state 2023-01-25 15:02:23 -05:00
Cecylia Bocovich ebae7fb600 Improve error handling and add rand dependency
This makes panics more visible in the console and fixes a weird bug
where the rand package was throwing an error.
2022-11-15 21:57:49 -05:00
Cecylia Bocovich 48b8a986ef Avoid use of * with use 2022-11-10 11:04:20 -05:00
Cecylia Bocovich ff905db53a First attempt at binding the open invite function 2022-11-09 14:40:53 -05:00