Tanner Shaw
73e61da32e
fix(jsdocs) added @return to refactored functions
2023-08-25 12:12:35 -05:00
Tanner Shaw
5ecda5c011
refactor(claimcodes) major refactor of /join and /addcode
2023-08-25 12:04:59 -05:00
Tanner Shaw
e44747c0e9
small fix, removed 'n' from removeIdentityFromRoom. Thought we already did this?
2023-08-25 02:11:22 -05:00
Tanner Shaw
952d897a8a
refactor(claimCodes) /addcode now properly creates claimCodes and rooms associations
2023-08-25 02:09:40 -05:00
AtHeartEngineer
5e1a62c65f
refactor(claimCodes) fixed the /addcode route to properly generate co… ( #58 )
...
…des for all rooms or a single room
2023-08-25 00:50:35 -04:00
AtHeartEngineer
96829872fe
Merge branch 'main' into fixing-code-creation
2023-08-25 00:50:16 -04:00
AtHeartEngineer
893d508c70
Fix for removing identities from rooms and bandada groups ( #55 )
2023-08-25 00:50:07 -04:00
AtHeartEngineer
e4555eb725
Merge branch 'main' into room-messages
2023-08-25 00:50:01 -04:00
Tanner Shaw
67944d9eaf
refactor(claimCodes) fixed the /addcode route to properly generate codes for all rooms or a single room
2023-08-24 23:48:44 -05:00
AtHeartEngineer
d63067b5cb
Return invite codes when generating them ( #57 )
2023-08-24 23:10:14 -04:00
AtHeartEngineer
ad032dedcc
PUBLIC -> PUBLIC_CHAT ( #56 )
2023-08-24 23:08:46 -04:00
AtHeartEngineer
0908251ff5
Merge branch 'return-codes' into pixelmap-support
2023-08-24 23:08:41 -04:00
4be4e505bc
return claim codes when generating codes
2023-08-24 23:08:08 -04:00
6446b8edf0
PUBLIC -> PUBLIC_CHAT
2023-08-24 23:02:16 -04:00
AtHeartEngineer
d7bd66fe19
Merge branch 'main' into room-messages
2023-08-24 22:57:40 -04:00
AtHeartEngineer
cd0e1afe8e
Documentation ( #54 )
2023-08-24 22:55:38 -04:00
Tanner Shaw
c725d64833
fix(messages) fixed typo on removing identities
2023-08-24 17:48:18 -05:00
Tanner Shaw
8cb11d4c71
feature(messages) removing an identity now deletes the ID from bandada_groups as well
2023-08-24 17:40:42 -05:00
Tanner Shaw
c3e801148f
feature(messages) fixed removing identity from rooms
2023-08-24 16:57:23 -05:00
Tanner Shaw
ed2641036a
refactor(documentation) refactored all docs to JSDocs
2023-08-24 14:40:19 -05:00
Tanner Shaw
bc3ac887bf
feature(documentation) added extra documentation for endpoints and messages
2023-08-24 12:46:49 -05:00
Tanner Shaw
1e90eccc62
feature(documentation) in-line documentation for messages and message collisions
2023-08-24 12:26:12 -05:00
Tanner Shaw
92b5773a88
feature(documentation) express endpoints and helper functions documentation
2023-08-24 12:07:01 -05:00
Tanner Shaw
98d8b3c86e
Merge branch 'main' into documentation
2023-08-24 10:31:05 -05:00
Tanner Shaw
9c2dead479
feature(documentation) inline-documentation for express routes
2023-08-24 10:29:35 -05:00
AtHeartEngineer
fa1b349c42
fix(messages) message epochs and message reverse order ( #49 )
2023-08-23 20:17:31 -04:00
AtHeartEngineer
dde95f7e63
Merge branch 'main' into rate-commitment
2023-08-23 20:16:01 -04:00
Tanner Shaw
19a705fa37
fix(messages) message epochs and message reverse order
2023-08-23 19:15:54 -05:00
AtHeartEngineer
0eab85f909
fix(express) fetching rooms bug ( #48 )
2023-08-23 20:04:45 -04:00
AtHeartEngineer
6a8ad6d675
Merge branch 'main' into rate-commitment
2023-08-23 20:04:26 -04:00
AtHeartEngineer
a4e9326b6d
Refactor endpoint initialization code ( #47 )
...
- Refactored code in the `initEndpoints` function to improve readability
and organization.
- Consolidated duplicate code blocks and removed unnecessary setTimeout
calls.
- Updated logging and error handling for better debugging and error
messages.
- Added comments to explain the purpose of certain code blocks.
2023-08-23 20:04:22 -04:00
AtHeartEngineer
43322e3e4c
Merge branch 'main' into rate-commitment
2023-08-23 20:04:22 -04:00
Tanner Shaw
97052ea0fc
fix(express) fetching rooms bug
2023-08-23 19:04:06 -05:00
AtHeartEngineer
760b4397bd
Refactor endpoint initialization code
...
- Refactored code in the `initEndpoints` function to improve readability and organization.
- Consolidated duplicate code blocks and removed unnecessary setTimeout calls.
- Updated logging and error handling for better debugging and error messages.
- Added comments to explain the purpose of certain code blocks.
2023-08-23 20:03:20 -04:00
AtHeartEngineer
480a95ffbe
Added Rate Commitment hasher ( #46 )
...
Anywhere we are adding/accessing an identity commitment, we need to
replace it with the hash of the identityCommitment and the
userMessageLimit together.
Here is how to use the hasher I added:
```ts
getRateCommitmentHash(
BigInt(identityCommitment),
BigInt(room.userMessageLimit ? room.userMessageLimit : 1)
).toString()
```
We need to add this to `addIdentityToIdentityListRooms` and
`addIdentityToBandadaRooms` when users join.
We also need to add this to the `/rooms/:idc` route, where we have to
hash the idc with every rooms `userMessageLimit` to see what rooms they
are in. (OR we can make another database model to map identity
commitments to rooms, this is probably smarter and would prevent someone
from trying to DDOS our server just by requesting what rooms they are
in, hashing takes a decent bit of CPU when you do it a lot).
2023-08-23 19:53:48 -04:00
AtHeartEngineer
dbf2b9add9
Update src/data/db.ts
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-23 19:53:46 -04:00
Tanner Shaw
d0ec4ec831
refactor(RLN) refactored removing identities to also update rate commitments
2023-08-23 18:52:19 -05:00
Tanner Shaw
39bb7b5559
Merge branch 'rate-commitment' of github.com:Discreetly/server into rate-commitment
2023-08-23 18:35:32 -05:00
Tanner Shaw
1ac00d722b
feature(express) added route to create codes for many rooms or all rooms
2023-08-23 18:35:25 -05:00
AtHeartEngineer
a1dcba49a7
Refactor seed.ts to include additional room creations
2023-08-23 17:49:52 -04:00
Tanner Shaw
b4cfdf1ef4
fix(interface) small camelcase error
2023-08-23 14:41:18 -05:00
Tanner Shaw
8ac7d850e2
Merge branch 'rate-commitment' of github.com:Discreetly/server into rate-commitment
2023-08-23 14:39:18 -05:00
Tanner Shaw
290f177938
feature(express) added route to generate new codes for rooms
2023-08-23 14:39:11 -05:00
AtHeartEngineer
71db8c69f5
Update "discreetly-interfaces" to version 0.1.37 and add new message field in room endpoint.
2023-08-23 15:11:03 -04:00
Tanner Shaw
0ba8cee207
chore(identities) turned verifier identities back to identities
2023-08-23 13:07:19 -05:00
Tanner Shaw
968ac66a3d
refactor(identities) rooms now have semaphoreIdentities and hashed identities
2023-08-23 12:26:46 -05:00
AtHeartEngineer
ac3b728404
Added Rate Commitment hasher
2023-08-23 08:00:52 -04:00
AtHeartEngineer
b866750828
refactor(messages) making createMessage into a promise to resolve pro… ( #45 )
...
…ofing and collision issues
2023-08-22 17:54:00 -04:00
Tanner Shaw
9f2bb5185d
refactor(messages) making createMessage into a promise to resolve proofing and collision issues
2023-08-22 16:45:20 -05:00
AtHeartEngineer
15a4270582
chore(cleanup) cleaning up console logs ( #43 )
2023-08-22 15:50:57 -04:00