-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bindings/crypto-nodejs: Take strings for user IDs, device IDs, and room IDs #17
Comments
(non-blocker for bindings usage) |
Hey :-), Thanks for opening this issue. |
This will have performance impacts down the line where I think it'll be required to make this change, given the massive number of objects which will be landing on the stack. Validation this strict is also highly questionable as it provides very little value. The validation comes from other parts of the overall system like the server itself or the consequences of getting it wrong (ie: it's not the SDK's problem that the consumer supplied an invalid user ID). |
The Rust API needs to parse and validate them in all cases as the internal API uses
Well, first, the internal API requires that, and second, we must never trust data provided by the user, even if it is a Matrix server. |
Triaging. I'm closing it but feel free to re-open, I'm OK to discuss about that if it's a real blocker. |
I'm going to reopen this as it's a major consideration for whether the bot-sdk continues to use the rust bindings or not. |
otherwise we end up with a lot of useless object creation in the JS side. For example:
we probably don't need these objects when it's clear they will be user IDs.
The text was updated successfully, but these errors were encountered: